The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Permission problem
I have read several articles, did some trial and error, and basically figured out many of my questions. At this point in my script, I have a question about usergroup_permissions. I got this code out of Psionic's tutorial, but it doesn't seem to work for me. Everyone is getting to the form. Here it is:
Code:
if ($_REQUEST['do']=='create_event' AND (!is_member_of($vbulletin->userinfo, 6) OR !is_member_of($vbulletin->userinfo, 76))) { eval('$usernamecode = "' . fetch_template('newpost_usernamecode') . '";'); if (!$_REQUEST['outcomes']) { eval('$picksbody = "' . fetch_template('picks_outcomes') . '";'); } else { $o = $_REQUEST['outcomes']; for($i=0; $i<=$o; $i++) { $outcomes .= "<p><label>Outcome ".$i.":<input name=\"outcome[".$i."]\" type=\"text\" id=\"outcome".$i."\" size=\"64\" maxlength=\"127\" /></label></p>"; } eval('$picksbody = "' . fetch_template('picks_new_event') . '";'); } } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|