vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Display Sticky threads on all forum display pages (https://vborg.vbsupport.ru/showthread.php?t=34717)

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/showt...threadid=38684

Open it up and find:
PHP Code:

if ($pagenumber == 1) { 

and replace it with
PHP Code:

if ($pagenumber 0) { 

That should do it. Let me know if it doesn't work.

FWC 02-02-2002 03:56 AM

Quote:

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. :)

haas 02-02-2002 05:32 AM

Great!!, and easy :)

Matt 02-03-2002 03:54 PM

:( 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

Quote:

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

Remi 02-09-2002 02:07 PM

Quote:

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.

Remi 03-07-2002 08:19 PM

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

Remi 03-13-2002 04:57 PM

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

[high]* FireFly confirms :)[/high]

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...0&pagenumber=2

Remi 03-13-2002 05:41 PM

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 :(

Remi 03-13-2002 06:09 PM

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 change
PHP Code:

if ($pagenumber == 1

to
PHP Code:

if ($pagenumber &gt0

but you get a parse error in 2.2.6 if you just copy and paste that text. You have to change it to
PHP Code:

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 "&gt;".

Oh well, works on 2.2.6.


All times are GMT. The time now is 01:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01177 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete