News Page Number (want the new codezwiz version please)

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
You will also have to make changes to the page where this is used because your going to lose the offset variable.


function navigationCat($gid, $offset, $orderby) {
      global $font, $galleryvar, $baseurl, $prefix;
      $limit = $galleryvar['maxNumberMedia'];
      $orderby = convertorderbyout($orderby);
      $numresults = mysql_query("select * from $prefix"._gallery_pictures." where gid=$gid");
      $numrows=mysql_num_rows($numresults);
      $pages=intval($numrows/$limit);
       $start = ($offset > 0) ? $offset : 0;
   return pagination('modules.php?name=My_eGallery&do=showgall&gid=' . $gid, $pages, $limit, $start);
}




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#2   re: News Page Number (want the new codezwiz version please)
prekill
CZ Newbie
prekill has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 15, 2005
0.00 posts per day
Posts: 28
Points: 148
   
I am facing a really big problem:

Me and my users noticed lately (after applying the pagination) it takes serious amount of loading time whice slowed down the index.php by 5 seconds until it displayed.

The problem is with the display (the actual load time displayed at the bottom is about the same) it looks like the pagination is messeing something up.

After applying pagination when you access the site it will not display anything accept the background image, only after the hole page is loaded only then it will show the page. (not a normal loading.. which will load and display the loaded parts.

I doubled checked this by restoring the original news module.. and the site did loaded normal. the wired is that on forums its does not seems to be happening. (didn’t tried on gallery yet.)

Any idea what is causing the problem?

EDIT: It seems like this line which including the JS file is what slowing down the display:
echo "<js language=\"javascript\"  path to pagnation.js></js>";

After removing this line the page loads normal but the drop down box will not work. any idea how to bypass the need of this JS file? or maybe optimizing it?


Back to top Reply with quote
#3   re: News Page Number (want the new codezwiz version please)
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Your using the javascript include incorrectly. The javascript should look like this:


<script type="text/javascript" src="path/to/javascript.js"></script>


Replace the path/to/javascript.js with the path to the javascript on your server.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   re: News Page Number (want the new codezwiz version please)
prekill
CZ Newbie
prekill has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 15, 2005
0.00 posts per day
Posts: 28
Points: 148
   
Problem solved.

I have tired that code to my_egallery but the pagination will not show.

I have tried the original you provided:
function navigationCat($gid, $offset, $orderby) {
      global $font, $galleryvar, $baseurl, $prefix;
      $limit = $galleryvar['maxNumberMedia'];
      $orderby = convertorderbyout($orderby);
      $numresults = mysql_query("select * from $prefix"._gallery_pictures." where gid=$gid");
      $numrows=mysql_num_rows($numresults);
      $pages=intval($numrows/$limit);
       $start = ($offset > 0) ? $offset : 0;
   return pagination('modules.php?name=My_eGallery&do=showgall&gid=' . $gid, $pages, $limit, $start);
}


And this one I have modified:
function navigationCat($gid, $offset, $orderby) {
      global $font, $galleryvar, $baseurl, $prefix;
      $limit = $galleryvar['maxNumberMedia'];
      $orderby = convertorderbyout($orderby);
      $numresults = mysql_query("select * from $prefix"._gallery_pictures." where gid=$gid");
      $numrows=mysql_num_rows($numresults);
      $pages=intval($numrows/$limit);
       $start = ($offset > 0) ? $offset : 0;
   $nav = pagination('modules.php?name=My_eGallery&do=showgall&gid=' . $gid, $pages, $limit, $start);
return $nav;
}


Cant see whats really wrong here maybe something with $offset?

here is the whole page:
<?php

include ("modules/My_eGallery/public/imageFunctions.php");
include ("admin/modules/gallery/fileFunctions.php");

function getThumbnail($img, $galloc) {
   global
      $gallerypath,
      $imagepath,
      $prefix
   ;

   $ext = substr($img, (strrpos($img,'.') +  1));
   $name_gif = str_replace(".$ext", ".gif", $img);
   $name_jpg = str_replace(".$ext", ".jpg", $img);

   if (file_exists("$gallerypath/$galloc/thumb/$name_gif")) {
      $thumb = "$gallerypath/$galloc/thumb/$name_gif";
   }
   elseif (file_exists("$gallerypath/$galloc/thumb/$name_jpg")) {
      $thumb = "$gallerypath/$galloc/thumb/$name_jpg";
   }
   else {
      $row = mysql_fetch_array(mysql_query("SELECT thumbnail from $prefix"._gallery_media_types." where extension='$ext'"));
      $thumbnail = $row[thumbnail];
      $thumb = "$imagepath/$thumbnail";
   }

   //echo $thumb;
   return $thumb;
}

function displayPictureGall($filetype, $gid, $pid, $thumbwidth, $galloc, $name, $img, $orderby) {
   global
      $gallerypath,
                $font,
      $adminurl,
      $baseurl,
      $adminpath,
      $imagepath,
      $galleryvar,
      $admin
   ;

   $image = "$gallerypath/$galloc/$img";
        $thumb_dir = "$gallerypath/$galloc/thumb";
   $thumb = "$thumb_dir/$img";

   // create the thumbnail if missing
   if(!file_exists($thumb))
                {
      if(!file_exists($thumb_dir) && $galleryvar['imageSoftware']!="browser")
      {
         makeDir("$gallerypath/$galloc", "thumb");
      }
      if ($filetype==1) {
                   $thumb = RatioResizeImg("$gallerypath/$galloc/$img", $thumb, $gid);
                }

      if ($thumb=="browser")
         $thumb = $image;
      else
         $thumb = getThumbnail($img, $galloc);
   }

   if (is_admin($admin))
      $out = "&nbsp;&nbsp;<a class='".$font['normal']."' href=\"$adminurl&do=editmedia&type=edit&category=$gid&pid=$pid&gid=$gid\"><img src=\"$imagepath/edit.gif\" alt=\"Edit\" border=\"0\"></a>";
        return "<a class=\"".$font['normal']."\" href=\"showfile-$pid.html\">"
      ."<img src=\"$thumb\" width=\"$thumbwidth\" alt=\"".underscoreTospace($name)."\" border=\"0\" align=\"MIDDLE\">"
      .'</a>'.$out
   ;
}

function displayDescriptionGall($row, $crow) {
        global $font;
   $m = 90 / $crow[numcol];
      if(strlen($row[description]) > $m) {
         $row[description] = trim(substr($row[description],0,$m));
         $p = strrpos($row[description], ' ');
         $row[description] = trim(substr($row[description],0,$p)).'...';
      }
      return "<font class=\"".$font['tiny']."\">$row[description]</font>\n";
}

function displayNewGall($row) {
   global
      $imagepath
   ;
   if($row[new_day] == 0) {
      return "<img src=\"$imagepath/newred.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\""._GALNEWMEDIA1.'">';
   }
   elseif($row[new_day] < 3) {
      return "<img src=\"$imagepath/newgreen.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\"".sprintf(_GALNEWMEDIA2, $row[new_day]).'">';
   }
   elseif($row[new_day] < 7) {
      return "<img src=\"$imagepath/newblue.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\"".sprintf(_GALNEWMEDIA2, $row[new_day]).'">';
   }
}

function displaySizeGall($row, $crow) {
        global $font;
       
   if($row[imginfo][2]) {
      $size = $row[imginfo];
      return "<font class=\"".$font['tiny']."\"><b>"._GALSIZE."</b>: $size[0]x$size[1]</font>";
   }
   else {
      return "<font class=\"".$font['tiny']."\"><b>"._GALSIZE."</b>: "._GALUNKNOWN."</font>";
   }
}

function displayFormatGall($row) {
        global $font;
   $ext = $row[imginfo][2];
   switch($ext) {
      case 1: $type = 'GIF'; break;
      case 2: $type = 'JPEG'; break;
      case 3: $type = 'PNG'; break;
      case 4: $type = 'WBMP'; break;
      default:
         $type = $ext; break;
   }
   return "<font class=\"".$font['tiny']."\"><b>ñåâ</b>: $type</font>";
}

function displayNumCommentsGall($row) {
   global
      $galleryvar,
      $prefix,
                $font
   ;
   $numcomments = mysql_fetch_array(mysql_query("SELECT COUNT(cid) AS total FROM $prefix"._gallery_comments." WHERE pid=$row[pid]"));
   if($galleryvar['allowcomments']) {
      return "<font class=\"".$font['tiny']."\"><b>"._GALNBCOMMENTS."</b>: $numcomments[total]</font>";
   }
}

function displayHitsGall($row) {
   global $font;
        return "<font class=\"".$font['normal']."\"><b>"._GALHITS.":&nbsp;</b>$row[counter]</font>";
}

function displayRateGall($row) {
   global
      $galleryvar, $font;
   ;
   if($allowrate) {
      return "<font class=\"".$font['normal']."\"><b>"._GALRATING."</b><br>$row[rate]</font>";
   }
}

function displayDateAddedGall($row) {
        global $font;
   return "<font class=\"".$font['normal']."\"><b>"._GALADDED.':&nbsp;</b></font><font class="'.$font['tiny'].'">'.strftime(_GALDATEBRIEF,$row[unix_date]).'</font>';
}

function displayName($row) {
        global $font;
   return "<font class=\"".$font['normal']."\"><b>ùí:&nbsp;</b>$row[name]</font>";
}

function navigationCat($gid, $offset, $orderby) {
   global
      $font,
                $galleryvar,
      $baseurl,
      $prefix
   ;
   $limit = $galleryvar['maxNumberMedia'];
   $orderby = convertorderbyout($orderby);
   $numresults = mysql_query("select * from $prefix"._gallery_pictures." where gid=$gid");
   $numrows=mysql_num_rows($numresults);
   $nav = '';
   $pages=intval($numrows/$limit);

   if ($numrows>0 & $pages>=1) {
      if ($offset!=0) {
   $prevoffset=$offset-$limit;
              $nav = "<a class=\"".$font['normal']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$prevoffset&orderby=$orderby\"><img src=\"modules/My_eGallery/images/navright.gif\" border=\"0\"></a>&nbsp;.&nbsp;";
      }

      if ($numrows%$limit) {
              $pages++;
      }
      
      for ($i=1;$i<=$pages; $i++) {
              $newoffset=$limit*($i-1);
              if ($newoffset==$offset) {
                 $nav .= "<font class=\"".$font['normal']."\" color=\"blue\"><b>";
                 if ($i==1)
                    if ($pages==1)
                       $nav .= "<img src=\"modules/My_eGallery/images/navright.gif\" border=\"0\"> . ".$i." . <img src=\"modules/My_eGallery/images/navleft.gif\" border=\"0\">";
                    else
                       $nav .= "<img src=\"modules/My_eGallery/images/navright.gif\" border=\"0\"> . ".$i."&nbsp;.&nbsp;";
                 elseif  ($i==$pages)
                    $nav .= $i."&nbsp;.&nbsp;<img src=\"modules/My_eGallery/images/navleft.gif\" border=\"0\">";
                 else
                    $nav .= $i."&nbsp;.&nbsp;";
                 $nav .= "</b></font>";
              }
              else {
                 $nav .= "<a class=\"".$font['normal']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=$orderby\">$i</a>&nbsp;.&nbsp;";
              }
      }
      if (!(($offset/$limit)==($pages-1)) && $pages!=1) {
              $newoffset=$offset+$limit;
                 $nav .= "<a class=\"".$font['normal']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=$orderby\"><img src=\"modules/My_eGallery/images/navleft.gif\" border=\"0\"></a>";
      }
   }
   return $nav;
}

function navigationSubCat($gid) {
   global
      $baseurl,
      $adminurl,
      $imagepath,
      $admin,
      $user,
      $prefix,
      $gallerypath,
                $galleryvar,
                $font
   ;
        //$userRank = getUserRank();
   //$result = mysql_query("SELECT gallid, gallname, description, total, (TO_DAYS(NOW()) - TO_DAYS(lastadd)) AS new_day FROM gallery_categories WHERE parent=$gid AND visible>=$userRank");
   if (is_admin($admin))
      $result = mysql_query("SELECT gallid, gallname, galloc, gallimg, description, visible, total, (TO_DAYS(NOW()) - TO_DAYS(lastadd)) AS new_day FROM $prefix"._gallery_categories." WHERE parent=$gid AND visible>=0 ORDER by gallname");
   else
      $result = mysql_query("SELECT gallid, gallname, galloc, gallimg, description, visible, total, (TO_DAYS(NOW()) - TO_DAYS(lastadd)) AS new_day FROM $prefix"._gallery_categories." WHERE parent=$gid AND visible>0 ORDER by gallname");
   $nb = mysql_num_rows($result);
   if(!$nb) {
      return false;
   }

   $c = 0;
   $out .= '<table border="0" width="100%" align="center" cellpadding="0" bordercolor="#00000"><tr>';
   $pc = ceil(100/3);
   
   $isuser = is_user($user);
   $isadmin = is_admin($admin);
   while($row = mysql_fetch_array($result)) {
      $vis='';
      if ($row[visible]==1 && !$isuser)
         $vis = '(*)';      
      if ($isadmin) {
         switch ($row[visible])
         {
         case 0:
            $vis .= "&nbsp;<a class=\"".$font['normal']."\" href=\"$adminurl&do=editcategory&type=status&visible=1&category=".$row[gallid]."\" title=\""._GALVISIBLEADMIN."\"><img src=\"$imagepath/red_dot.gif\" border=\"0\"  alt=\""._GALVISIBLEADMIN.'"></a>&nbsp;';
            break;
         case 1:
            $vis .= "&nbsp;<a class=\"".$font['normal']."\" href=\"$adminurl&do=editcategory&type=status&visible=2&category=".$row[gallid]."\" title=\""._GALVISIBLEMEMBER."\"><img src=\"$imagepath/yellow_dot.gif\" border=\"0\"  alt=\""._GALVISIBLEMEMBER.'"></a>&nbsp;';
            break;
         default:
            $vis .= "&nbsp;<a class=\"".$font['normal']."\" href=\"$adminurl&do=editcategory&type=status&visible=0&category=".$row[gallid]."\" title=\""._GALVISIBLEPUBLIC."\"><img src=\"$imagepath/green_dot.gif\" border=\"0\"  alt=\""._GALVISIBLEPUBLIC.'"></a>&nbsp;';
            break;
         }
      }
   
      
      if ($galleryvar['displaySubCatIcon']) {
         if (isset($galleryvar['SubCatIconwidth']) && $galleryvar['SubCatIconwidth']!="")
            $icon = "<img src=\"$gallerypath/".$row[galloc]."/".$row[gallimg]."\" width=\"".$galleryvar['SubCatIconwidth']."\" border=\"0\" alt=\"$row[description]\">";
         else
            $icon = "<img src=\"$gallerypath/".$row[galloc]."/".$row[gallimg]."\" border=\"0\" alt=\"$row[description]\"></a>";
      }

      $out .= "<td width=\"$pc%\">";
      $out .= "<font class=\"".$font['tiny']."\"><img src=\"$imagepath/folder.gif\" border=\"0\" alt=\"\"> ";

      if ($row[visible]==1 && !$isuser && !$isadmin) {
         $out .= underscoreTospace($row[gallname])." ($row[total]) $vis";
      }
      else {
         $out .= "<a class=\"".$font['normal']."\" href=\"showgallery-$row[gallid].html\"><b>".underscoreTospace($row[gallname])."</b></a><br>&nbsp;îñôø äúîåðåú áâìøéä:&nbsp;<b>$row[total]  $vis&nbsp;úîåðåú.</b>";
         $icon = "<a class=\"".$font['normal']."\" href=\"showgallery-$row[gallid].html\">".$icon."</a>";
      }

      if($row[new_day] == 0) {
         $out .= "<img src=\"$imagepath/newred.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\""._GALNEWMEDIA1.'">';
      }
      elseif($row[new_day] < 3) {
         $out .= "<img src=\"$imagepath/newgreen.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\"".sprintf(_GALNEWMEDIA2, $row[new_day]).'">';
      }
      elseif($row[new_day] < 7) {
         $out .= "<img src=\"$imagepath/newblue.gif\" border=\"0\" width=\"34\" height=\"14\" alt=\"".sprintf(_GALNEWMEDIA2, $row[new_day]).'">';
      }
      
      $out .= "\n</font>\n";
      
      $out .= "<br>".$icon;
      $out .= "</td>";
      $c++;
      
      if($c == 3 && $nb != 3) {
         $out .= '</tr><tr>';
         $c = 0;
      }
   }
   $out .= '</tr></table>';
   return $out;
}



function convertorderbytrans($orderby) {
    if ($orderby == "counter ASC")   $orderbyTrans = ""._GALPOPULARITY1."";
    if ($orderby == "counter DESC")   $orderbyTrans = ""._GALPOPULARITY2."";
    if ($orderby == "name ASC")      $orderbyTrans = ""._GALNAMEAZ."";
    if ($orderby == "name DESC")   $orderbyTrans = ""._GALNAMEZA."";
    if ($orderby == "date ASC")      $orderbyTrans = ""._GALDATE1."";
    if ($orderby == "date DESC")   $orderbyTrans = ""._GALDATE2."";
    if ($orderby == "rate ASC")      $orderbyTrans = ""._GALRATING1."";
    if ($orderby == "rate DESC")   $orderbyTrans = ""._GALRATING2."";
    return $orderbyTrans;
}



function showgall($gid, $offset, $orderby) {
   global
      $galleryvar,
                $basepath,
                $font,
      $adminpath,
      $prefix,
      $user,
      $admin
   ;
   include "$adminpath/config.php";

   $res = mysql_fetch_array(mysql_query("SELECT count(*) as total FROM $prefix"._gallery_categories." WHERE parent=$gid AND visible=1"));
   $crow = mysql_fetch_array(mysql_query("SELECT c.galloc, c.numcol, c.description, c.visible, c.thumbwidth, t.templateCategory, t.templateCSS FROM $prefix"._gallery_categories." AS c LEFT JOIN $prefix"._gallery_template_types." AS t ON t.id=c.template WHERE gallid=$gid"));

   $ok=0;
   switch ($crow[visible]) {
      case 0:
         if (is_admin($admin))
            $ok=1;
         break;
      case 1:
         if (is_user($user) || is_admin($admin))
            $ok=1;
         break;
      default:
         $ok=1;
         break;
   }
   
   if ($ok) {
      galleryHeader();
      OpenTable();
      if(isset($orderby)) {
         $orderby = convertorderbyin($orderby);
      }
      else {
         $orderby = convertorderbyin($galleryvar['defaultsortmedia']);
      }
      if(!$gid) {
         header("Location: $baseurl");
         exit;
      }
   
      $limit = $galleryvar['maxNumberMedia'];
   
      if(empty($offset)) {
         $offset = 0;
      }
      $orderbyTrans = convertorderbytrans($orderby);
      $navtree = navigationTree($gid, false);
      $nav =  navigationCat($gid, $offset, $orderby);
      $subcats = navigationSubCat($gid);
      $navgall = navigationGall();
      $result = mysql_query("SELECT m.*, UNIX_TIMESTAMP(m.date) AS unix_date, (TO_DAYS(NOW()) - TO_DAYS(m.date)) AS new_day, f.displaytag, f.thumbnail, f.filetype, f.description AS description_media FROM $prefix"._gallery_pictures." AS m LEFT JOIN $prefix"._gallery_media_types." AS f ON f.extension=m.extension WHERE gid=$gid ORDER BY $orderby LIMIT $offset,$limit");
      $nb = mysql_num_rows($result);
      $pc = ceil(100/$crow[numcol]);
      $c = 0;
      print '<p align="center">'.$navgall.'</p>';
      print '<p align="center">'.$navtree.'</p>';
      if($subcats != -1) {
         print "<p align=\"center\">$subcats<hr></p>";
      }
      
      print "<p align=\"center\"><font class=\"".$font['normal']."\">$crow[description]</font></p>\n";
      if($displaysortbar) {
         print '<p align="center"><font class="tiny">'._GALSORTMEDIABY.': '
            ._NAME." (<a class=\"".$font['tiny']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=titleA\">"._GALASC."</a>\<a href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=titleD\">"._GALDESC.'</a>) '
            ._DATE." (<a class=\"".$font['tiny']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=dateA\">"._GALASC."</a>\<a href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=dateD\">"._GALDESC.'</a>) '
            ._RATING." (<a class=\"".$font['tiny']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=ratingA\">"._GALASC."</a>\<a href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=ratingD\">"._GALDESC.'</a>) '
            ._POPULARITY." (<a class=\"".$font['tiny']."\" href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=hitsA\">"._GALASC."</a>\<a href=\"$baseurl&do=showgall&gid=$gid&offset=$newoffset&orderby=hitsD\">"._GALDESC.'</a>) '
            .'<br>'._GALMEDIASORTED.": $orderbyTrans</font></p>"
         ;
      }
      print '<p align="center">'.$nav.'</p>';
      
      print '<table border="0" width="100%" align="center" cellpadding="2"><tr>';
      while($row = mysql_fetch_array($result)) {
         $template = $crow[templateCategory];
         $template = str_replace('<:IMAGE:>', displayPictureGall($row[filetype], $row[gid], $row[pid], $crow[thumbwidth], $crow[galloc], $row[name], $row[img], convertorderbyout($orderby)), $template);
         // get some image info stuff out of the way here
         if($row[filetype] == 1) {
            $row[imginfo] = @getimagesize("$gallerypath/$crow[galloc]/$row[img]");
         }
         else {
            $row[imginfo] = false;
            $row[imginfo][0] = $row[width];
            $row[imginfo][1] = $row[height];
            $row[imginfo][2] = $row[description_media];
            $row[imginfo][3] = "width=\"$row[width]\" height=\"$row[height]\"";
         }
         // ok, back to what we were doing
         $val_description = displayDescriptionGall($row, $crow);
         $val_rate = displayRateGall($row);
         $val_format = displayFormatGall($row);
         $val_size = displaySizeGall($row, $crow);
         $val_nmbComments = displayNumCommentsGall($row);
         $val_new = displayNewGall($row);
         $val_hits = displayHitsGall($row);
         $val_date = displayDateAddedGall($row);
         $val_name = displayName($row);
         $template = str_replace('<:DESCRIPTION:>', $val_description, $template);
         $template = str_replace('<:RATE:>', $val_rate, $template);
         $template = str_replace('<:FORMAT:>', $val_format, $template);
         $template = str_replace('<:SIZE:>', $val_size, $template);
         $template = str_replace('<:NBCOMMENTS:>', $val_nmbComments, $template);
         $template = str_replace('<:NEW:>', $val_new, $template);
         $template = str_replace('<:HITS:>', $val_hits, $template);
         $template = str_replace('<:DATE:>', $val_date, $template);
         $template = str_replace('<:NAME:>', $val_name, $template);
         
         print '<td width="'.$pc.'%">'.$template.'</td>';
         $c++;
         if($c == $crow[numcol] && $nb != $crow[numcol]) {
            print '</tr><tr>';
            $c = 0;
         }
      }
      
      print '</tr></table>'
         ."<center><br>$nav<br>";
      if ($galleryvar['displaySearchForm']) {
                        include("$basepath/public/search.php");
         print search_form($GLOBALS[HTTP_POST_VARS]);
                }
      
      print 'Your AD Here</center>';
      
      if ($res[total]>0 && !is_user($user))
         print '<br><center><font class="'.$font['tiny'].'"><i>'._GALCATMEMBERS.'</i></font></center>';   
      
      CloseTable();
      galleryFooter();
   } // If Ok
   else {
   }
}
if (!isset($user)) {
  $cachetimeout=900;
} else {
  $cachetimeout=300;
}
require_once("includes/jpcache/jpcache.php");
?>


icon_rolleyes.gif


Back to top Reply with quote
#5   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Can you provide me with a link to the site? You can send via P.M if you wish.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   
prekill
CZ Newbie
prekill has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 15, 2005
0.00 posts per day
Posts: 28
Points: 148
   
Sure icon_smile.gif
[ Register or login to view links on this board. ]

my_egallery is here: [ Register or login to view links on this board. ]

thanks



Back to top Reply with quote
#7   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
You mind giving me FTP info to take a look at what you did?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: News Page Number (want the new codezwiz version please)
prekill
CZ Newbie
prekill has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 15, 2005
0.00 posts per day
Posts: 28
Points: 148
   
sure.

thanks!

check pm icon_wink.gif

p.s I have restored the original file after the code did not work.



Back to top Reply with quote
#9   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
It will be a few days till I can get in there and take a look.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   
prekill
CZ Newbie
prekill has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 15, 2005
0.00 posts per day
Posts: 28
Points: 148
   
No problem Telli, thanks!



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum