Quote:
Originally posted by Webmasta XT
damn, when editing admin/functions.php in vb 2.2.6
PHP Code:
then look for
$lastposts=$DB_site->query_first("SELECT lastpost,lastposter FROM thread WHERE lastpost='$lastposts[lastpost]'");
$lastpost=$lastposts['lastpost'];
$lastposter=$lastposts['lastposter'];
change to
$lastposts=$DB_site->query_first("SELECT lastpost,lastposter,title FROM thread WHERE lastpost='$lastposts[lastpost]'");
$lastpost=$lastposts['lastpost'];
$lastposter=$lastposts['lastposter'];
$lasttitle=$lastposts['title'];
That part is not possible, so I can't install the hack.. any help with this?
|
Yah, the original currently has that section wrong...I don't have the code in front of me but bascially you need to look for the section that say $lastpost=$DB_site...there's only one. The only part you need to worry about is to add "title" to the SELECT statement so instead of "SELECT lastpost,lastposter" it should be "SELECT lastpost,lastposter,title" and then add $lasttitle=$lastposts['title'] and you should be ok..but don't forget that in the template to fix that little error I mentioned $form['lasttitle'] should be $forum[lasttitle]
hope this helps..