Shouters Gender

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

    Shouters Gender

    any body can help me out with this code i want when a user shouts there gender will show behind thier name like this example [M]Gumslone:Coding Talk Rocks ?? can help please

    #2
    Originally posted by Pablo View Post
    any body can help me out with this code i want when a user shouts there gender will show behind thier name like this example [M]Gumslone:Coding Talk Rocks ?? can help please
    will probably need to create a function which checks the gender also it depends on script and mysql table whe the gender is saved.
    Advertise your mobile site for FREE with AdTwirl

    Comment


      #3
      Originally posted by Pablo View Post
      any body can help me out with this code i want when a user shouts there gender will show behind thier name like this example [M]Gumslone:Coding Talk Rocks ?? can help please

      check this (from core.php), just modify for your site
      Code:
      function getshoutbox($sid){
      $shbox = "<small><center>";
      $lshout = mysql_query("SELECT shout, shouter, id  FROM ibwf_shouts ORDER BY shtime DESC LIMIT 1");
      while ($shots = mysql_fetch_array($lshout))
      {
      $shnick = getnick_uid($shots[1]);
      if(isonline($shots[1])){
      	$bulb="<img src=\"images/onl.gif\" alt=\"On\"/>";
      }
      else{
      	$bulb="<img src=\"images/ofl.gif\" alt=\"Off\"/>";
      }
      //////////////////////////////////////////////////////////////////// add sex to shouts code
      $nick = getnick_uid($sid);
      $who = $_GET['who'];
      $action = $_GET['action'];
      $uid = getuid_sid($sid);
      
      $usex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$who."'"));
      if($usex[0]=='M'){
      $usex = "<img src=\"images/male.gif\"/>";
      }else if($usex[0]=='F'){
      $usex = "<img src=\"images/female.gif\"/>";
      }
      
      $shbox .= "$bulb  <i>$usex<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$shots[1]\">".$shnick."</a></i>: ";
      $fshout = htmlspecialchars($shots[0]);
      
      $fshout = getsmilies($fshout);
      $fshout = getbbcode($fshout, $sid);
      $shbox .= $fshout;
      //if (ismod(getuid_sid($sid))){
      //$shbox .= ", <a href=\"modproc.php?action=delsh&amp;sid=$sid&amp;shid=$shots[2]\">delete</a>";
      //}
      $shbox .= "<br/>";
      LDSWAPWORLD sigpic
      site closed.
      im busy with other things in life like facebook , send me PM so i can add you
      www.pinoySG.com

      don't ask for help if you're not even helping yourself!
      i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


      Comment


        #4
        not working but thanks alot bro

        Comment


          #5
          ofcourse it wont work straight away. it just gives u idea how to do it..anyway, u can check mobilezonez for the whole script.
          LDSWAPWORLD sigpic
          site closed.
          im busy with other things in life like facebook , send me PM so i can add you
          www.pinoySG.com

          don't ask for help if you're not even helping yourself!
          i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


          Comment


            #6
            lol ok bro i will try 2 make my way tru

            Comment

            Working...
            X