Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
Does anyone knows were the location of the forum_nor_ar_read.gif in prosilver_ip is please?
I want to change the images to png and set the size.
 



 
batmanSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
They're in templates/default/default.cfg
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
Hya mate, yeh I did look in there but it doesn't show the file format of the images i.e. gif so I can change them to png?

Code: [Download] [Hide] [Select]
// Forums icons
/*
$forums_images_names = array('forum_nor_read', 'forum_nor_unread', 'forum_nor_locked_read', 'forum_nor_locked_unread', 'forum_sub_read', 'forum_sub_unread', 'forum_sub_locked_read', 'forum_sub_locked_unread', 'forum_link', 'forum_nor_ar', 'forum_sub_ar');
$forums_images = array('forum_nor_read', 'forum_nor_unread', 'forum_nor_locked_read', 'forum_nor_locked_read', 'forum_sub_read', 'forum_sub_unread', 'forum_nor_locked_read', 'forum_nor_locked_read', 'forum_link', 'forum_nor_ar_read', 'forum_sub_ar_read');
for ($l = 0; $l < count($forums_images_names); $l++)
{
    $images[$forums_images_names[$l]] = $current_template_buttons . $forums_images[$l] . '.' . $images_extension . $img_fade;
}
unset($forums_images_names);
unset($forums_images);
*/
$images['forum_nor_read'] = $current_template_buttons . 'forum_nor_read.' . $images_extension . $img_fade;
$images['forum_nor_unread'] = $current_template_buttons . 'forum_nor_unread.' . $images_extension . $img_fade;
$images['forum_nor_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_nor_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_sub_read'] = $current_template_buttons . 'forum_sub_read.' . $images_extension . $img_fade;
$images['forum_sub_unread'] = $current_template_buttons . 'forum_sub_unread.' . $images_extension . $img_fade;
$images['forum_sub_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_sub_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_link'] = $current_template_buttons . 'forum_link.' . $images_extension . $img_fade;
$images['forum_nor_ar'] = $current_template_buttons . 'forum_nor_ar_read.' . $images_extension . $img_fade;
$images['forum_sub_ar'] = $current_template_buttons . 'forum_sub_ar_read.' . $images_extension . $img_fade;

 



 
batmanSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
Example:

Code: [Download] [Hide] [Select]
Change this:
$images['forum_nor_unread'] = $current_template_buttons . 'forum_nor_unread.' . $images_extension . $img_fade;

To:
$images['forum_nor_unread'] = $current_template_buttons . 'forum_nor_unread.gif' . $img_fade;


But that will require all of your forum_nor_unread buttons for every theme to be .gif  

Better try this:

Open prosilver_ip/prosilver_ip.cfg

Find:

include(IP_ROOT_PATH . 'templates/default/default.cfg');

After ADD:

Code: [Download] [Hide] [Select]
$images['forum_nor_read'] = $current_template_buttons . 'forum_nor_read.' . $images_extension . $img_fade;
$images['forum_nor_unread'] = $current_template_buttons . 'forum_nor_unread.' . $images_extension . $img_fade;
$images['forum_nor_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_nor_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_sub_read'] = $current_template_buttons . 'forum_sub_read.' . $images_extension . $img_fade;
$images['forum_sub_unread'] = $current_template_buttons . 'forum_sub_unread.' . $images_extension . $img_fade;
$images['forum_sub_locked_read'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_sub_locked_unread'] = $current_template_buttons . 'forum_nor_locked_read.' . $images_extension . $img_fade;
$images['forum_link'] = $current_template_buttons . 'forum_link.' . $images_extension . $img_fade;
$images['forum_nor_ar'] = $current_template_buttons . 'forum_nor_ar_read.' . $images_extension . $img_fade;
$images['forum_sub_ar'] = $current_template_buttons . 'forum_sub_ar_read.' . $images_extension . $img_fade;


And change them there!  

Also in prosilver_ip.cfg is this.

Code: [Download] [Hide] [Select]
$buttons_extension = in_array($color, $png_buttons_colors) ? 'png' : 'gif';


Try swapping 'png' : 'gif' to 'gif' : 'png' so that you possibly don't have to edit the strings.

But you will still need to copy the $images* that you are changing as above etc to the prosilver_ip.cfg

It's also obvious that IP templates don't use image size - so if you want to force image sizes - add them to the above strings.

Great stuff - nested templates - PIGS A***!
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
Ill leave it LOL, I'm used to using Integramod and thought it had the same kind of setup.
The image size isn't a problem as you say no size values are set, I just find PNG images far better for transparent images and wanted to make my own.

Thanks for the help  
 



 
batmanSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location 
 
Aw Shucks!

Didn't mean to scare you off from doing it - -  

Gif's are better anyway because they load a lot faster, and IE doesn't have a problem caching them like it does with .png.

 
 



 
mortSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron