View Single Post
  #14  
Old 02-09-2006, 11:54 PM
 
vixnfox vixnfox is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Adelaide, South Australia
Posts: 82
 

Default

sorry to hijack your thread glow, just a thanks to Balinor (again!! what a man) for sorting my problem.

I am about to create a new menu. Taking balinors idea a little further, I just tracked the includes from home.php. After a while (cos I only had this thing a few days) you get the idea how the logic goes.
The key is in $smarty->assign("main", <your name>"; in home.php
home.php includes skin1/customer/home.tpl which itself includes home_main.tpl, and its here that the $smarty-> is switched,
{if $main eg "yourname" }
( include file ="customer/main/yourname.tpl" }
yourname.tpl of course is your stuff you want displayed.


A start is to duplicate the "special" menu.
In home.php, under the include special.tpl add
{include file="skin1/customer/yourname.tpl"}
duplicate special.tpl as yourname.tpl into skin1/customer

You now have 2 "special" menus. Replace the .tpls with your own.

Dont know if this helps you, but I felt good after I worked it out.

vixnfox
cheers from Oz
__________________
V 4.3.1 Live:

Developing on
PHP 5.3.0
MySQL server 5.0.75-community-log
MySQL client 5.1.36
Web server Apache/2.2.11 (Unix) mod_ssl/2.2.11
Windows 7 64bit on a Toshiba Satellite P500

ADELAIDE, SOUTH AUSTRALIA
Reply With Quote