Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zorex

Pages: [1]
1
At last i found the solution by changing this:

Code: [Select]
$cat_link='./categories.php?cat_id='.$row['cat_id'];

into this:
Code: [Select]
$cat_link=$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID.'='.$row['cat_id']);

Once again thanks for this great Mod !

Regards,
zorex

2
V@no,

thanks for your reply.

I just now discovered my home page customization (category section) is the source of the issue,i think it does entirely bypass your core functions ,whereas detail section hasn't been disturbed,that's why detail page is displayed as static .htm page,thanks for your one line instruction :idea:  in the previous post.


well, my request is how do i implement  SEO mod without disturbing home page customization,below given is customized code from index.php.
I dont want to disturb the home cusmization simply  put lot of time to achieve it.

Thanks a lot.

Code: [Select]
$result = $site_db->query('select cat_id,cat_name from 4images_categories where cat_id <> 60 and cat_id <> 61 order by cat_order');
$tab_head="<TABLE STYLE='width:auto;border:0px solid gray'>";
$tab_tail="</TABLE>";
$tab_body='';
$tdx=1;
$trs='<TR>';
$tre='</TR>';
$goo=0;
$cat_link='./categories.php?cat_id=';

//$row['cat_name']

$gscript='<script type="text/javascript"><!--
google_ad_client = "xxxx";
/* 336x280, created 5/13/09 */
google_ad_slot = "xxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

$cat_thum_img_border_color='#F5F5DC';
while ($row = mysql_fetch_assoc($result))
{
if($tdx==1)
{
$rlt = $site_db->query('select count(*) from 4images_images where cat_id='.$row['cat_id']);
$rw=mysql_fetch_row($rlt);
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";

if($goo==0)
{
//$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'><img  style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td><td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'>".$gscript."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$goo=1;
}
else
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
}
if($tdx<4 && $tdx>1)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";

$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
if($tdx==4)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";
/*
if($goo==0)
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td><td class='catthumb' rowspan='3'><img style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td>".$tre;
$goo=1;
}
else*/
{

$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>".$tre;
}
$tdx=0;
}
$tdx=$tdx+1;

}


3
Hello,

Thanks for this great Mod!

I have made necessary modifications as you mentioned,my problem is, image page is displayed as a static .htm page but categories are always displayed as .php?cat_id=xx ,surprisingly category page is displayed as .htm only when a category is selected through 'clickstream'

please have a look at www.pixeeds.com

Any Help would be appreciated

Regards,
zorex

Pages: [1]