comments for gallery pics

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

6 replies · 599 views · started 14 years ago · 1 min read

4 participants
mzdesirez Junior · 24 posts #1

hi i have looked in the coding forum but i can not find a code for the comments for the gallery pics on a wapdesire v2 script plz can some one plz be kind enough to code it for me and tell where i need to place the code thanks

also a code that u can add in the reg page where the user has to add a pic i would it to have a a pic there automatically

wap-ruler Developer · 143 posts #2

rep

This may work 4 the first one add this to gallery.php

else if($action=="rate")

{

  addonline(getuid_sid($sid),"Rating a Photo ","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";

$uid1 = getuid_sid($sid);

  $item = mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex FROM ibwf_usergallery WHERE uid='".$whoimage."'"));

  $rated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE byuid='".$uid1."' and imageid ='".$whoimage."'"));

  if(canratephoto($uid1, $item[0]) and ($rated[0]==0))

  {
  echo "<title>Friendscare</title>";
  echo "<p align=\"left\"><small>";

  echo "Rate this members Photo: 1=Low, 10=High<br/>You can also leave a comment for this photo!<br/>";

  echo "<br/>";

  echo "</small></p>";

  echo "<p>";

    echo "<form action=\"gallery.php?action=rateuser&whoimage=$whoimage\" method=\"post\">";

    echo "<small>Rate:</small> <select name=\"rate\" value=\"$rate[0]\">";

    echo "<option value=\"1\">1</option>";

    echo "<option value=\"2\">2</option>";

    echo "<option value=\"3\">3</option>";

    echo "<option value=\"4\">4</option>";

    echo "<option value=\"5\">5</option>";

    echo "<option value=\"6\">6</option>";

    echo "<option value=\"7\">7</option>";

    echo "<option value=\"8\">8</option>";

    echo "<option value=\"9\">9</option>";

    echo "<option value=\"10\">10</option>";

    echo "</select><br/>";

  echo "<small>Comments:</small> <input name=\"comment\" format=\"*M\" maxlength=\"200\"/><br/>";

  echo "<input type=\"submit\" value=\"Rate\"/>";

  echo "</form>";

  }else{

  echo "You have already rated this Photo";

  }

  echo "</p>";

  echo "<p><small>";

  echo "<a href=\"index.php?action=main\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Rating a Photo";

  echo "</small></p>";

exit();
}

////////////////////////////////////////READ COMMENTS

else if($action=="comments")

{

  addonline(getuid_sid($sid),"Reading Photo''s Comments","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";
echo "<title>Friendscare</title>";
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=\"gallery.php?action=delvote&whoimage=$item[5]\">*</a>";

      	}else{

			$dellnk = "";

      	}

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

    }

    echo "<small> $page/$num_pages </small>";

    if($page<$num_pages)

    {

      $npage = $page+1;

      echo "<a href=\"gallery.php?action=$action&page=$npage&whoimage=$whoimage\"><small>Next »</small></a>";

    }

    if($num_pages>2)

    {

        $rets = "<left><form action=\"gallery.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\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Reading Photo's Comments";

  echo "</small></p>";

exit();

}

////////////////////////////////////////MAKE A COMMENT

else if($action=="commentreply")

{

  addonline(getuid_sid($sid),"Replying to a Photo''s Comment ","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";

$id = $_GET["id"];

  echo "<title>Friendscare</title>";
  echo "<p align=\"left\"><small>";

  echo "Reply to a Comment<br/>";

  echo "<br/>";

  echo "</small></p>";

  echo "<p>";

  echo "<form action=\"gallery.php?action=commentreplyaction&id=$id\" method=\"post\">";

  echo "<small>Reply:</small> <input name=\"reply\" format=\"*M\" maxlength=\"200\"/><br/>";

  echo "<input type=\"submit\" value=\"Reply\"/>";

  echo "</form>";

  echo "</p>";

  echo "<p><small>";

  echo "<a href=\"index.php?action=main\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Replying to a Comment";

  echo "</small></p>";

exit();
}

and add this to mysql

Table structure for table ibwf_usergallery_rating

CREATE TABLE IF NOT EXISTS ibwf_usergallery_rating ( id int(100) NOT NULL AUTO_INCREMENT, imageid int(100) NOT NULL DEFAULT '0', rating int(100) NOT NULL DEFAULT '0', comments varchar(250) NOT NULL DEFAULT '', commentsreply varchar(250) NOT NULL DEFAULT '', byuid int(100) NOT NULL DEFAULT '0', time int(100) NOT NULL DEFAULT '0', commentsyn char(1) NOT NULL DEFAULT '', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

-- -- Dumping data for table ibwf_usergallery_rating

ImPoSsIbLe iS nOthInG aS ImPoSsible ItSelF SaYs "I M POSSIBLE"

woody Developer · 176 posts #3

wap-ruler wrote: This may work 4 the first one add this to gallery.php

else if($action=="rate")

{

  addonline(getuid_sid($sid),"Rating a Photo ","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";

$uid1 = getuid_sid($sid);

  $item = mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex FROM ibwf_usergallery WHERE uid='".$whoimage."'"));



  $rated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_usergallery_rating WHERE byuid='".$uid1."' and imageid ='".$whoimage."'"));



  if(canratephoto($uid1, $item[0]) and ($rated[0]==0))

  {
  echo "<title>Friendscare</title>";
  echo "<p align=\"left\"><small>";

  echo "Rate this members Photo: 1=Low, 10=High<br/>You can also leave a comment for this photo!<br/>";

  echo "<br/>";

  echo "</small></p>";

  echo "<p>";

    echo "<form action=\"gallery.php?action=rateuser&whoimage=$whoimage\" method=\"post\">";

    echo "<small>Rate:</small> <select name=\"rate\" value=\"$rate[0]\">";

    echo "<option value=\"1\">1</option>";

    echo "<option value=\"2\">2</option>";

    echo "<option value=\"3\">3</option>";

    echo "<option value=\"4\">4</option>";

    echo "<option value=\"5\">5</option>";

    echo "<option value=\"6\">6</option>";

    echo "<option value=\"7\">7</option>";

    echo "<option value=\"8\">8</option>";

    echo "<option value=\"9\">9</option>";

    echo "<option value=\"10\">10</option>";

    echo "</select><br/>";



  echo "<small>Comments:</small> <input name=\"comment\" format=\"*M\" maxlength=\"200\"/><br/>";

  echo "<input type=\"submit\" value=\"Rate\"/>";

  echo "</form>";

  }else{

  echo "You have already rated this Photo";

  }

  echo "</p>";



  echo "<p><small>";

  echo "<a href=\"index.php?action=main\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Rating a Photo";

  echo "</small></p>";




exit();
}





////////////////////////////////////////READ COMMENTS

else if($action=="comments")

{

  addonline(getuid_sid($sid),"Reading Photo''s Comments","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";
echo "<title>Friendscare</title>";
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=\"gallery.php?action=delvote&whoimage=$item[5]\">*</a>";

      	}else{

			$dellnk = "";

      	}



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

    }

    echo "<small> $page/$num_pages </small>";

    if($page<$num_pages)

    {

      $npage = $page+1;

      echo "<a href=\"gallery.php?action=$action&page=$npage&whoimage=$whoimage\"><small>Next »</small></a>";

    }



    if($num_pages>2)

    {

        $rets = "<left><form action=\"gallery.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\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Reading Photo's Comments";

  echo "</small></p>";

exit();


}





////////////////////////////////////////MAKE A COMMENT

else if($action=="commentreply")

{

  addonline(getuid_sid($sid),"Replying to a Photo''s Comment ","");echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../newlooks/all/style.css\">";

$id = $_GET["id"];


  echo "<title>Friendscare</title>";
  echo "<p align=\"left\"><small>";

  echo "Reply to a Comment<br/>";

  echo "<br/>";

  echo "</small></p>";

  echo "<p>";

  echo "<form action=\"gallery.php?action=commentreplyaction&id=$id\" method=\"post\">";

  echo "<small>Reply:</small> <input name=\"reply\" format=\"*M\" maxlength=\"200\"/><br/>";

  echo "<input type=\"submit\" value=\"Reply\"/>";

  echo "</form>";

  echo "</p>";



  echo "<p><small>";

  echo "<a href=\"index.php?action=main\">Home</a>";

  echo " > ";

  echo "<a href=\"gallery.php?action=main\">Photo gallery</a>";

  echo " > ";

  echo "Replying to a Comment";

  echo "</small></p>";





exit();
}

and add this to mysql

thats for v1 but it's easy enough to convert to v2

mzdesirez Junior · 24 posts #4

thanks guys for that i will try that and let u guys know if it works ok and yeah v1 is the same as v2 isnt it lol $main.=" something like that isnt it just change the echo to $main

DeViLzHeLpEr Junior · 24 posts #5

Ill help ya

Hey there, its more than just changing the echo " to $main.="code ere"; its actually changing the database info for it to, that aint hard tho as u just take out the ibwf_ from the code, lol You also have to change the headers to get the top/bottom borders for the v2 script... (if you know what i mean) Ill have a look at this coding for you and try work it out for ya, but ill need the database for the code from lava.. if ya can supply it.

DeViLzHeLpEr Junior · 24 posts #6

here yar

<?php
define('WCS',true);
include('./core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

//////////////////////Gallery/////////////////////////

if($action=="rate") 
{ 

addonline(getuid_sid($sid),"Rate","");
$nick=getnick_sid($sid);
echo head_tag($nick."@Rate",1,getnick_sid($sid));
$title="<b>Rate</b>";
  

$uid1 = getuid_sid($sid); 

  $item = mysql_fetch_array(mysql_query("SELECT uid, id, imageurl, sex FROM usergallery WHERE uid='".$whoimage."'")); 

  $rated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM usergallery_rating WHERE byuid='".$uid1."' and imageid ='".$whoimage."'")); 

  if(canratephoto($uid1, $item[0]) and ($rated[0]==0)) 

  { 
  $main.="<title>Friendscare</title>"; 
  $main.="<p align=\"left\"><small>"; 

  $main.="Rate this members Photo: 1=Low, 10=High<br/>You can also leave a comment for this photo!<br/>"; 

  $main.="<br/>"; 

  $main.="</small></p>"; 

  $main.="<p>"; 

    $main.="<form action=\"gallery.php?action=rateuser&whoimage=$whoimage\" method=\"post\">"; 

    $main.="<small>Rate:</small> <select name=\"rate\" value=\"$rate[0]\">"; 

    $main.="<option value=\"1\">1</option>"; 

    $main.="<option value=\"2\">2</option>"; 

    $main.="<option value=\"3\">3</option>"; 

    $main.="<option value=\"4\">4</option>"; 

    $main.="<option value=\"5\">5</option>"; 

    $main.="<option value=\"6\">6</option>"; 

    $main.="<option value=\"7\">7</option>"; 

    $main.="<option value=\"8\">8</option>"; 

    $main.="<option value=\"9\">9</option>"; 

    $main.="<option value=\"10\">10</option>"; 

    $main.="</select><br/>"; 

  $main.="<small>Comments:</small> <input name=\"comment\" format=\"*M\" maxlength=\"200\"/><br/>"; 

  $main.="<input type=\"submit\" value=\"Rate\"/>"; 

  $main.="</form>"; 

  }else{ 

  $main.="You have already rated this Photo"; 

  } 

  $main.="</p>"; 

  $main.="<p><small>"; 

  $main.="<a href=\"index.php?action=main\">Home</a>"; 

  $main.=" > "; 

  $main.="<a href=\"gallery.php?action=main\">Photo gallery</a>"; 

  $main.=" > "; 

  $main.="Rating a Photo"; 

  $main.="</small></p>"; 

$main.="<p align=".align()."><a href=\"online.php?sid=$sid\">Online menu</a>|
<a href=\"extras.php?sid=$sid\">Extras</a>|
<a href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>|
<a href=\"../buds/buds.php?sid=$sid\">BuddyList</a>|
<a href=\"../chat/public.php?sid=$sid\">Chat</a>|
<a href=\"../forums/forums.php?sid=$sid\">Forums</a><br/>
<a href=\"main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Main Menu</a></p>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,0,0,0,0,$main);
echo foot_tag();
exit;
}

////////////////////////////////////////READ COMMENTS 

else if($action=="comments") 

{ 

  addonline(getuid_sid($sid),"Comments","");
$nick=getnick_sid($sid);
echo head_tag($nick."@Comments",1,getnick_sid($sid));
$title.="<b>Comments</b>";

  $main.="<br/>"; 

  $main.="</small></p>"; 

      //////ALL LISTS SCRIPT << 

    if($page=="" || $page<=0)$page=1; 

    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM 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 usergallery WHERE id='".$whoimage."'")); 

    $uid = getuid_sid($sid); 

    $sql = "SELECT rating, comments, byuid, time, commentsreply, id  FROM usergallery_rating WHERE imageid ='".$whoimage."' and commentsyn ='Y' ORDER BY time DESC LIMIT $limit_start, $items_per_page"; 

    $main.="<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=\"gallery.php?action=delvote&whoimage=$item[5]\">*</a>"; 

          }else{ 

            $dellnk = ""; 

          } 

      $lnk = "<small><a href=\"index.php?action=viewuser&who=$item[2]\">$iml$snick:</a> <b>$item[0]/10</b> $dellnk</small>"; 

      $main.="$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=\"gallery.php?action=commentreply&id=$item[5]\">Reply to Comment</a><br/><i>$bs</i>"; 

      }else{ 

        $replylink = " <i>$bs</i>"; 

      } 

      $main.="$text"; 

      if(strlen($item[4])>1) 

      { 

      $text1 = parsepm($item[4], $sid); 

      $main.="<br><b><i>Reply:</i> $text1</b>"; 

      } 

      $main.="<br/>$replylink<br/><br/>"; 

      $main.="</small>"; 

    } 

    } 

    } 

    $main.="</p>"; 

    $main.="<p><left>"; 

    if($page>1) 

    { 

      $ppage = $page-1; 

      $main.="<a href=\"gallery.php?action=$action&page=$ppage&whoimage=$whoimage\"><small>« Prev</small></a> "; 

    } 

    $main.="<small> $page/$num_pages </small>"; 

    if($page<$num_pages) 

    { 

      $npage = $page+1; 

      $main.="<a href=\"gallery.php?action=$action&page=$npage&whoimage=$whoimage\"><small>Next »</small></a>"; 

    } 

    if($num_pages>2) 

    { 

        $rets = "<left><form action=\"gallery.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; 

    } 

    $main.="</left></p>"; 

  $main.="<p><small>"; 

  $main.="<a href=\"index.php?action=main\">Home</a>"; 

  $main.=" > "; 

  $main.="<a href=\"gallery.php?action=main\">Photo gallery</a>"; 

  $main.=" > "; 

  $main.="Reading Photo's Comments"; 

  $main.="</small></p>"; 

$main.="<p align=".align()."><a href=\"online.php?sid=$sid\">Online menu</a>|
<a href=\"extras.php?sid=$sid\">Extras</a>|
<a href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>|
<a href=\"../buds/buds.php?sid=$sid\">BuddyList</a>|
<a href=\"../chat/public.php?sid=$sid\">Chat</a>|
<a href=\"../forums/forums.php?sid=$sid\">Forums</a><br/>
<a href=\"main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Main Menu</a></p>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,0,0,0,0,$main);
echo foot_tag();
exit;
}

////////////////////////////////////////MAKE A COMMENT 

else if($action=="commentreply") 

{ 

  addonline(getuid_sid($sid),"Gallery Search","");
$nick=getnick_sid($sid);
echo head_tag($nick."@Gallery Search",1,getnick_sid($sid));
$title="<b>Gallery Search</b>";

$id = $_GET["id"]; 

  $main.="<title>Friendscare</title>"; 
  $main.="<p align=\"left\"><small>"; 

  $main.="Reply to a Comment<br/>"; 

 $main.="<br/>"; 

 $main.="</small></p>"; 

  $main.="<p>"; 

  $main.="<form action=\"gallery.php?action=commentreplyaction&id=$id\" method=\"post\">"; 

 $main.="<small>Reply:</small> <input name=\"reply\" format=\"*M\" maxlength=\"200\"/><br/>"; 

  $main.="<input type=\"submit\" value=\"Reply\"/>"; 

  $main.="</form>"; 

  $main.="</p>"; 

  $main.="<p><small>"; 

  $main.="<a href=\"index.php?action=main\">Home</a>"; 

  $main.=" > "; 

  $main.="<a href=\"gallery.php?action=main\">Photo gallery</a>"; 

  $main.=" > "; 

  $main.="Replying to a Comment"; 

  $main.="</small></p>"; 

$L1="$fivekey<a $key5 href=\"./gallery/gallery.php?sid=$sid\">Back</a>";

$L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
$L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
$L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
$L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
$L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
echo foot_tag();
exit;
}

?>

I think you need a function in rate section as its just a blank screen (youll need the rate function for this from lava and edit it) itll go in to funtions.php in core.

This is 100% working, ive checked it.

Next time please try coding it before asking us to do it for u 🙂 as i wont be helping ya again unless i see ya have tried.

Dont forget to add ya db, easy to do that, and also change some of the links for main menu, i didnt do this as i cant do it all for u.

Thats all that needs to be done now

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