adding template variablle
#1
Hi, may i know which part of the file or table must i amend to add in a new template variable like{welcomeback} ??
#2
What and Where ( on what page or global )
#3
Like for example, {$welcomeback} points to template->member_welcomeback.

How do i create a similar variable like the above for me to use in my template ? I have created a new template already but i need to know how to use a variable to point to it.
#4
eval("\$VARIABLE = \"".$templates->get("TEMPLATE_NAME")."\";");

After that you can use {$VARIABLE} to show it.
#5
May i know which file should i put that line in if i wish to add a variable to the template-> header ??
#6
Open global.php

Find
eval("\$header = \"".$templates->get("header")."\";");

Add yours above
#7
I go try now ! Thanks !!


Forum Jump:


Users browsing this thread: 1 Guest(s)