As per Gensec, I used the following line (copy/paste) to make it so that people can't steal from Insurance or Godfather (it's ok to steal from admins though). I replaced his original line that he posted:
PHP Code:
if ($getduser[usergroupid]=="6" OR $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="GODFATHERid" OR $getduser[userid]=="INSURANCEid") {
With the ID #'s of the Godfather and Insurance. Here is the whole code.
PHP Code:
if $getduser[userid]==$bbuserinfo[userid] OR $getduser[userid]=="370" OR $getduser[userid]=="369") {
eval("standarderror(\"".gettemplate('store_nosteal')."\");");
}
370 = Godfatherid, and 239 = Insuranceid. I created a new template called "store_nosteal" that simplay says you can't steal from the Godfather or Insurance.
I get the following error:
Parse error: parse error, unexpected T_VARIABLE, expecting '(' in /home/apok/public_html/forums/store.php on line 1074
What am I doing wrong? What is the fix?