Report message:*
 

Need help with ajax "hotlava" theme

Subject: Need help with ajax "hotlava" theme
by drummond on 2008/1/12 11:38:16

I'm developing a new theme for icms/xoops that has a lot of neat ajax features, simplicity to use and modify and such, but there are few things that I need help with. I'm going to use this thread for that.

First of all, here's the theme:

http://www.pageprogressive.com

And here's what I need help with:

1) I want to include a menu file and I am currently doing it this way:

<{php}> include ("http://www.pageprogressive.com/themes/hotlava/includes/menu.html"); <{/php}>


But this method requires a hard coded link. How can I get the same effect of<{xoAppUrl /themes/hotlava/includes/menu.html}> inside a php snippet, or perhaps there is a better way to include rather than the php snippet.

2) I've found a CSS-only drop down menu that only requires javascript for older browser compatibility. This is better than the one that Mastop Publish currently uses (Son of Suckerfish, I believe) because of it's lack of needing JS and more compatible with browsers (Even IE on the Mac!), but I don't know how to modify Mastop's horizontal menu block template to use this new menu. The PHP coding is over my head. Anyone want to take a stab at it? The menu is here:
http://webhost.bridgew.edu/etribou/layouts/rMenu/index.html[/d] Managed to figure this out afterall

3) Is there a way to return a unique block ID with a variable in the theme? IE, blocks could have id="1", id="2" for identifying them seperately for styling. Marcan pointed out that you can use <{$block.id}> to identify that block's ID, which will let us validate properly now and also we can have a user-friendly "Click here to edit this block" button. Yay!

More to come!