Problem to see photo comment from guest mod!!

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

    Problem to see photo comment from guest mod!!

    PHP Code:
    
    ////////////////////////////////////////READ COMMENTS
    
    else if($action=="comments")
    
    {
    
    
    
    
    $whoimage = $_GET["whoimage"];
    
    
    
    
      addonline(getuid_sid($sid),"Reading Photo''s Comments","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://bollywoodjalwa.com/css/orkut_medium.css\">";
    
    echo "<p align=\"left\"><small>";
    
      echo "<br/>";
    
      echo "</small></p>";
    
          //////ALL LISTS SCRIPT <<
    
    
    
        if($page=="" || $page<=0)$page=1;
    
        $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE imageid='".$whoimage."' and commentsyn ='Y'"));
    
        $num_items = $noi[0]; //changable
    
        $items_per_page= 5;
    
        $num_pages = ceil($num_items/$items_per_page);
    
        if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    
        $limit_start = ($page-1)*$items_per_page;
    
    
    
        $uidinfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_usergallery WHERE id='".$whoimage."'"));
    
        $uid = getuid_sid($sid);
    
    
    
    
    
        $sql = "SELECT rating, comments, byuid, time, commentsreply, id  FROM ibwf_usergallery_rating WHERE imageid ='".$whoimage."' and commentsyn ='Y' ORDER BY time DESC LIMIT $limit_start, $items_per_page";
    
    
    
    
    
        echo "<p>";
    
        $items = mysql_query($sql);
    
        echo mysql_error();
    
        if(mysql_num_rows($items)>0)
    
        {
    
        while ($item = mysql_fetch_array($items))
    
        {
    
    
    
        if(isonline($item[2]))
    
      {
    
        $iml = "<img src=\"../images/onl.gif\" alt=\"+\"/>";
    
    
    
      }else{
    
        $iml = "<img src=\"../images/ofl.gif\" alt=\"-\"/>";
    
      }
    
        if(strlen($item[1])>1){
    
    
    
          $snick = getnick_uid($item[2]);
    
          $uid1 = getuid_sid($sid);
    
    
    
              if($uid==$uidinfo[0])
    
              {
    
                  $dellnk = "<a href=\"gallery2.php?action=delvote&amp;sid=$sid&amp;whoimage=$item[5]\">*</a>";
    
              }else{
    
                $dellnk = "";
    
              }
    
    
    
          $lnk = "<small><a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$iml$snick:</a> <b>$item[0]/10</b> $dellnk</small>";
    
          echo "$lnk<br/><small>";
    
          $bs = date("d/m/y",$item[3]);
    
          $text = parsepm($item[1], $sid);
    
          if(($uid==$uidinfo[0]) and (strlen($item[4])<1))
    
          {
    
            $replylink = "<a href=\"gallery2.php?action=commentreply&amp;sid=$sid&amp;id=$item[5]\">Reply to Comment</a><br/><i>$bs</i>";
    
          }else{
    
            $replylink = " <i>$bs</i>";
    
          }
    
          echo "$text";
    
          if(strlen($item[4])>1)
    
          {
    
          $text1 = parsepm($item[4], $sid);
    
          echo "<br><b><i>Reply:</i> $text1</b>";
    
          }
    
          echo "<br/>$replylink<br/><br/>";
    
          echo "</small>";
    
        }
    
        }
    
        }
    
        echo "</p>";
    
        echo "<p><left>";
    
        if($page>1)
    
        {
    
          $ppage = $page-1;
    
          echo "<a href=\"gallery2.php?action=$action&amp;sid=$sid&amp;page=$ppage&amp;whoimage=$whoimage\"><small>« Prev</small></a> ";
    
        }
    
        echo "<small> $page/$num_pages </small>";
    
        if($page<$num_pages)
    
        {
    
          $npage = $page+1;
    
          echo "<a href=\"gallery2.php?action=$action&amp;sid=$sid&amp;page=$npage&amp;whoimage=$whoimage\"><small>Next »</small></a>";
    
        }
    
    
    
        if($num_pages>2)
    
        {
    
            $rets = "<left><form action=\"gallery2.php\" method=\"get\">";
    
            $rets .= "Jump to Photo:<input name=\"page\" format=\"*N\" size=\"3\"/><br/>";
    
            $rets .= "<input type=\"submit\" value=\"GO\"/>";
    
            $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
    
            $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
    
            $rets .= "<input type=\"hidden\" name=\"whoimage\" value=\"$whoimage\"/>";
    
            $rets .= "<input type=\"hidden\" name=\"page\" value=\"$(pg)\"/>";
    
            $rets .= "</form></left>";
    
            echo $rets;
    
        }
    
        echo "</left></p>";
    
    
    
      echo "<p><small>";
    
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
    
      echo " > ";
    
      echo "<a href=\"gallery2.php?action=main&amp;sid=$sid\">Photo gallery</a>";
    
      echo " > ";
    
      echo "Reading Photo's Comments";
    
      echo "</small></p>";
    
    exit();
    
    
    } 
    

    im using this avobe code , and i want to show it in guest mod ... but it not show any thing. can any1 help??
    PHP Code:
    /* I don't know everything hehe */ 
    
    Find me on facebook

    #2
    is it lavalair script?

    Comment

    Working...
    X