Zen Cart Logo
Forums / General Questions / Problem with ezpages on site map

Problem with ezpages on site map

Locked

Views: 503

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
15 Aug 2010, 6:31 PM
#1
halollet avatar

halollet

New Zenner

Join Date:
Mar 2010
Posts:
66
Plugin Contributions:
0

Problem with ezpages on site map

I need to have my ezpages on my site map

I got this mod and installed it fine

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=222

Unfortunatly it doesn't do anything. I did some back end research and for this code here

	  <!-- BOF: CODE TO add EZ-PAGES to Sitemap -->
	<?php
	$boxes = array('ezpages.php');
	$column_box_default='tpl_box_default_sitemap.php';
	for($ib=0,$nb=sizeof($boxes);$ib<$nb;$ib++) {
		$require_file = "";
		if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $boxes[$ib]) ) {
		 $require_file = DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . $boxes[$ib];
		} elseif ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $boxes[$ib]) ) {
		 $require_file = DIR_WS_MODULES . 'sideboxes/' . $boxes[$ib];
		}
		if ($require_file != "") {
			$box_id = zen_get_box_id($boxes[$ib]);
			require($require_file);
		}
	}
	?>
<!-- EOF: CODE TO add EZ-PAGES to Sitemap -->

I echoed out the sizeof($boxes) and its only 1.

It should be picking up 9 ezpages.

So... now I'm stuck. :huh:

Please help!