The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#252
|
||||
|
||||
it's fixed now. make sure when you download the file, at the top it says version 1.1, not 1.0.
if it says 1.0, clear your browser temp files. for those of you who want to have a link the the thread itself, instead of going to the last post do this: open showthread.php and find: Code:
if ($goto=="nextnewest") { Code:
// goto newest thread if ($goto=="newthread") { if (isset($forumid) and $forumid!=0) { $foruminfo=verifyid("forum",$forumid,1,1); $forumid=$foruminfo['forumid']; $forumslist = ""; $getchildforums=$DB_site->query("SELECT forumid,parentlist FROM forum WHERE INSTR(CONCAT(',',parentlist,','),',$forumid,')>0"); while ($getchildforum=$DB_site->fetch_array($getchildforums)) { if ($getchildforum[forumid]==$forumid) { $parentlist=$getchildforum[parentlist]; } $forumslist.=",$getchildforum[forumid]"; } $thread=$DB_site->query_first("SELECT threadid FROM thread WHERE forumid IN (0$forumslist) AND visible=1 AND (sticky=1 OR sticky=0) AND lastpost>='".($foruminfo[lastpost]-30)."' AND open<>10 ORDER BY lastpost DESC LIMIT 1"); header("Location: showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"); exit; } } if ($goto=="nextnewest") { Code:
<a href="showthread.php?s=$session[sessionhash]&goto=newthread&forumid=$forum[forumid]">$forum[lastthread]</a> update: i'm gonna look also in postings.php file, it needs to be also modified. for example if you edit a thread title, it wont update the thread... i will look into it and post the mod here... floren. |
#253
|
||||
|
||||
ok.. another little bug discovered... and fixed.
in forum/postings.php, find: Code:
updateforumcount($threadinfo[forumid]); if ($visible) { Code:
updateforumcount($threadinfo[forumid]); $lastpost=$DB_site->query_first("SELECT * FROM forum WHERE forumid='$threadinfo[forumid]'"); if($lastpost['lastpost']==$threadinfo['dateline']) { $DB_site->query("UPDATE forum SET lastthread='".addslashes(htmlspecialchars($title))."' WHERE forumid='$threadinfo[forumid]'"); } if ($visible) { if you download the file, make sure it says version 1.2. |
#254
|
||||
|
||||
now the only problem in postings.php is when you delete a thread, the title is not updated.. i'm working on this as we speak..
|
#255
|
||||
|
||||
ok, in postings.php, under "start do delete thread", i added this way the code:
Code:
deletethread($threadid,$foruminfo[countposts]); $lastpost = $DB_site->query_first("SELECT title,lastpost FROM thread WHERE forumid='$threadinfo[forumid]' ORDER BY lastpost DESC LIMIT 1"); $DB_site->query("UPDATE forum SET lastthread='".addslashes(htmlspecialchars($lastpost['title']))."' WHERE forumid='$threadinfo[forumid]'"); |
#256
|
|||
|
|||
Actually if you just change updateforumcount function to do it, as it gets called when a thread gets moved / deleted
I will write this in my diary to get done tonight just about to go out to work. |
#257
|
||||
|
||||
thanks alot scott...........
wow it was faster then i expected your answer, i pm'ed you to your new lounge, vb.com... hihi |
#258
|
|||
|
|||
Teck,
does your 'last post on forum home' display properly when a thread is deleted/moved? just curious. |
#259
|
||||
|
||||
no. it will be fixed by PPN today, or whenever he can spare some time beside his school.
that's the only part i could not fix. the rest is all working great. |
#260
|
|||
|
|||
just a kind request that PPN or someone post the complete info when it is completed. this thread is making my head spin. :O thanx!
|
#261
|
||||
|
||||
hmm, it doesnt make sense scott. the way it is updateforumcount($forumid) function now, it should update it... what did i miss in the steps???
thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|