Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 09-19-2007, 07:18 PM   #1 (permalink)
Registered User
 
Join Date: Sep 2007
Location: United Kingdom
Posts: 75
OS: XP Media Center


Roll Eyes .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:
{* $Idhome.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 -->

&
nbsp;

</
div>

</
TD>



</
TR>



<
tr>

<
td style="height:32px; background:#474747; color:#fff; line-height:32px;">

&
nbsp;&nbsp;{include file="copyright.tpl" }

</
td>

<
td bgcolor="#333333">&nbsp;</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
ralen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 09-22-2007, 12:58 PM   #2 (permalink)
Registered User
 
Join Date: Sep 2007
Location: United Kingdom
Posts: 75
OS: XP Media Center


Re: .tpl and .php

I'm guessing nobody knows.

Anyone know any decent Web designers/ programmers that has experience with X-Cart?
ralen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 02:03 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85