help second foder of smile

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help second foder of smile

    I will create a second folder of smile to display only if the room has censorship by age (for example, I create a room by specifying that the access is allowed from 20 to 40 years I see and I can use the second folder of smile) and can do it in a lavalair? someone give me some ideas? Thanks to those who will respond

    #2
    PHP Code:
    function getsmiliesporn($text)
    {
      
    $sql "SELECT * FROM ibwf_smilies_porn";
       
    // or
      #$sql = "SELECT * FROM ibwf_smilies WHERE cat='sex'";

      
    $smilies mysql_query($sql);
      while(
    $smilie=mysql_fetch_array($smiliesMYSQL_NUM))
      {
        
    $scode $smilie[1];
        
    $spath $smilie[2];
        
    $text str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
      }
      return 
    $text;
    }
    function 
    parsepmporn($text$sid="")
    {
      
    $text htmlspecialchars($text);
      
    $sml mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"), MYSQL_NUM);
      if (
    $sml[0]=="1")
      {
      
    $text getsmiliesporn($text);
      }
      
    $text getbbcode($text$sid);
      
      return 
    $text;
    }
    in chat.php // search for parsepm witch CTRL + F
    $sql mysql_query("SELECT mage FROM ibwf_rooms WHERE id='".$rid."'")
     
    $rinfo mysql_fetch_array($sqlMYSQL_NUM);
     if(
    $rinfo[0]>17
       
    $text parsepmporn($chat[3], $sid);
     else
       
    $text parsepm($chat[3], $sid);

    // is that u searched for? 
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment


      #3
      Originally posted by i0nutzxp View Post
      PHP Code:
      function getsmiliesporn($text)
      {
        
      $sql "SELECT * FROM ibwf_smilies_porn";
         
      // or
        #$sql = "SELECT * FROM ibwf_smilies WHERE cat='sex'";

        
      $smilies mysql_query($sql);
        while(
      $smilie=mysql_fetch_array($smiliesMYSQL_NUM))
        {
          
      $scode $smilie[1];
          
      $spath $smilie[2];
          
      $text str_replace($scode,"<img src=\"$spath\" alt=\"$scode\"/>",$text);
        }
        return 
      $text;
      }
      function 
      parsepmporn($text$sid="")
      {
        
      $text htmlspecialchars($text);
        
      $sml mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"), MYSQL_NUM);
        if (
      $sml[0]=="1")
        {
        
      $text getsmiliesporn($text);
        }
        
      $text getbbcode($text$sid);
        
        return 
      $text;
      }
      in chat.php // search for parsepm witch CTRL + F
      $sql mysql_query("SELECT mage FROM ibwf_rooms WHERE id='".$rid."'")
       
      $rinfo mysql_fetch_array($sqlMYSQL_NUM);
       if(
      $rinfo[0]>17
         
      $text parsepmporn($chat[3], $sid);
       else
         
      $text parsepm($chat[3], $sid);

      // is that u searched for? 
      I have to add a table to ibwf_smile porn?? but I have to add some other thing in database tables or just this?

      Comment


        #4
        code for smilies category been posted long time ago...
        if i remember correct user alesh has posted it...
        so... search is the key word...
        having same topics and answers over and over again...
        will create only mess on forum...
        *LOCK*
        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

        Comment

        Working...
        X