![]() |
Hey, how about that, I solved my own problem ;)
I believe that in 2.2.6, the file to update forum post counts and lastposters was changed, so that the "title" is not part of the SELECT statement that is called in order to get the lastposts info. Because of this, $lasttitle is set to blank because according to the code, it tries to set itself using the "title" variable. As a quick fix, you can simply have the SELECT statement call the title column again. So if you have this hack installed, your code should look like this: in admin/functions.php: PHP Code:
PHP Code:
Now, I don't know if the "title" was taken out of the code for some reason to fix a bug, but if it was, perhaps a better fix that preserves the bugfix might be more useful. But this one's a quick fix. Thanks again PPN for a great hack. |
Do you need to chnage it to this for 2.2.5 too or just 2.2.6?
|
Quote:
|
Would it mess anything up to just go ahead and add it to avoid any problmes that could arise? I mean, if it won't hurt anything then it might be a good idea to go ahead and update it.
Quote:
|
|
You need to change the length you want the last time to be in this line:
Code:
$forum['lasttitle'] = substr($forum['lasttitle'], 0, 28); Code:
<td bgcolor="#1D6AA0" nowrap><smallfont color="#EEEEFF"><img src="https://vborg.vbsupport.ru/images/space.gif" width="200" height="1"><br><b>Last Post</b></smallfont></td> Quote:
|
i installed the hack on my test forums and everything seems fine when i upload the files
when i change the template though i get this error on the forums home Quote:
|
I would also like to have the posticon used last next to it on the forum home. :)
|
[QUOTE]Originally posted by PPN
ok open showthread.php and above PHP Code:
PHP Code:
PHP Code:
|
Scott,
Have you had a chance to look at the problem I am haing with apostrophes in the last poster name? (Posts 185 and 186 of this thread). :) |
All times are GMT. The time now is 04:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|