Problem to see photo comment from guest mod!!

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

1 reply · 332 views · started 16 years ago · 1 min read

2 participants
Ponick Developer · 216 posts #1
////////////////////////////////////////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&sid=$sid&whoimage=$item[5]\">*</a>";

      	}else{

			$dellnk = "";

      	}

      $lnk = "<small><a href=\"index.php?action=viewuser&who=$item[2]&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&sid=$sid&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&sid=$sid&page=$ppage&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&sid=$sid&page=$npage&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&sid=$sid\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery2.php?action=main&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??

/* I don't know everything hehe */

Find me on facebook

HaCked Newbie · 2 posts #2

is it lavalair script?

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