Jump to content



Latest News: (loading..)

* * * * * 2 votes

Sitemap SEO


  • Please log in to reply
794 replies to this topic

#781   imageanative

imageanative
  • Members
  • 15 posts
  • Real Name:Jack

Posted 15 March 2013 - 06:57 PM

View PostJack_mcs, on 15 March 2013 - 04:27 PM, said:

Oh, I see. That is loaded from the store address setting in admin. If you can't edit it there (it may be used elsewhere), then you would need to edit sitemap.php language file.

Thanks Jack

#782   imageanative

imageanative
  • Members
  • 15 posts
  • Real Name:Jack

Posted 15 March 2013 - 07:00 PM

View Post14steve14, on 15 March 2013 - 06:04 PM, said:

In your includes/language/english/sitemap.php file find

define('TEXT_INFORMATION', '<p>Please contact us if you experience any problems finding what you need:</p> ' .
nl2br(STORE_NAME_ADDRESS) . '<br>' .
STORE_OWNER_EMAIL_ADDRESS
);

and change it to

define('TEXT_INFORMATION', '<p>Please contact us if you experience any problems finding what you need using the contact us form.</p>');

That will keep the text, but remove the address details and email.

thanks i did this
define('TEXT_INFORMATION', '<b>Please <a href="/contact_us.php">Contact Us</a> if you experience any problems finding what you
need :</b><BR> ' .
nl2br(STORE_NAME_ADDRESS) . '<BR>' .
SITEMAP
);

Thanks

#783   Matjaz

Matjaz
  • Members
  • 8 posts
  • Real Name:Matjaz
  • Gender:Male
  • Location:Slovenia

Posted 24 March 2013 - 11:12 AM

In instructions for installation I didn't find correction for file bm_information.php. I fixed it myself off course in language file bm_information.php add   define('MODULE_BOXES_
INFORMATION_SITEMAP_SEO', 'sitemap')


While I was arranging Boxes Group Control 2 notices appeared.
Notice Warning: explode() expects parameter 2 to be string, array given in /.../.../.../admin/sitemap_seo_box_control.php on line 162 I fixed with:

if (! is_array($activeBox))
$boxName = explode(".", $activeBox);


Following notice was still left:
Warning: file(/.../.../public_html/includes/modules/boxes/Array) [function.file]: failed to open stream: No such file or directory in/.../.../public_html/admin/includes/functions/sitemap.php on line 203.
What is wrong? How to fix this?

I have a version 2.3.3.

Edited by Matjaz, 24 March 2013 - 11:22 AM.


#784   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 24 March 2013 - 03:04 PM

I'm not seeing that error here but you can try changing
$boxName = explode(".", $activeBox);
to
$boxName = explode(".", implode($activeBox));


#785   Matjaz

Matjaz
  • Members
  • 8 posts
  • Real Name:Matjaz
  • Gender:Male
  • Location:Slovenia

Posted 25 March 2013 - 10:51 AM

1. Despite correction note about sitemap.php on line 203 stays.

2. Why I cant plug in via administration:

Enable Articles Manager
Enable InfoPages
Enable Page Manager

When I start install. php php admin notices me:
1048 - Column 'set_function' cannot be null INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL, 'Sort Order - Articles Manager', 'SITEMAP_SEO_SORTORDER_ARTICLES_MANAGER', '4', 'Where to place this module in the listings.', '18', '16', NULL, now(), NULL)

#786   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 25 March 2013 - 01:17 PM

View PostMatjaz, on 25 March 2013 - 10:51 AM, said:

1. Despite correction note about sitemap.php on line 203 stays.

2. Why I cant plug in via administration:

Enable Articles Manager
Enable InfoPages
Enable Page Manager
Do you have those addons installed?

#787   Matjaz

Matjaz
  • Members
  • 8 posts
  • Real Name:Matjaz
  • Gender:Male
  • Location:Slovenia

Posted 25 March 2013 - 06:31 PM

I downloaded and changed everything what I saw in file after_2.3 for oscommerce version 2.3 or above. Is there something else I should have?

#788   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 25 March 2013 - 06:49 PM

If you want to use those addons, you have to install them. This thread is for the Sitemap SEO addon only.

#789   Supertex

Supertex
  • Members
  • 39 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 13 May 2013 - 09:22 PM

@Jack_mcs

Anytime I click "(show products)," and then click on a product, and then hit the "back" button, I get a re-submission prompt from my browser.  Is this intended, or have I made a mistake with installation?

#790   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 13 May 2013 - 11:26 PM

The re-submission problem occurs whenever a form is used. This addon doesn't use any forms. I don't know what you are clicking on when you click "show products" but that is where I would start looking.

#791   Supertex

Supertex
  • Members
  • 39 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 15 May 2013 - 04:12 PM

@Jack_mcs

The lastest version has the option in Admin>Configuration>Sitemap SEO   "show products in categories" true/false.  I have it set to false as default, so it just shows categories.  However, at the top of the sitemap, right next to "Categories," there is also (show products) which when I mouseover, it shows the link as: "javascript:document.sitemap.submit()" .

There are no forms on the page at all.

This isn't a huge detraction from the sitemap, but it may lead some customers to think they've made a mistake or that there is a security risk.  If there's a way to avoid the prompt, I'd like to, but I can also live with it, if it presents a large hurdle.

Please forgive my ignorance.  I don't know, so I must ask :)

#792   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 15 May 2013 - 04:50 PM

Yes, there is a form but it is not a security problem because the database doesn't use the results of the form. You can remove that link though by deleting this code
	  $showCategories .= tep_draw_form('sitemap', tep_href_link(FILENAME_SITEMAP_SEO)) . tep_hide_session_id() . tep_draw_hidden_field('show_products', $showStatus);
	  $showCategories .= '<a class="sitemap" href="javascript:document.sitemap.submit()">' . $showProducts . '</a> ';
	  $showCategories .= '</form></th></tr>';


#793   Supertex

Supertex
  • Members
  • 39 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 23 May 2013 - 10:29 PM

@Jack_mcs

How difficult is it  for the sitemap omit/exclude categories that contain 0 products?  My site does not display empty categories in the category box, but they do still show in the sitemap.

It's not an addon, exactly...more like a short snippet added to the bm_categories.php shown here:

// DISABLE CATEGORY WITH NO PRODUCT
$bShowCategory = false;
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0){
	 for ($i=0; $i<$tree[$counter]['level']; $i++) {
	 $categories_string .= "&nbsp;&nbsp;&nbsp;&nbsp;"; /*alters the offset of subcategories*/
	 }
	 $categories_string .= '<a href="';
	 if ($tree[$counter]['parent'] == 0) {
	 $cPath_new = 'cPath=' . $counter;
	 } else {
	 $cPath_new = 'cPath=' . $tree[$counter]['path'];
	 }
	 $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';
	 /* if (isset($cPath_array) && in_array($counter, $cPath_array)) {
	 $categories_string .= '<strong>';
	 } commented out original before "easier categories in 2.3.1.*/
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<span class="categoryBox-active">';
} else {
$categories_string .= '<span class="categoryBox">';
}

// display category name
	 $categories_string .= $tree[$counter]['name'];
	 /* if (isset($cPath_array) && in_array($counter, $cPath_array)) {
	 $categories_string .= '</strong>';
	 }*/
$categories_string .= '</span>';
	 /*if (tep_has_category_subcategories($counter)) {
	 $categories_string .= '-&gt;';
	 }*/
	 $categories_string .= '</a>';
	 if (SHOW_COUNTS == 'true') {
	 $products_in_category = tep_count_products_in_category($counter);
	 if ($products_in_category > 0) {
		 $categories_string .= '&nbsp;(' . $products_in_category . ')';
	 }
	 }
	 $categories_string .= '<br />';
}
//End Hide Empty Category

I assume mimicking this behavior on the sitemap isn't quite as simple?

#794   Jack_mcs

Jack_mcs
  • Members
  • 25,320 posts
  • Real Name:Jack York
  • Gender:Male
  • Location:Michigan

Posted 24 May 2013 - 12:58 AM

I haven't tried this but the following may work, or should at least get you started. In the includes/classes/category_tree.php file, find
function buildProducts($category_id)
{
and add this after it
if ($products_in_category < 1) return '';


#795   Supertex

Supertex
  • Members
  • 39 posts
  • Real Name:Shawn
  • Gender:Male
  • Location:Wichita Falls, Texas

Posted 24 May 2013 - 10:16 PM

No change in "hide products" page, which is my default, but that caused the category tree in "show products" to be blank on the category side....still messing around with it.