1
xKillswitchx
EDITED : Making Another New Theme, Have Questions

OK I had to edit this. Im making a new theme to use besides the default. When I change the directory in theme.html from default/theme_blockleft etc no blocks show up that I have originally made. I dont see an option to choose if a block shows up in which theme, is there anything Im missing??

Heres what Ive got...

http://www.zeldalegacy.net/main/

the v3 theme is original
simplicity is the new theme im working on

the menus are custom blocks

2
xKillswitchx
Re: EDITED : Making Another New Theme, Have Questions

Wow, no help with this one??

3
stefan88
Re: EDITED : Making Another New Theme, Have Questions
  • 2006/3/9 19:56

  • stefan88

  • Community Support Member

  • Posts: 1085

  • Since: 2004/9/20


will this help:

<{include file="$xoops_theme/theme_blockleft.html"}>
..

4
xKillswitchx
Re: EDITED : Making Another New Theme, Have Questions

Ill give it a try, none of the faqs could help.

5
xKillswitchx
Re: EDITED : Making Another New Theme, Have Questions

That did cause the left block to show up now. Now my only problem, is being able to go into my new block and use code like that to allow it to determine which image to load depending on theme.

My navs have images, like main database, game help, multimedia and under each image is the respective content. When I switch to the other theme, I want those images to change (they have same file names too), but the content to stay.

The best way I can describe this, is when I insert my img tag, is there any way to make it draw the image drom the current theme folder? Or is there any tag such as
{X_SITEURL}

that will allow me to do this? Ive tried looking for XOOPS code guides but no luck with em.

6
iHackCode
Re: EDITED : Making Another New Theme, Have Questions

with that "simplistic" theme.. you are using . "simplicity" in the theme.html file when you are including the left. center and right html files should be changed to ."simplistic". that is why the blocks arent showing up.

and the theme url would be smarty variable <{$xoops_imageurl}> .(http://zeldalegacy.net/main/themes/v3). but i dont know how you will be able to use the variables in a block

example.
<img src="<{$xoops_imageurl}>/images/something.gif" width="17" height="1" alt="" />
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

7
xKillswitchx
Re: EDITED : Making Another New Theme, Have Questions

I will give that a shot, thanks for the help.

8
iHackCode
Re: EDITED : Making Another New Theme, Have Questions

it took me about an hour to realize it. i was looking at it and it looked right.. walked around the house.. read some posts and came back to the theme.html file .. and i finally noticed the spelling.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

9
xKillswitchx
Re: EDITED : Making Another New Theme, Have Questions

Its not letting me use smarty code within the block, this is getting aggrivating.

10
iHackCode
Re: EDITED : Making Another New Theme, Have Questions

Quote:

xKillswitchx wrote:
Its not letting me use smarty code within the block, this is getting aggrivating.


yea. you cant use smarty in blocks. there is probably a way but i dont know how.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Username:
Password:

Lost Password? Register now!

Who's Online

60 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits