Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Freddie Bingham Freddie Bingham is offline
Developer Last Online: Aug 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-01-2002 Last Update: Never Installs: 7
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-13-2002, 05:06 PM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 03-13-2002, 05:41 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh my God!!

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 and
Reply With Quote
  #14  
Old 03-13-2002, 06:09 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am soooooooooo sory freddie, It is working

I thoght sticky threads will show on all (forums)

I feel very stupid

Reply With Quote
  #15  
Old 08-21-2002, 10:50 PM
slider slider is offline
 
Join Date: Jul 2002
Location: Utah
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This thread talks about 2.2.2 and 2.2.4. How does this hack work for 2.2.6?
Reply With Quote
  #16  
Old 08-22-2002, 12:00 AM
slider slider is offline
 
Join Date: Jul 2002
Location: Utah
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgot to mention I got a parse error when I tried to install this on my 2.2.6 board.
Reply With Quote
  #17  
Old 08-30-2002, 04:31 PM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am interested in this hack but I have 2.2.6, is it compatible? Any instructions I need to follow differently?
Reply With Quote
  #18  
Old 09-04-2002, 11:53 PM
slider slider is offline
 
Join Date: Jul 2002
Location: Utah
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04629 seconds
  • Memory Usage 2,274KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete