In Prosilver_ip, Forum_nor_ar_read.gif Images Location »  Show posts from    to     

Icy Phoenix


Old Support Topics - In Prosilver_ip, Forum_nor_ar_read.gif Images Location



batman [ Tue 15 Feb, 2011 10:49 ]
Post subject: 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.


mort [ Tue 15 Feb, 2011 13:35 ]
Post subject: Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location
They're in templates/default/default.cfg


batman [ Tue 15 Feb, 2011 18:56 ]
Post subject: 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: [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;


mort [ Tue 15 Feb, 2011 23:17 ]
Post subject: Re: In Prosilver_ip, Forum_nor_ar_read.gif Images Location
Example:

Code: [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: [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: [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***!


batman [ Wed 16 Feb, 2011 02:48 ]
Post subject: 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


mort [ Wed 16 Feb, 2011 07:33 ]
Post subject: 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.





Powered by Icy Phoenix