vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Announcement Visibility Per-Forum (https://vborg.vbsupport.ru/showthread.php?t=81479)

akanevsky 05-13-2005 10:00 PM

Announcement Visibility Per-Forum
 
/*================================================= =====================*\
|| Announcement Visibility Per-Forum
|| Author : Psionic Vision
|| Works on : vBulletin 3.0.7
\*================================================ ======================*/

Did you ever wonder why there is an option to add announcement to all forums, but no option to exclude them from certain forums? Well, this hack gives you such a function. Now you can switch announcement visilbility in any forum with just one click of your mouse. Invisible announcements are only accessible to administrators, super moderators and users with moderator abilities. For everyone else, when announcement is hidden from a certain forum, it will not be visible there, but it will be visibible from other forums.

If you like it, do not forget to click install.

Lionel 05-14-2005 06:23 PM

Nicely done. That was kind of silly having only 2 choices: either select all forums or only one. That meant if I wanted to display announcement in all but 2, I had to select some 98 forums individually just to exclude the last 2.

Thanks.

bigcurt 05-15-2005 02:33 AM

Nice hack bud ;).

ArabsLink 05-15-2005 02:53 AM

nice hack thank you very much

akanevsky 05-15-2005 03:31 PM

bigcurt8998
The click install dammit. :)

ArabsLink
I am glad you like it :)

----------------------------------
FIX: (forgot to include it)
----------------------------------

In forumdisplay.php, find:

PHP Code:

        ORDER BY startdate DESC
        
" . iif($vboptions['oneannounce'], "LIMIT 1")); 

Replace with:

PHP Code:

        ORDER BY startdate DESC
        
"); 



All times are GMT. The time now is 06:20 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.00993 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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