Jump to content
MakeWebGames

Recommended Posts

Posted

is there a way in which i can have staff members names a different colour wherever their name is?

mabe sumin like this

if($r['user)level']==2) { $r['user_level']="<font color='green'>{$r['user_level']}</font>

 

and my other question is, in mailbox how can i change the compose and send functions so the user puts the id of the reciver and now the name...

Posted

Re: 2 Questions

if($r['user_level']==2) print" <font color=red>[username]</font>

else

}

print" [username]

 

no that is not the right code but that points you in the right direction see if you can work it out ;)

open mailbox.php ctrl+f and search for function_send i think then replace the id to username in there

(my mailbox is different)

Posted

Re: 2 Questions

 

if($r['user_level']==2) print" <font color=red>[username]</font>

else

}

print" [username]

 

no that is not the right code but that points you in the right direction see if you can work it out ;)

open mailbox.php ctrl+f and search for function_send i think then replace the id to username in there

(my mailbox is different)

that was a lot of help

Posted

Re: 2 Questions

with the name colour it will have to be done with all pages where it says a name and i want a more efficent way to do that.

and with the mailbox 1 its not that easy

Posted

Re: 2 Questions

where did u get your codes from? coz i signed up to your game and they are the pages i had with my old game, even the images...

Posted

Re: 2 Questions

Simply put in header.php

if($r['user_level']=2){$r['username']="<font color='COLOR'>".$r['username']."</font>";}
if($r['user_level']=3){.... and so on

 

And mailbox.php for you to type the username in it would be:

if($_POST['user1'] && $_POST['user2'])
{
 die("Please do not select a contact AND enter a username, only do one.

[url='mailbox.php']> Back[/url]");
}
if(!$_POST['user1'] && !$_POST['user2'])
{
 die("You must select a contact or enter a username.

[url='mailbox.php']> Back[/url]");
}
$sendto=($_POST['user1']) ? $_POST['user1'] : $_POST['user2'];
$q=$db->query("SELECT userid FROM users WHERE username='{$sendto}'");
if($db->num_rows($q)==0)
{
 die("You cannot send mail to nonexistant users.

[url='mailbox.php']> Back[/url]");
}
$to=$db->fetch_single($q);
$db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$msg')");

 

And for userid it would simply be:

$to= (int) $_POST['userid'];
$db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$msg')");
Posted

Re: 2 Questions

 

pog i am using the codes that me and dale have worked on.

haha i know you aint, i done those pages even though they are crap.

u even got the user default image lol

Posted

Re: 2 Questions

pog dont take the piss mate i have done nothing to you,

i have worked on the codes for ages adding alot of stuff,

if you have a problem take it up in pm or even with dale like i have just done so.

Posted

Re: 2 Questions

ok u must of copied my old game exactly

and you stole the bg image and default user image!

 

your site looks worse than mine did though

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...