insert images on .cfg »  Show posts from    to     

Icy Phoenix


Old Styles Topics - insert images on .cfg



-ktm- [ Sun 18 Feb, 2007 17:22 ]
Post subject: insert images on .cfg
hi
i can insert images i put this in mg_themes.cfg $images['menu_portal'] = $current_template_images . 'portal.png'; and insert on .tpl <a href="{U_PORTAL}"><img src="{IMG_MENU_PORTAL}" alt="" border="0" /></a> but dont work

what happend xD

thanks


Zuker [ Sun 18 Feb, 2007 17:58 ]
Post subject: Re: insert images on .cfg
They must be in the .php also

take a look at forum.php

Code: [Hide]
  1. 'FORUM_IMG' => $images['forum'], 


and in the .cfg it's like this

Code: [Hide]
  1. $images['forum'] = $current_template_images . 'folder.gif' . $img_fade; 


Then, you can use it


-ktm- [ Sun 18 Feb, 2007 20:06 ]
Post subject: Re: insert images on .cfg
this??

'FORUM_IMG' => $images['forum'], $images['menu_portal'],

a tried with this and dont work, what more I must do?


Zuker [ Sun 18 Feb, 2007 20:24 ]
Post subject: Re: insert images on .cfg
tell me where you like to insert the images please


Zuker [ Sun 18 Feb, 2007 20:31 ]
Post subject: Re: insert images on .cfg
An Ex

In your cfg you got

Code: [Hide]
  1. $images['menu_portal'] = $current_template_images . 'portal.png'; 


Add at page_header

Code: [Hide]
  1. 'PORTAL_IMG' => $images['menu_portal'] 


After

Code: [Hide]
  1. $template->assign_vars(array( 


After this, you can use {PORTAL_IMG}



-ktm- [ Sun 18 Feb, 2007 20:32 ]
Post subject: Re: insert images on .cfg
thank you very much you are great =)




Powered by Icy Phoenix