Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Edit


rikpotts

Recommended Posts

Posted

I have just added Header Tags 3.1.8 to my site.

 

In catalog/includes/header.php

It asks me to change....

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

to

<?php /*** Begin Header Tags SEO ***/ ?>
   <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td>
   <?php /*** End Header Tags SEO ***/ ?>

 

Its just the code that puts the main header logo there.

 

The thing is, I have a .swf file for a header logo and I have replaced the first code (above) to this....

<div class="fixcenter">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
 <td>
    <embed src="images/logo.swf"
     quality="high"
     type="application/x-shockwave-flash"
     WMODE="transparent"
     width="835"
     height="140"
     pluginspage="http://www.macromedia.com/go/getflashplayer"
     allowScriptAccess="always" />
</td>
 </tr>
</table>

 

Im not sure if thats the correct way to put a flash "image" there but it works!

 

My question is.... How can I make the header tags seo code work with my .swf file?

 

 

I have slapped the Header Tags SEO code above my .swf code and get this....

http://www.hydro-organicsuk.co.uk/catalog/

 

If I replace oscommerce.gif with my .swf code it remains the same.

 

Many Thanks

Posted

I would probably use the Title and Standby tags in the <embed> block. This is untested of course, and others may have some actual experience in this.... I don't even know if the search engines would use those. If they do they probably use them for media links. In any case it wouldn't hurt to try this if it doesn't break the code.

 

<div class="fixcenter">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
 <td>
    <embed src="images/logo.swf"
     quality="high"
     type="application/x-shockwave-flash"
     WMODE="transparent"
     width="835"
     height="140"
     pluginspage="http://www.macromedia.com/go/getflashplayer"
     allowScriptAccess="always"
     title="<?php echo $header_tags_array['logo_text'] ?>"
     standby="<?php echo $header_tags_array['logo_text'] ?>" />
</td>
 </tr>
</table>

 

Of course, this may not be at all useful or even work. Perhaps someone else will chime in with some first hand experience.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

Thanks for the quick reply!

 

Ive added the code and am getting the "replace me in page control under index.php" which I think (??) means it works.

I wouldn't even like to guess how the search engines would handle it.

 

I have no idea why but the Header Tags SEO code messed up my flyout categories box! So I might not use it at all in header.php

 

Once again, Many Thanks!

 

 

 

NOTE: I cant edit the initial post.

I have slapped the Header Tags SEO code above my .swf code and get this....
http://www.hydro-org....co.uk/catalog/

If I replace oscommerce.gif with my .swf code it remains the same.

is now redundant!

Archived

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

×
×
  • Create New...