![]() |
Changing the title of the groups won't do anything... they're referanced by ID numbers.
You would need to change the line of code you referanced to add an appropriate OR statement for the usergroup you want to check against. |
Can anyone tell me how to restructure this line within Ted's mod with an "OR" statement, so that it will include Usergroup #3 "Users Awaiting Email Confirmation" as well as guests which is Usergroup #1 "Unregistered / Not Logged In"?
In this way, it will extend the use of this fine mod and visitors to our community will end up being blocked until they fully complete the registration process. Code:
// check if user is a guest and if system is enabled Regards, Badger |
I'm not in a place where I can test but try
Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'X,Y,Z') AND !$lvgbot AND $vbulletin->options['lgvon']) If that doesn't work then I'm calling the usergroupid variable incorrectly. In that case, try $vbulletin->userinfo['usergroupid'] instead. |
Quote:
Thanks Ted.... :) I tried both approaches.... if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon']) if ( ($show['guest'] OR in_array($vbulletin->userinfo['usergroupid'],'3') AND !$lvgbot AND $vbulletin->options['lgvon']) ..... but I get an error as follows: Parse error: syntax error, unexpected '{' in /forums/mysite/showthread.php(345) : eval()'d code(133) : eval()'d code on line 7 Thanks... Regards, Badger |
Missing a closing )
Code:
if ( ($show['guest'] OR in_array($vbulletin->GPC['usergroupid'],'3')) AND !$lvgbot AND $vbulletin->options['lgvon']) |
My only problem is that when the "Register Take-Over Message" is enabled, my welcome headers only show up on the main page. If I go into a thread no header shows up.
|
Quote:
|
Quote:
|
Installed on 3.6.8 and working great. Thanks!
(Clicks Installed) |
Installed on 3.6.8 and it seems to be working great
|
All times are GMT. The time now is 01:18 PM. |
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:
|