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)
-   -   Top X Stats - Permissions for Latest Post (https://vborg.vbsupport.ru/showthread.php?t=69241)

gfxhavenowner 09-08-2004 10:00 PM

Top X Stats - Permissions for Latest Post
 
This is my very first hack. It allows you to set usergroups that will bypass the $excludedforums variable and show all the latest posts, regardless of the forum. This is very useful if you want staff to see new threads in the staff forum on the Top X, but not regular members.

You must have the Top X Stats hack installed first!

Open index.php

Find:

PHP Code:

$excludedforums "13"// forums to be excluded from latest threads. Format "0,5,7" 

Above, add:

PHP Code:

$privlagedgroups "1"//which groups should see everything?
if ($privlagedgroups == $bbuserinfo['usergroupid'])
{
$excludedforums ="0";
}
else


Find:

PHP Code:

$excludedforums "13"// forums to be excluded from latest threads. Format "0,5,7" 

Below, add:

PHP Code:



Closed and upload index.php

Enjoy!

kall 09-09-2004 01:54 AM

Is that saying that Unregistered / Not Logged In is a "privaledged" (the correct spelling is 'privileged') group?

That's usergroup 1...

gfxhavenowner 09-09-2004 02:01 AM

1 was just used as an example. For me, the usegroup is 6. Change the 1 to whatever usergroup you want to be privlaged.

PheReFuLL 11-12-2004 08:07 PM

How come it doesn't allow multiple usergroups to be added to the privelaged list? oO

MacGyveR 03-22-2007 11:30 AM

- Unripe.... :(


All times are GMT. The time now is 11:00 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.01024 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)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