Photos Not View

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    I think its this, I don't have my codes at work with me, doing it out of my head now.

    $piccount = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gallery WHERE uid='".$chat[0]."'"));
    if ($piccount[0]>0){
    $photo = mysql_fetch_array(mysql_query("SELECT imageurl FROM ibwf_gallery WHERE uid='".$chat[0]."' ORDER BY RAND() "));}else{
    $photo[0] = "defaultpic.jpg";
    }

    echo "<img src=\"$photo[0]\" width=\"50\" height=\"60\" alt=\"$photo[0]\"/>";
    echo "[$ds]<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a> - ";
    echo "".strtolower($tosay)."
    ";

    Comment


      #32
      good ;) now 4 perfect work add option 4 user view / not view images before the user nickname...;)
      if like my post click:

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

      Comment


        #33
        I have code this:

        Code:
        else if($action=="phtch")
        {
            addonline(getuid_sid($sid),"PhotoChat Panel","");
            $photochat = $_GET["photochat"];
            $photochat = ($photochat=="dis" ? 1 : 0);
              echo "<head>";
              echo "<title>Chat</title>";
              echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
              echo "</head>";
              echo "<body>";
          echo "<p align=\"center\">";
          //$uid = getuid_sid($sid);
          $res = mysql_query("UPDATE ibwf_users SET photochat=&#39;".$photochat."&#39; WHERE id=&#39;".$uid."&#39;");
          if($res)
          {
            echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Photos Chat Active
        ";
          }else{
            echo "<img src=\"../images/notok.gif\" alt=\"x\"/>error
        ";
          }
          echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
          echo "</p></body>";
        }
        is good???
        at ibwf users I have add a table photochat ... default is off...
        if like my post click:

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

        Comment


          #34
          I have add this:

          $photo = mysql_fetch_array(mysql_query("SELECT avatar FROM ibwf_users WHERE uid=&#39;".$who.&#39;"));

          but:

          Parse error: syntax error, unexpected &#39;"&#39;

          [/b]
          jesus christ why dont yu learn sumthing, a wudv thort yu would nw what a syntax error is by now, yu can make these errors all the time i make em all the time fogeting to put a certain things in. Learn only way yu will progress
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #35
            Any staff closing this topic will be good because I am tired of seeing bitterdemon&#39;s stupidity

            Comment

            Working...
            X