The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Yeah I was wonding if someon could code me up a little hack here. Don't ask why, but I need to show ALL sticky threads wather there are new posts in them or not, in the View Active Post section. Is this hard, or what? I really need this, my friend wants if for some reason, and I own him a faviour, who knew he would use it on THIS!
Please? snyx |
#2
|
|||
|
|||
By "View Active Posts section", do you mean the link that users can click to see new posts since their last visit?
|
#3
|
|||
|
|||
Yupp
|
#4
|
|||
|
|||
I'll whip something up for ya. I'll post it later tonight as I'm just heading out the door now.
|
#5
|
|||
|
|||
OK. I got it. Find in search.php:
Code:
// ###################### Start get new ####################### if ($action=="getnew") { // generate query // do it! if ($bbuserinfo[userid]!=0 or $bbuserinfo[lastvisit]!=0) { $forumsql=getallforumsql(); // get date: $datesql=" AND thread.lastpost>=".$bbuserinfo[lastvisit]; $wheresql="1=1".$forumsql.$datesql; $wheresql.=" AND thread.open<>10"; Code:
// ###################### Start get new ####################### if ($action=="getnew") { // generate query // do it! if ($bbuserinfo[userid]!=0 or $bbuserinfo[lastvisit]!=0) { $forumsql=getallforumsql(); // get date: $datesql=" AND ((thread.lastpost>=".$bbuserinfo[lastvisit]; $wheresql="1=1".$forumsql.$datesql; $wheresql.=" AND thread.open<>10) OR sticky='1')"; |
#6
|
|||
|
|||
Like a charm my man!
Much appreciated, thanks! snyx |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|