|
Registered User
Join Date: Sep 2007
Location: United Kingdom
Posts: 75
OS: XP Media Center
|
.tpl and .php
Im kinda confused with something im trying to add to one of my sites ( This menu), and wondering if anyone has any idea how I go about fixing it. I know how to enter the coding to a basic HTML page, but this time it's got to be added to a .tpl file
I am trying to add this coding (Generated by SOThink DHTML menu maker):
Head:
PHP Code:
<script type="text/javascript" language="JavaScript1.2" src="stmenu.js"></script>
Body:
PHP Code:
<script type="text/javascript" language="JavaScript1.2">
<!--
stm_bm(["menu7ca5",700,"","blank.gif",0,"","",0,0,250,0,1000,1,0,0,"http://www.fone-unlock-king.biz/","",67108897,0,1,2,"default","hand",""] ,this);
stm_bp("p0",[1,4,0,0,2,12,0,0,100,"progid:DXImageTransform.Microsoft.Slide(slideStyle=swap,bands=15,enabled=0,Duration=0.46)",-2,"progid:DXImageTransform.Microsoft.Fade(overlap=.5,enabled=0,Duration=0.46)",-2,64,0,0,"#999999","#333333","",3,0,0,"#333333"] );
stm_ai("p0i0",[0,"Home","","",-1,-1,0,"home.php","_self","","Back to homepage","","",0,0,0,"","",0,0,0,0,1,"#333333",0,"#ff0000",0,"","",3,3,0,0,"#FFFFF7","#000000","#FF0000","#333333","bold 14px 'Porkys','Tahoma Small Cap','Engravers MT','Eras Bold ITC','Eras Demi ITC','Rockwell Extra Bold','Showcard Gothic'","bold 14px 'Porkys','Tahoma Small Cap','Engravers MT','Eras Bold ITC','Eras Demi ITC','Rockwell Extra Bold','Showcard Gothic'",0,0]);
stm_aix("p0i1","p0i0",[0,"Login","","",-1,-1,0,"error_message.php?login_incorrect","_self","","Login to your account"] );
stm_aix("p0i2","p0i0",[0,"Register","","",-1,-1,0,"register.php","_self","","Create reseller account"] );
stm_aix("p0i3","p0i0",[0,"Supported Networks","","",-1,-1,0,"pages.php?pageid=1","_self","","View a list of currently supported networks & services"] );
stm_aix("p0i4","p0i0",[0,"Terms","","",-1,-1,0,"help.php?section=conditions","_self","","Terms & Conditions"] );
stm_aix("p0i5","p0i0",[0,"Contact","","",-1,-1,0,"help.php?section=contactus&mode=update","_self","","Contact us by email"] );
stm_ep();
stm_em();
//-->
</script>
To this page. I have looked at all files, and the only file that has reference to the current navigation menu (images), is in- skin1/customer/home.tpl
Here is the coding from home.tpl:
PHP Code:
{* $Id: home.tpl,v 1.6.2.2 2005/05/30 06:43:18 max Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{ config_load file="$skin_config" }
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<LINK rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }
{if $active_modules.SnS_connector}
{include file="modules/SnS_connector/header.tpl"}
{/if}
<!-- main area -->
<TABLE border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="298" valign="top" bgcolor="#333333">
<div>
<a href="/home.php"><img src="{$ImagesDir}/button-home.jpg" width="298" height="47" border="0"></a>
</div>
<div>
<a href="/error_message.php?login_incorrect"><img src="{$ImagesDir}/button-login.jpg" width="298" height="36" border="0"></a>
</div>
<div>
<a href="/register.php"><img src="{$ImagesDir}/button-register.jpg" width="298" height="36" border="0"></a>
</div>
<div>
<a href="pages.php?pageid=1"><img src="{$ImagesDir}/button-models.jpg" width="298" height="36" border="0"></a>
</div>
<div>
<a href="/help.php?section=conditions"><img src="{$ImagesDir}/button-terms.jpg" width="298" height="36" border="0"></a>
</div>
<div>
<a href="/help.php?section=contactus&mode=update"><img src="{$ImagesDir}/button-contact.jpg" width="298" height="44" border="0"></a>
</div>
{ include file="customer/menu_cart.tpl" }
<BR>
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}
<BR>
{if $active_modules.News_Management}
<div>
<center>
<img src="{$ImagesDir}/menu-newsletter2.jpg" width="275" height="23" border="0"/>
</center>
</div>
<div style="margin-left:40px;">
{include file="news.tpl"}
</div>
{/if}
<br>
{ include file="poweredby.tpl" }
<BR></TD>
<TD valign="top">
<!-- central space -->
{if $main eq "catalog" and $current_category.category eq ""}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="127">{$lng.txt_welcome}</td>
</tr>
</table>
{/if}
<div style="padding: 0 10px 0 10px;">
{*{if $main ne "catalog"}
{include file="location.tpl"}
{/if}*}
{include file="dialog_message.tpl"}
{include file="customer/home_main.tpl"}
<BR>
<!-- /central space -->
</div>
</TD>
</TR>
<tr>
<td style="height:32px; background:#474747; color:#fff; line-height:32px;">
{include file="copyright.tpl" }
</td>
<td bgcolor="#333333"> </td>
</tr>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}
I know I need to remove the current image links for the buttons, and somehow add this coding so that the menu can be inserted, but im not quite sure how to do it.
Can anyone give me any pointers? Any help at all will be greatly appreciated.
Thanks
|