Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

home.php?cat= Reference on Category Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2007, 03:00 PM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default home.php?cat= Reference on Category Pages

Hello,

I have the safetynet web mod installed and I am wanting to eliminate any reference to home.php. I have looked at my logs and I found several thousand people are using a home.php link even though I have blocked all php files from being indexed by Google and the other bots.

I have been looking on the site for any home.php links and I found this empty tag only in thecategories pages.

Here is the tag:
<font class=CategoriesList><a href="home.php?cat=" class=VertMenuItems title=""></a></font>

Since it is empty I wanted to remove it but I can't seem to find where it is coming from. Can anyone give me an idea where I need to look?

Also, do you think this is the reason home.php is being indexed?

Thanks,

Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #2  
Old 11-25-2007, 04:47 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: home.php?cat= Reference on Category Pages

First, which version does this question apply to? You have two in your signature.

Next, what are you using for code to block home.php?

Finally, check customer/main/subcategories.tpl first and see if you can find that code.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-26-2007, 06:12 AM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default Re: home.php?cat= Reference on Category Pages

Hi Balinor,

Thanks for the reply. Sorry about not clarifying which version it is 4.0.16.

I looked where you suggested and found nothing that I can tell will cause that problem. I have marked the 3 locations of the home.php file. Below I have included my complete subcategories.tpl file:

{* $Id: subcategories.tpl,v 1.43.2.5 2004/12/01 15:15:49 mclap Exp $ *}
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
<P>
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<P>
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/category_offers_short_list.tpl}
{/if}
{if $cat eq "1" or $cat eq "26" or $cat eq "33" or $cat eq "34" or $cat eq "66"}
{ include file="rjw/essential.tpl" }
<p>
{/if}
{if $cat eq "29" or $cat eq "27" or $cat eq "28" or $cat eq "30" or $cat eq "31" or $cat eq "32" or $cat eq "46" or $cat eq "47" or $cat eq "48" or $cat eq "49" or $cat eq "50" or $cat eq "51" or $cat eq "52" or $cat eq "53" or $cat eq "54" or $cat eq "55" or $cat eq "56" or $cat eq "57" or $cat eq "58" or $cat eq "59" or $cat eq "60" or $cat eq "61" or $cat eq "62" or $cat eq "63" or $cat eq "64" or $cat eq "65" or $cat eq "85"}
{* {if $categories[cat_num].order_by > 500} *}
{include file="rjw/shophead.tpl"}
{* XCART ADDON *mgunin 27/Mar/2006*}
{*elseif $cat eq "80" or $cat eq "79" or $cat eq "78" or $cat eq "84" or $cat eq "68" or $cat eq "75" or $cat eq "39" or $cat eq "37" or $cat eq "44" or $cat eq "74" or $cat eq "38" or $cat eq "42" or $cat eq "82" or $cat eq "6" or $cat eq "7" or $cat eq "81" or $cat eq "1" or $cat eq "19" or $cat eq "76" or $cat eq "36" or $cat eq "73" or $cat eq "41" or $cat eq "72" or $cat eq "25" or $cat eq "23"*}
{elseif $cat eq "59" or $cat eq "79" or $cat eq "78" or $cat eq "75" or $cat eq "39" or $cat eq "37" or $cat eq "44" or $cat eq "74" or $cat eq "80" or $cat eq "38" or $cat eq "42" or $cat eq "82" or $cat eq "6" or $cat eq "7" or $cat eq "81" or $cat eq "19" or $cat eq "76" or $cat eq "36" or $cat eq "73" or $cat eq "41" or $cat eq "72" or $cat eq "25" or $cat eq "23" or $cat eq "84"}
{include file="rjw/catalog.tpl"}
{elseif $cat eq "90"}
{include file="rjw/children.tpl"}
{include file="rjw/childrentext.tpl"}
{elseif $cat eq "4"}
{include file ="rjw/children.tpl"}
{elseif $cat eq "87" or $cat eq "92" or $cat eq "93" or $cat eq "94" or $cat eq "95" or $cat eq "96" or $cat eq "97" or $cat eq "98" or $cat eq "99" or $cat eq "100" or $cat eq "101" or $cat eq "102" or $cat eq "103" or $cat eq "104" or $cat eq "105"}
{include file="rjw/petnavbar.tpl"}
{elseif $cat eq "12" or $cat eq "88" or $cat eq "89"}
{include file="rjw/natria.tpl"}
{elseif $cat eq "68" or $cat eq "69"}
{include file="rjw/hmc.tpl"}
{elseif $cat eq "109"}
{include file="rjw/lice.tpl"}
{* elseif $cat eq "8"}
{include file="rjw/habit.tpl" *}
{elseif $cat eq "107" or $cat eq "106"}
{include file="rjw/xylitol.tpl"}
{/if}
<font class=CategoriesList><a href="home.php?cat={$categories[cat_num].categoryid}" class=VertMenuItems title="{$categories[cat_num].description}">

************************************************** ********ABOVE IS THE FIRST ENTRY

{$categories[cat_num].category_name|escape }</a></font><br>
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"<BR>"}{/if}
<P>
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{if $subcategories}
{if $tmp} <IMG src="{if $current_category.icon_url}{$current_category.icon _url}{else}{$xcart_web_dir}/icon.php?categoryid={$cat}{/if}" align="left"> {/if}
<TABLE border="0" cellspacing="5">
{foreach from=$subcategories item=subcat}
<TR>
{* SAFETYNET DSEFU MOD *}
{if $enable_seo_links == "Y"}
<TD align="left" nowrap width="95%">&nbsp;<A href="{seo_link cat_name=$subcat.category cat_id=$subcat.categoryid}"><FONT class="ItemsList">{ $subcat.category|escape }</FONT></A><BR></TD>
{else}
<TD align="left" nowrap width="95%">&nbsp;<A href="home.php?cat={$subcat.categoryid}"><FONT class="ItemsList">

************************************************** ***********ABOVE IS THE SECOND ENTRY

{ $subcat.category|escape }</FONT></A><BR></TD>
{/if}
{* END SAFETYNET DSEFU MOD *}
<TD align="right" nowrap><FONT class="Text">{if $config.Appearance.count_products eq "Y"}
{if $subcat.product_count}{ $subcat.product_count } {$lng.lbl_products}
{elseif $subcat.subcategory_count}{ $subcat.subcategory_count } {$lng.lbl_categories|lower}
{/if}
{/if}</FONT></TD>
</TR>
{/foreach}
</TABLE>
{/if}
{if $tmp and $products ne "" }
<BR clear="left">
<HR size="1" noshade>
{/if}
{if $products}
{if $sort_fields}
<DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV>


************************************************** ABOVE IS THE LAST ENTRY

{/if}
{if $total_pages gt 2}
<BR>
{ include file="customer/main/navigation.tpl" }
{/if}
<HR size="1" width="100%">
{include file="customer/main/products.tpl" products=$products}
{/if}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_cat}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}
<P>
{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }
{if $cat eq "90" or $cat eq "4"}
{include file="rjw/children.tpl"}
{elseif $cat eq "87" or $cat eq "92" or $cat eq "93" or $cat eq "94" or $cat eq "95" or $cat eq "96" or $cat eq "97" or $cat eq "98" or $cat eq "99" or $cat eq "100" or $cat eq "101" or $cat eq "102" or $cat eq "103" or $cat eq "104" or $cat eq "105"}
{include file="rjw/petnavbar.tpl"}
{elseif $cat eq "68" or $cat eq "69"}
{include file="rjw/hmc.tpl"}
{* elseif $cat eq "8"}
{include file="rjw/habit.tpl" *}
{elseif $cat eq "107" or $cat eq "106"}
{include file="rjw/xylitol.tpl"}
{/if}

To block the php files I have the following in my robots.txt file:

User-agent: GoogleBot
Disallow: /*.php
Disallow: /skin1/*.php$
Disallow: /home.php?
Disallow: /home.php

I have done the same for Slurp, msnbot and also a wildcard.

I didn't include the entire robots file because it was provided by safetynetweb and I only added some entries to it to restrict access to our picture gallery (I read on the forum that the orginators of the files don't want their robots file posted for all to see). If you want to see the whole file of the robots.txt please tell me and I will send it to you via Private Message.

Thanks for your help and suggestions.

Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #4  
Old 11-26-2007, 06:26 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: home.php?cat= Reference on Category Pages

It looks like you areusing the old version of the DSEFU mod, but you don't have this part of the code altered:

<font class=CategoriesList><a href="home.php?cat={$categories[cat_num].categoryid}" class=VertMenuItems title="{$categories[cat_num].description}">

************************************************** ********ABOVE IS THE FIRST ENTRY

{$categories[cat_num].category_name|escape }</a></font><br>

So that is probably rendering a non-dsefu link.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:58 AM.

   

 
X-Cart forums © 2001-2020