![]() |
Quote:
|
I want to hide it from every group except 19
|
What would be the correct variable for new private messages? I know that I use this to call the number of new messages: $unreadpm[messages]. I would like to simply use this hack to turn text red when there are more than 0 new messages. Thanks in advance.
JakeC |
Quote:
[[($bbuserinfo[usergroupid]==19)]] HTML CODE HERE [[/($bbuserinfo[usergroupid]==19)]] |
Quote:
[[($unreadpm[messages]!=0)]] HTML CODE HERE [[/($unreadpm[messages]!=0)]] |
wont someone please help me out with my question. What code should I use to make unregistered user group not able to access the top_stats link to vbstats.php. I want them to still be able to see the button but just when they click on it, it takes them to the user not registered page, please log in screen.
Im not sure what template to put this code in as it needs to be always used say if they are in another forum and are unregisterd, i still want them to not be able to access vbstats. And I need the code for this too. Thanks |
Boofo,
It worked with >0 . I tried it with the !=0 and it didn't work. Thanks for pointing me in the right direction. JakeC |
Quote:
PHP Code:
PHP Code:
|
well in stead of userid how about usergroupid to block whole groups from seeing it. Also please double check me, is it usergroupid or just usergroups? Also I want to include more than 1 usergroupid in the list of people not being able to see the stats. I try and put numbers like
if ($bbuserinfo[usergroupid]==1,3,4,11,12) { show_nopermission(); } but that gives me an error. What am i doing wrong. I know if i use the code below it works fine to block guests. if ($bbuserinfo[usergroupid]==1) { show_nopermission(); } |
Quote:
Code:
if ($bbuserinfo[usergroupid]==1,3,4,11,12) Code:
if (in_array($bbuserinfo['usergroupid'], array(1,3,4,11,12))) { |
All times are GMT. The time now is 06:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|