Colornicks Staff Lavalair

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

13 replies · 1,757 views · started 19 years ago · 1 min read

4 participants
Guest #1

hi ppl, I saw that pra to define color in link of the team of administration of lavalair script, I involve class in css, ex.:

<style type="text/css">
body {background-color:#5d5f4f; color:#FFFFFF}
h3 {background-color:#b1cfb1; color:#000000}
a.admn:link {color:#00FF00}
a.admn:visited {color:#00FF00}
a.modr:link {color:#FFFF00}
a.modr:visited {color:#FFFF00}
a.acro:visited {color:#d1c794}
a.acro:link {color:#d1c794}
a:link {color:#a6cfda}
a:visited {color:#a6cfda}
.err {background-color:#CC0000; color:#d1c794}
.req {color:#FF0000}
.errf {color:#FF0000}
.smhi {background-color:#FFFFFF; color:#5d5f4f; border: 1px dotted #a6cfda; font-size: 80%}
.smhi a{color:#CC0000}
.smhi a:visited{color:#CC0000}
</style>

but as to make that class to identify which he is of the team and which is not? where archive to make this modification?

Guest #2

just edit in this line in : core.php

function getnick_uid($uid)
{
  $unick = mysql_fetch_array(mysql_query("SELECT name,plusses, perm FROM nextgen_users WHERE id='".$uid."'"));

  if($unick[2]=='2')
  {
    return "<font color=\"red\">$unick[0]</font>";

  }else if($unick[2]=='1')
  {
    return "<font color=\"#FF2400\">$unick[0]</font>";
  }

 

  return $unick[0];
}

its simple.

amylee Principal · 1,092 posts #3

thats the olive theme from my site i hate that one no idea why i made it anyway just use summat like function get_theme($uid) if $uid==1 blah blah and its allready been posted here somewhere

subzero Super moderator Fellow · 3,954 posts #4

wizard did themes and others

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

aftadark #5

jus use this in link style="color:$color" or for text use text

wizard Senior · 493 posts #9

dammit im tired of seeing these things, ok here is how its done

<style type="text/css">
body {background-color:#5d5f4f; color:#FFFFFF}
h3 {background-color:#b1cfb1; color:#000000}
a.admn:link {color:#00FF00}
a.admn:visited {color:#00FF00}
a.modr:link {color:#FFFF00}
a.modr:visited {color:#FFFF00}
a.acro:visited {color:#d1c794}
a.acro:link {color:#d1c794}
a:link {color:#a6cfda}
a:visited {color:#a6cfda}
.err {background-color:#CC0000; color:#d1c794}
.req {color:#FF0000}
.errf {color:#FF0000}
.smhi {background-color:#FFFFFF; color:#5d5f4f; border: 1px dotted #a6cfda; font-size: 80%}
.smhi a{color:#CC0000}
.smhi a:visited{color:#CC0000}
</style>

thats d stylesheet i saw above now in ur lavalair u have isadmin and ismod functions, use them up

 if(isadmin($uid) {
echo "<a class=\"admn\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}else if(ismod($uid)) {
echo "<a class=\"modr\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}else{
// if they arent mod or admin then they must be normal users so
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}

replace $uid with whatever the user's id is suppose to be

and im betting money that some ppl are gonna say it doesnt work cuz they dnt know what to replace $uid with

wizard Senior · 493 posts #11

since ur gonna b using it over n over make it a fucntion

 function userlink($uid) {
if(isadmin($uid)) {
echo "<a class=\"admn\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}else if(ismod($uid)) {
echo "<a class=\"modr\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}else{
// if they arent mod or admin then they must be normal users so
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".getnick_uid($uid)."</a>";
}
}

to use simple put echo userlink($uid);

Guest #12

And bro ".getnick_uid($uid)." gives errors.. So,

function user_link($uid) {
$name = getnick_uid($uid);
if(isadmin($uid)) {
echo "<a class=\"admn\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".$name."</a>";
}else if(ismod($uid)) {
echo "<a class=\"modr\" href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".$name."</a>";
}else{
// if they arent mod or admin then they must be normal users so
echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$uid\">".$name."</a>";
}
}

this should do if anyone gets errors External image (may be gone)

Guest #14

I copy the code in page index.php????

Nope since its a function ut it into core.php

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close