help second foder of smile

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

3 replies · 726 views · started 16 years ago · 1 min read

3 participants
LadyEnigma Developer · 71 posts #1

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 🙂

....silence please....

i0nutzxp Developer · 150 posts #2
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($smilies, MYSQL_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($sql, MYSQL_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'); ?>
LadyEnigma Developer · 71 posts #3

i0nutzxp wrote:

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($smilies, MYSQL_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($sql, MYSQL_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?

....silence please....

metulj Super moderator Principal · 1,726 posts #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ノ刀ノイリ!

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