Fix this for me..Tnx! =)

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

1 reply · 499 views · started 17 years ago · 2 min read

2 participants
kiLLeR-eyEd_14 Senior · 382 posts #1

Can't see the whole body of this page..Only the head View User's Photos

else if($action=="viewuserphoto") { addonline(getuid_sid($sid),"Viewing Users Photos",""); echo "<head>"; echo "<title>Users Photos</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo ""; echo "View User's Photos

"; echo ""; echo ""; $who = $_GET["who"]; $uid1 = getuid_sid($sid); $nick = getnick_uid($who); if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_usergallery WHERE uid='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 1; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)$items_per_page;

               //changable sql
           
               $sql = "SELECT uid, id, imageurl, sex, descript FROM ibwf_usergallery WHERE uid='".$who."' ORDER BY time DESC LIMIT $limit_start, $items_per_page";

               $items = mysql_query($sql);
              
               echo mysql_error();
               if(mysql_num_rows($items)>0)
               {
               while ($item = mysql_fetch_array($items))
               {
                 $sql = "SELECT rating FROM ibwf_usergallery_rating WHERE imageid='".$item[1]."'";      
                 $imginfo = mysql_query($sql);
                 
                 echo mysql_error();
                   if(mysql_num_rows($imginfo)>0)
                   {
                      while ($imginfos = mysql_fetch_array($imginfo)){ 
                         $ratingtotal = $ratingtotal + $imginfos[0];}
                   }
                 if($totalcomments<1){$totalcomments=0;}         
                 $norm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE imageid='".$item[1]."'"));
                 if ($norm[0]>0){
                 $rating = ceil($ratingtotal/$norm[0]);
                 }else{$rating=0;}
                 
                 $rated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE byuid='".$uid1."' and imageid ='".$item[1]."'"));
                 $totalcomments = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE imageid ='".$item[1]."' and commentsyn ='Y'"));
                 $userinfo = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE id='".$item[0]."'"));
                   if(canratephoto($uid1, $item[0]) and ($rated[0]==0))
                  {
                    echo "<a href=\"gallery.php?action=rate&amp;sid=$sid&amp;whoimage=$item[1]\">Rate Photo</a>";
                   }
                   if($uid1==$item[0])
                  {
                    echo "<a href=\"genproc.php?action=upavg&amp;sid=$sid&amp;avsrc=$item[2]\">Use as Avatar</a>";
                   }
                   if(($uid1=="1") or ($uid1==$item[0]))
                  {
                    echo " / <a href=\"gallery.php?action=del&amp;sid=$sid&amp;whoimage=$item[1]\">Delete</a>";
                   }
                   echo "

<a href="$item[2]"><img src="$item[2]" alt="$userinfo[0]: $page"/></a> ";
if($uid1==$item[0]) { if(strlen($item[4])>1){ $edtlnk = "<a href="gallery.php?action=edtdescript&sid=$sid&whoimage=$item[1]">*</a>"; }else{ $edtlnk = "<a href="gallery.php?action=edtdescript&sid=$sid&whoimage=$item[1]">Add Description</a>"; } echo "$item[4] $edtlnk

"; } echo "Rating: $rating/10 (<a href="gallery.php?action=votes&sid=$sid&whoimage=$item[1]">$norm[0]</a> Votes) <a href="gallery.php?action=comments&sid=$sid&whoimage=$item[1]">Comments</a>($totalcomments[0])"; echo " "; $ratingtotal = 0; $sex = $item[3];
} } echo ""; echo ""; if($page>1) { $ppage = $page-1; echo "<a href="gallery.php?action=$action&sid=$sid&page=$ppage&who=$who">« Prev</a> "; } echo " $page/$num_pages "; if($page<$num_pages) { $npage = $page+1; echo "<a href="gallery.php?action=$action&sid=$sid&page=$npage&who=$who">Next »</a>"; }

if($num_pages>2)
{
    $rets = "
<form action=\"gallery.php\" method=\"get\">"; $rets .= "Jump to Photo:<input name=\"page\" format=\"*N\" size=\"3\"/> "; $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=\"who\" value=\"$who\"/>"; $rets .= "<input type=\"hidden\" name=\"page\" value=\"$pg\"/>"; $rets .= "</form>"; echo $rets; } echo " "; echo "<a href=\"gallery.php?action=main&amp;sid=$sid\">Gallery</a> "; if ($sex=="M"){ echo "<a href=\"gallery.php?action=males&amp;sid=$sid\">Male Gallery</a>"; }else{ echo "<a href=\"gallery.php?action=females&amp;sid=$sid\">Female Gallery</a>"; } echo " --- "; echo "| <a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox</a> |"; echo " <a href=\"lists.php?action=buds&amp;sid=$sid\">BuddyList</a> |"; echo " <a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a> |"; echo " <a href=\"index.php?action=forumindx&amp;sid=$sid\">Forums</a> |"; echo " <a href=\"index.php?action=main&amp;sid=$sid\">Home</a> |"; echo ""; echo "</body>"; echo "</html>"; exit(); }
capofret Developer · 225 posts #2

from which script are u using?? its the gallery for male and female right?? i got mine working from arawap script xhtml

LDSWAPWORLD site closed. im busy with other things in life like facebook , send me PM so i can add you 🙂 www.pinoySG.com

don't ask for help if you're not even helping yourself! i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.

External image (may be gone)

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