Avatar at ShoutBox - Wapdesire V2

Started on the old forum in July 2015 · view the original in the archive · old links redirect here

1 reply · 408 views · started 11 years ago · 1 min read

2 participants
123kingkong Newbie · 9 posts #1

Hi there and thanks for looking. I have a wapdesire V2 script and I am trying to copy the Avatar Pic so it will show next to shoutbox when someone shouts, at the minute I cannot get this to work and am hopeing somone here can help for me.

The code I have is

<img src="$sex[4]" width="50" height="50"><br/>

and copy of shoutbox code is

if(points(getuid_sid($sid))>14){$main.="<form action="./shoutbox/shout.php?sid=$sid" method="post">\n";}
$main.="<img src="./phpThumb/phpThumb.php?src=../smilies/banner.jpg" alt="-------"/><br/>
<b>ShoutBox</b><br/>\n";
    if($who =="")
    {
        $sql = "SELECT id, shout, uid, shtime  FROM shouts ORDER BY shtime DESC LIMIT 3";
}else{
    $sql = "SELECT id, shout, uid, shtime  FROM shouts  WHERE shouter='".$who."'ORDER BY shtime DESC LIMIT 3";
}

    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
    {
        $shnick = getnick_uid($item[2]);
        $sht = getbbcode($item[1], $sid, 1);
        $shdt = date("d m y-H:i", $item[3]);
      $lnk = "<a href="./profile.php?who=$item[2]&sid=$sid">$shnick</a>: $sht<br/>$shdt";
     if(delshout(getuid_sid($sid),$lshout[2])){
$main.=" <a href="./shoutbox/delete.php?delete=$item[0]&sid=$sid">
<img src="./images/error.gif" alt="[x]"/></a>\n";
}else{
        $dlsh = "";
      }
      $main.="$lnk $dlsh<br/>";
    }
    }
$main.="<br/><a href="./shoutbox/history.php?sid=$sid">History</a>\n";
//$main.="<b> | </b><a href="./shoutbox/shoutroom.php?sid=$sid">ShoutRoom</a>\n";
if(points(getuid_sid($sid))<15){
$points="points";
if(points(getuid_sid($sid))==14){$points="point";}
$main.="<br/>You need ".(15-points(getuid_sid($sid)))." more $points to shout!<br/> 
<img src="./phpThumb/phpThumb.php?src=../smilies/banner.jpg" alt="-------"/>
</div>\n";
}else{
$main.="<br/>ShoutBox Message:<br/>
<input name="shtxt" maxlength="100"/><br/>
<input type="submit" value="Add Shout"/><br/>
<img src="./phpThumb/phpThumb.php?src=../smilies/banner.jpg" alt="-------"/>
</form>
</div>\n";
}

I have tried everything even copyin the code from profiles but will not work... can someone please offer a hand

something else Fellow · 2,296 posts #2

echo '<img src="'.getavatar($item[2]).'" width="50" height="50"><br/>';

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