Colornicks Staff Lavalair

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Colornicks Staff Lavalair

    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.:


    Code:
    <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?

    #2
    just edit in this line in : core.php


    Code:
    function getnick_uid($uid)
    {
      $unick = mysql_fetch_array(mysql_query("SELECT name,plusses, perm FROM nextgen_users WHERE id=&#39;".$uid."&#39;"));
    
    
      if($unick[2]==&#39;2&#39;)
      {
        return "<font color=\"red\">$unick[0]</font>";
    
      }else if($unick[2]==&#39;1&#39;)
      {
        return "<font color=\"#FF2400\">$unick[0]</font>";
      }
    
     
    
    
    
      return $unick[0];
    }
    its simple.

    Comment


      #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

      Comment


        #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...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


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

          Comment


            #6
            how to make nick of the staff with different colors as well as in the image?

            Comment


              #7
              its complicated to tell you how themes work with my site its a multitude of mysql, php and text/css

              but anyway read this http://www.2wap.org/forums/index.php?showtopic=3311 should help

              Comment


                #8
                ok

                Comment


                  #9
                  dammit im tired of seeing these things, ok here is how its done
                  Code:
                  <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
                  Code:
                   if(isadmin($uid) {
                  echo "<a class=\"admn\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$uid\">".getnick_uid($uid)."</a>";
                  }else if(ismod($uid)) {
                  echo "<a class=\"modr\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;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&amp;sid=$sid&amp;who=$uid\">".getnick_uid($uid)."</a>";
                  }
                  replace $uid with whatever the user&#39;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

                  Comment


                    #10
                    thats the correct way i did the same thing, but little different..

                    Comment


                      #11
                      since ur gonna b using it over n over make it a fucntion
                      Code:
                       function userlink($uid) {
                      if(isadmin($uid)) {
                      echo "<a class=\"admn\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$uid\">".getnick_uid($uid)."</a>";
                      }else if(ismod($uid)) {
                      echo "<a class=\"modr\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;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&amp;sid=$sid&amp;who=$uid\">".getnick_uid($uid)."</a>";
                      }
                      }
                      to use simple put echo userlink($uid);

                      Comment


                        #12
                        And bro ".getnick_uid($uid)." gives errors..
                        So,
                        Code:
                        function user_link($uid) {
                        $name = getnick_uid($uid);
                        if(isadmin($uid)) {
                        echo "<a class=\"admn\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$uid\">".$name."</a>";
                        }else if(ismod($uid)) {
                        echo "<a class=\"modr\" href=\"index.php?action=viewuser&amp;sid=$sid&amp;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&amp;sid=$sid&amp;who=$uid\">".$name."</a>";
                        }
                        }
                        this should do if anyone gets errors

                        Comment


                          #13
                          I copy the code in page index.php????
                          if like my post click:

                          http://coding-talk.com/images/totall...ost_thanks.gif

                          Comment


                            #14
                            I copy the code in page index.php????[/b]
                            Nope since its a function ut it into core.php

                            Comment

                            Working...
                            X