The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
my example :
if (!$bbuserinfo[usergroupid]==1 || $bbuserinfo[usergroupid]==3 || $bbuserinfo[usergroupid]==11) { your example: if($bbuserinfo[usergroupid] != 1 || $bbuserinfo[usergroupid] != 3 || $bbuserinfo[usergroupid] != 11) { ( can the above be done ? - why does mine have double '==' and yours dont. - can you explain this please ) BTW am restrcing it to groupid 1, 3 and 11 , anthing else gets the error. ps. Does the rest of my script too correct ( btw is all does work - am just wondering if i have done anything funny or wondering if there is a 'better' way to get the same result. Thanks g-force2k , you have been loads of help. |
#12
|
|||
|
|||
![]()
well the Vinney your code is correct... all mine stated was that if usergroupid isn't equal to two then show the error...
the difference btw the codes is that: == <-- means is equal to != <-- means is not equal to btw your code looks fine ![]() g-force2k2 |
#13
|
|||
|
|||
![]()
ok am trying to get too big for my boots here, i cant seem to get this to work:
know why ? <?php error_reporting(7); include ("../../mainfile.php"); $index = 1; global $Pmenu,$breadcrumb; $Pmenu=""; $breadcrumb="Account Activation"; $defaultmessage = "Your message here... \n\n - $bbuserinfo[username]"; $defaultemail = "$bbuserinfo[email]"; $unwantedgroups = array('1', '6', '11'); getvbpvars(); include("header.php"); //OpenTable(); if ($bbuserinfo[usergroupid] == $unwantedgroups) { eval("dooutput(\"".gettemplate('contact_error')."\ ");"); } else { eval("dooutput(\"".gettemplate('contact')."\");"); } //CloseTable(); include("footer.php"); ?> am trying to use an array, to get the same result. |
#14
|
|||
|
|||
![]()
Vinny you'll probably have to explode the array... im not that great with arrays and exploding :P so i suggest just using the way you had had it
![]() g-force2k2 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|