The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
subject of last post???
Hi there
Im looking for subject of last post, but i cant search it, please help me i can where do i get thread??? the same attachment thanks for your help :chinese: |
#2
|
|||
|
|||
I have make some changes of this hack,
Thanks for Firefly's idea. It's work better now.. I have test this new ver on my board. http://www.kelvinlo.net/vbb/ Before --> 88 queries Now --> 33 queries Step 1: Change index.php & forumdisplay.php Find this code in BOTH files: PHP Code:
PHP Code:
Change the templates forumhome_lastpostby: found this code: PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Just thought you should know this will add *4* queries for every forum you have...
|
#4
|
|||
|
|||
heh, yes it make more queries..
It specialy takes heavy queries on the index.. Page generated in 0.7211850 seconds (15.79% PHP - 84.21% MySQL) with 87 queries. |
#5
|
||||
|
||||
Then why use it? And you have 4 queries there that can be done with only one:
Code:
$lastpostinfo = $DB_site->query_first(" SELECT u.userid,t.lastposter AS username,t.title,t.threadid FROM thread t LEFT JOIN user u ON t.lastposter=u.username WHERE t.forumid=$forum[forumid] ORDER BY t.lastpost DESC "); |
#6
|
|||
|
|||
Thanks Firefly, I have make a little change of that code now.. wish it work better. I am going to test it on my board tonight, I have this hack work on my test board :squareeyed:
Current know problem: It will show the thread title from the private forums if you turn your private forum visible to others. |
#7
|
||||
|
||||
PPN already released a hack that does this with no extra queries, it just stores the last thread title in the forum table.
|
#8
|
|||
|
|||
Can you post the link here?
|
#9
|
||||
|
||||
Look at PPN's profile, you can find it there.
|
#10
|
|||
|
|||
Thanks! I got it now :classic:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|