wall modification

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

    wall modification

    hey guys who wana help me i want to add a comment on a post and make it able to be showing just the persons own posts and friends post and anything they liked or posted in any place

    curently its just showing everyones posts and cant delete any posts on here
    Code:
    $sql = "SELECT gbowner, gbsigner, gbmsg, dtime FROM redo_wall WHERE gbowner='".$who."' ORDER BY dtime DESC LIMIT 4";
    
        $items = mysql_query($sql);
        echo mysql_error();
        if(mysql_num_rows($items)>0)
        {
        if(mysql_num_rows($items)>1)
        {
     $br = "<br/>";
      }else{
     $hr = "";
     }
        while ($item = mysql_fetch_array($items))
        {
          $hr ="<div class=\"hr\"></hr>";
    
             $snick = getnick_uid($item[1]);
          $text = parsepm($item[2], $sid);
     echo "<table><tr><td>$foto</td><td>$seximg<a href=\"../profile/index.php?action=viewuser&amp;who=$item[1]&amp;sid=$sid\">$snick</a><br/>$text</td></tr></table>";
    }
        }else{
     echo "<i>*No Messages</i><br/>";
     }
       
         echo "<onevent type=\"onenterforward\">";
      echo "<refresh>
            <setvar name=\"msgtxt\" value=\"\"/>";
      echo "</refresh></onevent>";
    
        echo "<p align=\"center\">";
        echo "<form method=\"post\" action=\"../home/wall.php?action=wall3&amp;sid=$sid\">";
        echo "Text:<input name=\"msgtxt\" maxlength=\"500\"/><br/>";
        echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
        echo "<input type=\"submit\" name=\"Submit\" value=\"Sign\"/><br/>";
        echo "</form>";
        echo "<br/>";
     
       $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM redo_wall WHERE gbowner='".$who."'"));
       echo "<a href=\"../home/wall.php?action=wall&amp;who=$who&amp;sid=$sid\">Comments</a> [$noi[0]]";
    also if its possible to make it able to post an image
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    #2
    OMG

    u can look the code in the gallery for all functions u want!

    if one guy is friend he can comment in gallery on photos
    and u can found code for upload form in the gallery for put in wall page..

    very easy..
    if like my post click:

    http://coding-talk.com/images/totall...ost_thanks.gif

    Comment


      #3
      Hey tanx sweet angel
      ________________
      Jacques
      jacques@gw-designs.co.za
      http://coding.biz.tm
      Come join and lets make it a place to learn all the noobies how to code
      __________________

      NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

      Comment


        #4
        Lol riderz is in love with lavalair :P
        Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com

        Comment


          #5
          lol just for now not forever ill learn other codings just want to make the ultimate script ever to be made when im satisfied ill learn new coding
          ________________
          Jacques
          jacques@gw-designs.co.za
          http://coding.biz.tm
          Come join and lets make it a place to learn all the noobies how to code
          __________________

          NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

          Comment


            #6
            That's the spirit hehehehe :D

            Comment


              #7
              Originally posted by kevk3v View Post
              Lol riderz is in love with lavalair :P
              i dont know why he dont love your script..
              is more better the code!!!
              if like my post click:

              http://coding-talk.com/images/totall...ost_thanks.gif

              Comment


                #8
                re

                its showing everyones posts becus
                1) u havent got a extra link function for just the user

                2) your missing the gets

                PHP Code:
                $uid =getuid_sid($sid);
                  
                addonline(getuid_sid($sid),"Viewing  List","");
                        
                pagehead();
                navstart("Wall");
                    
                $id $_GET["id"];
                    
                $who $_GET["who"];
                       
                $stat $_GET["stat"];
                   
                $status mysql_fetch_array(mysql_query("SELECT user, text, sent FROM wall WHERE id='".$_GET["id"]."'"));
                $comment "<a href=\"index.php?show=addcom&amp;id=$id\">Comments</a>"
                this is just an example
                make sure your pages include the gets for links to work correctly









                Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
                Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

                Comment

                Working...
                X