Findes der en måde jeg kan få banneret i bunden flyttet op i toppen af siden, til højre for mit logo? Prøvede denne her guide, men intet sker:
PS. Hvordan er det nu man ændre navn på siden i admin, altså helt oppe i toppen af ie explorer?
Open header.php in your "includes" folder and find this line. This is where you changed the name to your logo if you customized it that way (see 'oscommerce.gif' below)
--
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>
--
ok, now ad another <TD> on the next line like so:
--
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>
* <td valign="middle">
--
Then just place this code in that <TD> and any banners that you have installed will rotate in this place.
--
<?php
if ($banner = tep_banner_exists('dynamic', '468x60')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
</tr>
</table>
<?php
}
?>
--
HERE IS THE FINAL CODE
--
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>
<td valign="middle">
<?php
if ($banner = tep_banner_exists('dynamic', '468x60')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
</tr>
</table>
<?php
}
?>
--
I have not worked on a way to use this for other size buttons yet for other parts of the site.
See a demonstration at store.rivalgraphix.com
send all comments (good, bad, or better ways to do this) to sales@rivalgraphix.com
thanks for having this program available!
Ryan Matthews
www.rivalgraphix.com
sales@rivalgraphix.com
803.794.8448