http://www.icyphoenix.com/viewtopic.php?f=36&t=1157
-----------------------------------
-ktm-
Sun 18 Feb, 2007 17:22

insert images on .cfg
-----------------------------------
hi 
i can insert images i put this in mg_themes.cfg [b]$images['menu_portal'] = $current_template_images . 'portal.png';[/b] and insert on .tpl [b]<a href="{U_PORTAL}"><img src="{IMG_MENU_PORTAL}" alt="" border="0" /></a> [/b] but dont work  :P 

what happend xD

thanks


-----------------------------------
Zuker
Sun 18 Feb, 2007 17:58

Re: insert images on .cfg
-----------------------------------
They must be in the .php also

take a look at forum.php

[code]	'FORUM_IMG' => $images['forum'],[/code]

and in the .cfg it's like this

[code]$images['forum'] = $current_template_images . 'folder.gif' . $img_fade;[/code]

Then, you can use it


-----------------------------------
-ktm-
Sun 18 Feb, 2007 20:06

Re: insert images on .cfg
-----------------------------------
this??

[b]'FORUM_IMG' => $images['forum'], $images['menu_portal'],[/b]

a tried with this and dont work, what more I must do?


-----------------------------------
Zuker
Sun 18 Feb, 2007 20:24

Re: insert images on .cfg
-----------------------------------
tell me where you like to insert the images please


-----------------------------------
Zuker
Sun 18 Feb, 2007 20:31

Re: insert images on .cfg
-----------------------------------
An Ex

In your cfg you got

[code]$images['menu_portal'] = $current_template_images . 'portal.png';[/code]

Add at page_header

	[code]'PORTAL_IMG' => $images['menu_portal'][/code]

After

[code]$template->assign_vars(array([/code]

After this, you can use {PORTAL_IMG}

 :mricy:


-----------------------------------
-ktm-
Sun 18 Feb, 2007 20:32

Re: insert images on .cfg
-----------------------------------
thank you very much you are great =)


