View Full Version : COPPA template conditional?
Gaskell
08-06-2009, 04:22 PM
Hi guys,
I'm using Cyb's Advanced Registration mod (https://vborg.vbsupport.ru/showthread.php?t=198359) and would like to highlight any COPPA users. I know how I'm going to highlight them, I just need the if conditional for COPPA.
Any help would be hot.
Cheers folks :)
Gaskell
08-10-2009, 09:56 AM
Anyone? :confused:
Lynne
08-10-2009, 02:20 PM
The if condition for COPPA would just be a condition based on the usergroup. By default it is usergroupid 4. So, something like:
<if condition="$userinfo['usergroupid'] == 4">
stuff only for if the user is in usergroupid 4
</if>However, I know nothing about that mod, now what variables you need to use ($post, $userinfo, $bbuserinfo, etc) which is why if you have questions regarding a mdoification, you need to post in the modification thread for help. If what I posted doesn't help you figure it out, then that is where you need to ask for more help.
Gaskell
08-10-2009, 05:27 PM
Hi Lynne,
Unfortunately going off usergroup wouldn't work for this as all newbies are in group 4 by default. The conditional I'm after is for this option in user.php:
http://img.photobucket.com/albums/v201/AnthGaskell/ACPCOPPA.jpg
Its not a modification specific question as the conditional could be used in other things, hence the posting here (though I have also posted on the modification thread).
Lynne
08-10-2009, 05:39 PM
Look in the page source for that page and you should see the name of the variable. Try a search in your code for that variable and see where it comes from and if it's available for use. Then try using it in your conditions.
(variable name is "coppauser" which looks like it comes from the useroptions array.)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.