Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: alahuin - helmikuu 23, 2009, 05:07:13 IP

Otsikko: variables--how?
Kirjoitti: alahuin - helmikuu 23, 2009, 05:07:13 IP
Hi Everyone,
I have searched the forum but cannot find any relevant posts.

I want to create a new variable to use in my Theme's index.template.php.

As a newbie, I have no idea how to do that.

I will ponder how to implement it later, one thing at a time......

Any help would be appreciated.

Am using 20 RC1..

Thanks.
Otsikko: Re: variables--how?
Kirjoitti: alahuin - helmikuu 23, 2009, 06:14:24 IP
Replying to myself and members who may still be thinking about it.

Solved....

Will post how when I figure how to use it now it's created and recognised by the script...
Thanks...
Otsikko: Re: variables--how?
Kirjoitti: N3RVE - maaliskuu 06, 2009, 03:55:11 IP
There's more to it than just creating a variable, that's pretty simple, something as basic as this will work: $alhuin = "variable\'s value";
What do you want the variable to do, where should it be defined?

-[n3rve]