Jump to content
MakeWebGames

lucky3809

Members
  • Posts

    1,115
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by lucky3809

  1. well this part ...

    $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$userid");

    should already be in the mailbox.php it's not really needed in the app deny function...

    It should update the user that is being denied if it's not then $userid should be changed to '{$_GET['user']}'

  2. Curt is correct :-)

     

    function app_deny()
    {
    global $db,$ir,$c,$h,$userid;
    $_GET['ID'] = abs((int) $_GET['ID']);
    mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c);
    mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Our staff has reviewed your staff application and unfortunately we feel you are not qualified to be a staff member. Feel free to fill in another application.')",$c);
    $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid=$userid");
    print "App Denied
    
    [url='staff.php?action=appview']> Back[/url]";
    }
  3. No problem it's really simple to add lol.

    Just add this anywhere on the gang.php or whatever page you want it to display on that has gangdata..

    if($gangdata['waroption']=="Off"){

    echo ' This gang has war option off.';

    }

    else

    {

    echo 'This gang has war option on.';

    }

  4. look in your switch area make sure you have all the functions and look at the link in which you clicked and make sure it is calling the correct path to the action in which it says...

    Post your page and maybe someone can help hard to know when you havent posted lol

  5. If you have done that then something in your config file is wrong, maybe at setup you never provided the right database info, which also would make you get that error too, check your config file and see what info you entered for your database, and make sure it is correct, because last thing was it was trying to connect to your database then failed.

  6. You have to make a "new folder" call it class,then if you have a legit copy of mccodes you then upload the files class_db_mysql.php, class_db_mysqli.php to it...

    you apparently havent done that, why your getting the error there is no path class/ in your directory.

  7. you need to add your bbcode stuff to that line like...(example only)...

    $r['mail_text']=$bbcode->Parse(htmlentities($r['mail_text'], ENT_QUOTES));

    if your just copying and pasting

    $r['mail_text']=htmlentities($r['mail_text'], ENT_QUOTES);

    your bbcode isnt going to work.

  8. they arent the same but very similar

    htmlentities — Convert all applicable characters to HTML entities

    htmlspecialchars — Convert special characters to HTML entities

    there is no need to use both, if you want everything html not to go through a post then you would use htmlentites.

    If you only want special characters not to go through then you use the other one htmlespecialchars... using both is useless imo. lol.

    and yes you have the correct way of placing the function!

  9. Yes you can remove the send and other links however if you are not allowing your users to send items then you would need to remove the send php or else they can insert the item id and page name in url and send items and whatever.... if you do not want to remove the page then type in an if statement for only staff or users you wish to use the send page and option.

    As for the effect Value is as you stated 10 would increase or decrease a players health, percent is 10% of the effect.

  10. took this from the viewuser profile count thread

    anyways haunted dawg had a code that only counted the user only and it didnt count multiple times only once... here is the profile code just to get an idea, the viewcount was added to users table.

    if($_GET['u'] != $ir['userid'])

    {

    mysql_query("UPDATE users SET pviews=pvies+1 WHERE userid='{$r['userid']}'") or die(mysql_error());

    }

    the thread was this one

    View User Addon - Profile Views

  11. Dont know if this will work but try it anyways

    find...

    ("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$IP')");

    change to ...

    ("INSERT INTO referals VALUES('', '{$_POST['ref']}', '$i', unix_timestamp(),'{$r['lastip']}','$IP')");
×
×
  • Create New...