Shouters Gender

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

5 replies · 496 views · started 17 years ago · 1 min read

3 participants
Pablo Developer · 164 posts #1

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

GumSlone Administrator Principal · 1,690 posts #2

Pablo wrote: 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

External image (may be gone)

capofret Developer · 225 posts #3

Pablo wrote: 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

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&sid=$sid&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&sid=$sid&shid=$shots[2]\">delete</a>";
//}
$shbox .= "<br/>";

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

External image (may be gone)

Pablo Developer · 164 posts #4

not working but thanks alot bro

capofret Developer · 225 posts #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 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.

External image (may be gone)

Pablo Developer · 164 posts #6

lol ok bro i will try 2 make my way tru

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