Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where would this be defined?


Kevin360

Recommended Posts

I'm trying to install the Header Tags SEO and and everywhere it calls for me to change

	<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

I dont see it, however I see:

<?php tep_draw_heading_top();?>
  <?php new contentBoxHeading_ProdNew($info_box_contents);?>
  <?php tep_draw_heading_top_3();?>

 

What is the tep_draw_heading_top() ?? I assume it's because I have installed a template. But my questions is, can I get to this function and make the required changes in there so my index page will stay the same? Where do I find this function defined?

 

Any help would be great!

Link to comment
Share on other sites

I'm trying to install the Header Tags SEO and and everywhere it calls for me to change
	<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

 

I dont see it, however I see:

<?php tep_draw_heading_top();?>
  <?php new contentBoxHeading_ProdNew($info_box_contents);?>
  <?php tep_draw_heading_top_3();?>

 

What is the tep_draw_heading_top() ?? I assume it's because I have installed a template. But my questions is, can I get to this function and make the required changes in there so my index page will stay the same? Where do I find this function defined?

 

Any help would be great!

You might try the /includes/functions/general.php file.

Link to comment
Share on other sites

Ok, I can't find the tep_draw_heading code in the functions folder. Any ideas of where else it might be. What I'm doing is a search for "tep_draw_h". I'm finding some things, but not what I need. I'm searing in dream weaver which lets me search through the code in any file in the folder. I don't have my website all on my hard drive so I haven't tried a site wide search.

 

Any other ideas on where I can find this function?? I'd love to set up Header Tags SEO asap. If I can't figure it out, I'll be willing to pay to have someone install it for me. What can I expect to pay for that and now soon will it be done? Of course I'd much rather do it myself... that way I learn more about the code of my site as well, which makes me overall more comfortable.

Link to comment
Share on other sites

Whenever you install a template, you cut down your options for getting help. Fact of (osCommerce) life.

 

I've just quoted someone else half a days work to install HTC SEO v3 on a TM template - which will give you an idea of how crap these templates are coded, as a usual install is not more than 1 hour or so.

Link to comment
Share on other sites

look I have also used this contribution and it works fine for me

also I do not remember exactly where had I made all this changes but can u specify in which file above said code has to be changed ?

 

It says to change this in index.php.

 

..... directions....

FIND (Around line 78)

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

 

REPLACE with

 

<?php /*** Begin Header Tags SEO ***/ ?>

<td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

<?php if (tep_not_null($category['categories_htc_description'])) { ?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td colspan="2"><h2><?php echo $category['categories_htc_description']; ?></h2></td>

</tr>

<?php }

/*** End Header Tags SEO ***/

?>

 

however I do not have any code that says:

 

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

 

my code instead around that same line, and seems similar in function is

 

<?php tep_draw_heading_top();?>

<?php new contentBoxHeading_ProdNew($info_box_contents);?>

<?php tep_draw_heading_top_3();?>

 

 

My problem is that I do not know how to install this conrtib if I cannot replace text I dont see. I'm hoping I can find where the tep_draw_heading is defined so I can figure out exactly what it does, so I can maybe install this contrib. I dont have much coding experience at all...

Link to comment
Share on other sites

So I found each of these..

<?php tep_draw_heading_top();?>
  <?php new contentBoxHeading_ProdNew($info_box_contents);?>
  <?php tep_draw_heading_top_3();?>

 

defined in includes/classes/boxes.php

 

I'm going to play around with it some, but it looks as if I can insert the new code for index.php over top of this, and just get rid of the above code all together, it seems as though it just defines some tables... I can redo that if it gets out of wack... I'll keep it posted in case someone else was interested.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...