Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 3 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Template for morphogenesis theme
by barryc on 2009/3/23 16:23:34

Well, I finally figured this out myself. After doing quite a bit of reading from various places I did not find any direct reference to where the values for Smarty variables are kept. I did learn someting about Smarty, though. I knew that variables in modules are kept in language/english/main.php. Therefore I decided to try making a dir structure like that within the theme directory. Then I created a PHP file, main.php, and entered the define statements.

That worked! I was surprised almost, but pleased. I now wonder if these definitions could be put in XOOPS_ROOT/language/english/main.php and still work. Some time I'll try it, but my instinct was to keep the theme Smarty definitions separate, as indicated above.

Perhaps this will help someone else. It might be a good idea to put something in the readme file to the effect that one needs to enter define statements for the Smarty variables (whereever is the best place to keep them).

Barry Cooper
Re: Template for morphogenesis theme
by Burning on 2009/3/22 16:22:02

Quote:
It's one of Kris' themes

I know that, I usually copy all his work

But I haven't opened this one...
Re: Template for morphogenesis theme
by Mamba on 2009/3/22 16:15:01

Quote:
but I don't know how Zen ocean theme is made

It's one of Kris' themes (see here)
Re: Template for morphogenesis theme
by Burning on 2009/3/22 16:06:05

oups! it works now
Re: Template for morphogenesis theme
by barryc on 2009/3/22 15:47:52

Sorry, but the link you gave does not work. 404 error.

To clarify what I'm asking, in the morphogenesis type themes (such as zetagenesis, supplied with xoops) there are calls like <{$smarty.const._THEME_PROFILE}. One must have to define what is placed in the page for THEME_PROFILE, as an example. I am trying to figure out where that information is kept.


BC

Who's Online

251 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 251


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits