
03-22-2015, 09:23 PM
|
|
|
Join Date: Jan 2015
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by findingpeace
Well, I finally figured out the subforum thing. Requires code edits, as there aren't any hooks nearby. Open up /includes/functions.php
Find:
Code:
$threadinfo = array(
Add in your avatar variables like below (be careful with commas!)
Code:
$threadinfo = array(
'title' => $lastpostinfo['lastthread'],
'threadid' => $lastpostinfo['lastthreadid'],
'avatardateline' => $lastpostinfo['avatardateline'],
'hascustomavatar' => $lastpostinfo['hascustomavatar']
Then you can simply call these variables in a forumhome plugin like so:
$lp_dateline = $lastpostinfo['avatardateline'];
$lp_userid = $lastpostinfo['userid'];
$hascustomavatar = $lastpostinfo['hascustomavatar'];
You can even do this without the forumhome plugin just by getting the variables from template. (Still need the query plugin, of course).
Best of luck!
|
not working... and this
Code:
$threadinfo = array(
is not in functions.php
|