Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Seperate Announcments & Stickies from regular threads Details »»
Seperate Announcments & Stickies from regular threads
Version: 1.00, by assassingod assassingod is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-30-2003 Last Update: Never Installs: 84
 
No support by the author.

[HIGH]Seperate Announcments & Stickies from regular threads[/HIGH]

Author: assassingod

Description: This will seperate all announcments and stickies in all forums from regular threads.

Screenshots:
https://vborg.vbsupport.ru/attachmen...&postid=414561

[IMG]images/attach/txt.gif[/IMG]Download:
https://vborg.vbsupport.ru/attachmen...&postid=425778

Tested on vB version:
2.3.0

[HIGH]Update 13/08/2003[/HIGH]
Fixed most bugs - Check download link


[hr=red][/hr]
Add-ons -
How to add images to the divider
Quote:
(Author bitg)
Code:
$announcement
<tr valign="top">
 <td colspan="10"><img src="{imagesfolder}/clear.gif" alt="" width="1" height="1" /></td>
</tr>
Just change the "clear.gif" reference to the image you want to use. You must change the height and width settings to the height and width of the new image though. If you do not know what that is, just remove it. You would then use a line simular to the following:
Code:
<img src="{imagesfolder}/InsertYourFileNameHere.gif" alt="">
How to change the divider to a random image
Quote:
(Author bitg)

If you want to know how to do this, follow these instructions.

[high]Note:[/high] Do this only after you have successfully installed this hack.

Make a directory under your {imagesfolder} directory called "divider" or whatever you want to call it and put all your images that you wish to pull from in there. Name them "1.gif", "2.gif", etc...

Edit your "phpinclude" template and add the following to the bottom of it:

PHP Code:
$dividerimagenumber=rand(1,6);
$dividerimage="/divider/$dividerimagenumber.gif"
[high]Note:[/high] Modify the "divider" to be the name of the directory you created under {imagesfolder}.

[high]Note:[/high] Change the (1,6) to 1,the number of images in your "divider" directory). If you 25 images in your divider directory, it would says (1,25);

Save the "phpinclude" template.

edit your "forumdisplay_sepsai" template.

Replace the default values from the hack in this template with the following:

Code:
$announcement
<tr valign="top">
 <td colspan="10" bgcolor="#000000" align="center"><img src="{imagesfolder}/$dividerimage" alt=""></td>
</tr>
[high]Note:[/high] Change the bgcolor="#000000" to any color you like. You can type in a 6-digit hex code (if you know it) or just replace the "#000000" with "black" or "red" or whatever.

If you use this hack please click the INSTALL button - thank you!

Show Your Support

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

Comments
  #42  
Old 07-19-2003, 03:27 PM
ff8_bomb's Avatar
ff8_bomb ff8_bomb is offline
 
Join Date: Feb 2002
Location: Indiana
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
07-13-03 at 02:16 AM assassingod said this in Post #40
How so Hostc? In vB3 it can be done via template edits, not vB2 though.
Please for the love of god answer my question above.
Reply With Quote
  #43  
Old 07-24-2003, 08:26 PM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anything yet?
Reply With Quote
  #44  
Old 07-28-2003, 10:51 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My sincere apologies for not sorting out any problems that any of you have using this. I will try to sort them out soon.
Reply With Quote
  #45  
Old 07-29-2003, 07:02 AM
albibak's Avatar
albibak albibak is offline
 
Join Date: Feb 2003
Location: Paris (France)
Posts: 302
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank for this hack
Reply With Quote
  #46  
Old 07-29-2003, 09:56 PM
Nebby Nebby is offline
 
Join Date: Mar 2003
Location: England
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this only appears to work on forums with the "more" links at the bottom =/
Reply With Quote
  #47  
Old 07-29-2003, 10:08 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean?
Reply With Quote
  #48  
Old 07-31-2003, 08:56 PM
Akex Akex is offline
 
Join Date: Jul 2003
Location: France
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, it's seems it's working for me
Reply With Quote
  #49  
Old 07-31-2003, 09:06 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks - Glad to hear it.
Reply With Quote
  #50  
Old 08-05-2003, 01:07 AM
jwoodall.2 jwoodall.2 is offline
 
Join Date: Aug 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ack, for some reason I dont have the first bit of code you recommend adding below:
Quote:
if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}
What's my next step?

Closest thing I have is:
Quote:
if ($stickyids != '') {
$threadids .= $stickyids;
Reply With Quote
  #51  
Old 08-05-2003, 07:21 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What vB are you using? Have you tried search for 1 line in the code?
Reply With Quote
Reply

Thread Tools

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 06:12 PM.


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.05128 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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