Loading...
 
Skip to main content

Themes


Again... Changing Modules!

Hi,
Thankx Chiba Guy for the answers on topic below, but I'm still with problems in changing modules... In fact, I didn't understand the integration of Smarty and Tiki...! For example: I know that sometime the file 'user_module.tpl' its called - and I know that it occurs in tiki.tpl, when the smarty section '$left_modules' its called...! The question is, I don't know what this section does. I needed to know this because I wanted to change the way the liks are done. I mean, I need to put some java applet integrated that I've found in the web for example, a applet of buttons... Can anyone help me here?!
Thanks...!
--
Dineuzao

$left_modules cycles through and displays the modules as set on the Admin > Modules page.

I think you basically have two choices about putting things in the left column. The first is to put your applet in a module. It may not work to put the applet's code directly in the module, but another possibility (sometimes used for modules that contain javascript, etc.) is to have the applet code in a separate HTML or PHP file outside of Tiki, and make a Tiki module that just contains HTML code for an iframe. This iframe loads the file that contains your applet. The links in the applet may have to be changed to "_new" or "_parent" since they are in a frame.

Another possibility is to modify tiki.tpl to load your applet file in a new div at the top of the table cell that contains $left_modules, using the Smarty include statement. I do this sometimes for phplayers menus. I don't know if there will be any conflict between the applet and the Smarty template when included this way.

-- Gary