View Full Version : Display Sticky threads on all forum display pages
Freddie Bingham
02-01-2002, 10:00 PM
One of the side affects of the optimizations I made to the 2.2.2 forumdisplay.php today is that you can quite easily make sticky threads show on all pages, not just the first. I have already made this an option in v3 but you can enable it in v2.2.2 easily. This works on 2.2.0, 2.2.1, or 2.2.2 but you have to make sure you get the latest file from here.
First you need the forumdisplay.php from this thread:
http://www.vbulletin.com/forum/showthread.php?s=&threadid=38684
Open it up and find:if ($pagenumber == 1) { and replace it with if ($pagenumber > 0) {That should do it. Let me know if it doesn't work.
Originally posted by freddie
One of the side affects of the optimizations I made to the 2.2.2 forumdisplay.php today is that you can quite easily make sticky threads show on all pages, not just the first.Damn, Freddie. That's some serious optimizing. That page absolutely flies! Wow! :)
Oh, and the hack works, too. :)
:( I used the new forumdisplay.php file on its own and went to look and none of the sticky threads were there, they had just vanished. I then reuploaded the 2.2.1 version and they were back again.
I really want the new version, any idea why they aren't showing up?
X-Fan
02-09-2002, 11:57 AM
Originally posted by freddie
Let me know if it doesn't work.
Didn't work for me, freddie. In fact, the reverse - all the sticky threads I had in place disappeared! Returning it to 1 returned the sticky threads.
I did want to say thanks for the new version of forumdisplay.php. Whilst I haven't tested its performance yet on my site's new host (waiting for the DNS to kick in), I am hopeful that this will resolve the insane bandwidth levels my 2.2.2 board was generating before - 30 gig in 7 days, even with gzip! :o
Originally posted by X-Fan
Didn't work for me, freddie. In fact, the reverse - all the sticky threads I had in place disappeared! Returning it to 1 returned the sticky threads.
I have exactly the same problem :greedy:
Freddie Bingham
03-07-2002, 06:11 PM
I don't know what problems you guys are having but you can try this again on the v2.2.3 forumdisplay.php and it should work.
freddie
Is there any way of making only the sticky thread you want to appear in all forum display pages but not all the sticky threads?
Thanks
It is not working even with 2.2.4
Can any body confirm that it is working for him!
Thanks
Admin
03-13-2002, 05:02 PM
* FireFly confirms :)
Freddie Bingham
03-13-2002, 05:06 PM
Yes I just changed that one line on my forum and I have stickies on every page. Just as you appear to do on this forum.
http://www.chins-n-quills.com/forums/forumdisplay.php?s=&forumid=26&daysprune=1000&sortorder=&sortfield=lastpost&perpage=40&pagenumber=2
Oh my God!! :eek:
So whay is it not working for me :dead: :dead: :dead:
I tried it on unmodifyed forumdisply, 2.2.2, 3 and 4
I am realy realy :eek: and :(
I am soooooooooo sory freddie, It is working
I thoght sticky threads will show on all (forums) :o
I feel very stupid :o
:D
slider
08-21-2002, 10:50 PM
This thread talks about 2.2.2 and 2.2.4. How does this hack work for 2.2.6?
slider
08-22-2002, 12:00 AM
Forgot to mention I got a parse error when I tried to install this on my 2.2.6 board.
yzztik
08-30-2002, 04:31 PM
I am interested in this hack but I have 2.2.6, is it compatible? Any instructions I need to follow differently?
slider
09-04-2002, 11:53 PM
Alright, that's a big ol' DUH!
The hack says changeif ($pagenumber == 1) to if ($pagenumber > 0) but you get a parse error in 2.2.6 if you just copy and paste that text. You have to change it to if ($pagenumber <> 0) Sorry if I'm a n00b and that was just something I should have gotten. Figured it out finally when I couldn't find anything on the elusive ">".
Oh well, works on 2.2.6.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.