SOLVED insert images on .cfg


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 :P

what happend xD

thanks

Subject: Re: insert images on .cfg
They must be in the .php also

take a look at forum.php

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


and in the .cfg it's like this

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


Then, you can use it

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?

Subject: Re: insert images on .cfg
tell me where you like to insert the images please

Subject: Re: insert images on .cfg
An Ex

In your cfg you got

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


Add at page_header

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


After

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


After this, you can use {PORTAL_IMG}

:mricy:

Subject: Re: insert images on .cfg
thank you very much you are great =)


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0926s (PHP: 19% SQL: 81%)
SQL queries: 10 - Debug Off - GZIP Enabled