3 tier shoutbox for wapdesire v2

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

  • brand
    replied
    i now it works as i done it on my tester site lol but glad you sorted now

    Leave a comment:


  • blades
    replied
    thats great m8 thanks works a treat

    Leave a comment:


  • brand
    replied
    Code:
    if(points(getuid_sid($sid))>14){$main.="<form action=\"./shoutbox/shout.php?sid=$sid\" method=\"post\">\n";}
    $main.="<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/><br/>
    <b><img src=\"./phpThumb/phpThumb.php?src=../images/box.gif\" alt=\"-------\"/></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]&amp;sid=$sid\">$shnick Says</a>: $sht<br/>$shdt";
         if(delshout(getuid_sid($sid),$lshout[2])){
    $main.=" <a href=\"./shoutbox/delete.php?delete=$item[0]&amp;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";
    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=../images/$banner\" 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=../images/$banner\" alt=\"-------\"/>
    </form>
    </div>\n";
    }
    this works i just put it on a testing site

    to see it working click testing site and login using demo for username and password

    if you still having problems please <b>upload</b> ya main.php on here and i will look to see where ya getting error

    Leave a comment:


  • blades
    replied
    here it is m8
    addonline(getuid_sid($sid),"Main Menu","main.php");
    echo head_tag(getnick_sid($sid)."@".sitename(),1,getnic k_sid($sid));
    $title="<img src=\"./phpThumb/phpThumb.php?src=../images/$logo\" alt=\"".sitename()."\"/><br/>
    ".date("g:ia",strtotime("-0 hours"))."<br/>".date("l jS F",strtotime("-0 hours"))."<br/>
    ".$row_users["username"]." You're Back ;o)";
    if($count_popup[0]>0){
    $rname=mysql_fetch_array(mysql_query("SELECT name FROM chatrooms WHERE id='".$rid."'"));
    $popsenabled=mysql_fetch_array(mysql_query("SELECT popups FROM users WHERE id='".getuid_sid($sid)."'"));
    $pminfo=mysql_fetch_array(mysql_query("SELECT id, text, byid, timesent, toid, reported FROM popups WHERE unread='1' AND toid='".getuid_sid($sid)."'"));
    mysql_query("UPDATE popups SET unread='0' WHERE id='".$pminfo[0]."'");
    if(isspam($pminfo[1])){mysql_query("UPDATE popups SET reported='1' WHERE id='".$pminfo[0]."'");}
    $sex=mysql_fetch_array(mysql_query("SELECT sex, image FROM profiles WHERE uid='".$pminfo[2]."'"));
    if($sex[0]=="M"){$usersex="<img src=\"./images/male.gif\" alt=\"(M)\"/>";$color="#0000FF";}
    if($sex[0]=="F"){$usersex="<img src=\"./images/female.gif\" alt=\"(F)\"/>";$color="#FF0066";}
    if($sex[1]!=""){$usersex=getbbcode($sex[1],$sid,1);}
    $main="<div class=".align().">
    <b>Popup Message<br/>
    From $usersex<span style=\"color:$color;\">".getnick_uid($pminfo[2])."</span></b><br/>
    <small>(".date("H:i-D jS M y",$pminfo[3]).")</small><br/>\n";
    $main.=getbbcode($pminfo[1],$sid,1)."
    <form action=\"./popups.php?send=1&amp;who=$pminfo[2]&amp;sid=$sid\" method=\"post\">
    <b>Reply</b><br/>
    <input name=\"message\" maxlength=\"500\"/><br/>
    <input type=\"submit\" value=\"Send\"/>
    </form>
    </div>\n";
    $location=mysql_fetch_array(mysql_query("SELECT link FROM online WHERE uid='".getuid_sid($sid)."'"));
    $main.="<p align=".align().">
    <a href=\"./$location[0]?sid=$sid\">Skip Msg</a><br/>\n";
    //$main.="<a href=\"inbxproc.php?action=rptpop&amp;sid=$sid&amp ;pmid=$pminfo[0]\">Report</a><br/>";
    if($rid!=""){$main.="<a href=\"./chat/chat.php?sid=$sid&amp;rid=$rid$pass\">Back To $rname[0]</a><br/>\n";}
    }
    if(align()!=center)$main.="<div class=\"center\">\n";
    else $main.="<div class=".align().">\n";
    if(points(getuid_sid($sid))>14){$main.="<form action=\"./shoutbox/shout.php?sid=$sid\" method=\"post\">\n";}

    $main.="<a href=\"rent.php?action=rent&sid=$sid\">Sites 4 Rent<br/></a>\n";

    $main.="<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/><br/>
    <b>ShoutBox</b><br/>\n";
    $lshout=mysql_fetch_array(mysql_query("SELECT shout, uid, id FROM shouts ORDER BY shtime DESC LIMIT 1"));
    $sex=mysql_fetch_array(mysql_query("SELECT sex, image FROM profiles WHERE uid='".$lshout[1]."'"));
    if($sex[0]=="M"){$usersex="<img src=\"./images/male.gif\" alt=\"(M)\"/>";$color="#0000FF";}
    if($sex[0]=="F"){$usersex="<img src=\"./images/female.gif\" alt=\"(F)\"/>";$color="#FF0066";}
    if($sex[1]!=""){$usersex=getbbcode($sex[1],$sid,1);}
    $shnick=getnick_uid($lshout[1]);
    $main.="$usersex<i><a href=\"./profile.php?who=$lshout[1]&amp;sid=$sid\" style=\"color:$color;\">".$shnick."</a></i>
    -
    ".getbbcode($lshout[0],$sid,1);
    if(delshout(getuid_sid($sid),$lshout[2])){
    $main.=" <a href=\"./shoutbox/delete.php?sid=$sid&amp;delete=$lshout[2]\">
    <img src=\"./images/error.gif\" alt=\"[x]\"/></a>\n";
    }
    $main.="<br/><a href=\"./shoutbox/history.php?sid=$sid\">History</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=../images/$banner\" 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=../images/$banner\" alt=\"-------\"/>
    </form>
    </div>\n";
    }
    $main.="<p align=".align().">\n";
    if(getbbcode(greeting(),$sid,0)!=""){$main.=getbbc ode(greeting(),$sid,0)."<br/>\n";}

    if(isowner(getuid_sid($sid))){
    $main.="<br/><a href=\"./admin/tools.php?type=tools&amp;sid=$sid\">Owner Tools</a>\n";
    }else if(isheadadmin(getuid_sid($sid))){
    $main.="<a href=\"./admin/tools.php?type=tools&amp;sid=$sid\">Head Admin Tools</a><br/>\n";
    }else if((ismod(getuid_sid($sid)))||(isadmin(getuid_sid( $sid)))){
    $main.="<a href=\"./admin/tools.php?type=tools&amp;sid=$sid\">Admin Tools</a><br/>\n";
    }else if(use_tools(getuid_sid($sid))){
    $main.="<a href=\"./admin/tools.php?type=tools&amp;sid=$sid\">Hidden Tools</a><br/>\n";
    }
    if(isowner(getuid_sid($sid))||isheadadmin(getuid_s id($sid))||isadmin(getuid_sid($sid))||ismod(getuid _sid($sid))||use_tools(getuid_sid($sid))){
    if(align()!=center)$main.="<p align=\"center\">\n";
    else $main.="<p align=".align().">\n";
    $main.="<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/><br/>\n";
    }
    $noi=mysql_fetch_array(mysql_query("SELECT count(*) FROM users WHERE validated='0'"));
    if((validate(getuid_sid($sid)))&&($noi[0]>0)){
    $main.="<a href=\"./admin/validate.php?sid=$sid\">$noi[0] Members Awaiting Validation</a><br/>\n";
    }
    $noi=mysql_fetch_array(mysql_query("SELECT count(*) FROM download_files WHERE active='0'"));
    if((download_tools(getuid_sid($sid)))&&($noi[0]>0)){
    $main.="<a href=\"./downloads/downloads.php?sid=$sid\">$noi[0] Files Awaiting Validation</a><br/>\n";
    }
    if(use_tools(getuid_sid($sid))){
    $adminclub="1";
    $ismem=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM clubmembers WHERE clubid='".$adminclub."' AND uid='".getuid_sid($sid)."'"));
    if($ismem[0]==0){
    $main.="<a href=\"./clubs/join.php?id=$adminclub&amp;sid=$sid\">Join Admin Club Now!</a><br/>\n";
    }else{
    $clinfo=mysql_fetch_array(mysql_query("SELECT name, owner, description, rules, logo, points, created FROM clubs WHERE id='".$adminclub."'"));
    $clubname=htmlspecialchars($clinfo[0]);

    Leave a comment:


  • brand
    replied
    Originally posted by blades View Post
    understand that bud but here is the error i get everytime Parse error: syntax error, unexpected T_CLASS in /home//public_html/main.php on line 89
    post a copy of ya main.php n i will have a look for you

    Leave a comment:


  • blades
    replied
    understand that bud but here is the error i get everytime Parse error: syntax error, unexpected T_CLASS in /home//public_html/main.php on line 89
    Last edited by blades; 08.09.10, 10:42.

    Leave a comment:


  • brand
    replied
    Originally posted by blades View Post
    cause i cant find one that works this as errors to thanks anyway bud
    the one i put on should not give errors as i copied it from my site that i have it on

    Leave a comment:


  • blades
    replied
    cause i cant find one that works this as errors to thanks anyway bud

    Leave a comment:


  • brand
    replied
    Originally posted by centi View Post
    y is the people asking the same code again n again

    because they are to lazy to use the search on here

    Leave a comment:


  • centi
    replied
    y is the people asking the same code again n again

    Leave a comment:


  • brand
    replied
    Originally posted by blades View Post
    hi anyone have the codeing for the 3 tier shoutbox plz
    PHP Code:
    if(align()!=center)$main.="<div class=\"center\">\n";
    else 
    $main.="<div class=".align().">\n";
    if(
    points(getuid_sid($sid))>14){$main.="<form action=\"./shoutbox/shout.php?sid=$sid\" method=\"post\">\n";}
    $main.="<img src=\"./phpThumb/phpThumb.php?src=../images/$banner\" alt=\"-------\"/><br/>
    <b><img src=\"./phpThumb/phpThumb.php?src=../images/box.gif\" alt=\"-------\"/></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]&amp;sid=$sid\">$shnick Says</a>: $sht<br/>$shdt";
         if(
    delshout(getuid_sid($sid),$lshout[2])){
    $main.=" <a href=\"./shoutbox/delete.php?delete=$item[0]&amp;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";
    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=../images/
    $banner\" alt=\"-------\"/>
    </div>\n"
    ; 

    Leave a comment:


  • blades
    started a topic 3 tier shoutbox for wapdesire v2

    3 tier shoutbox for wapdesire v2

    hi anyone have the codeing for the 3 tier shoutbox plz
Working...
X