[SOLVED] altering size of "folder_new" images

Support for IntegraMOD 141

Moderator: Integra Moderator

[SOLVED] altering size of "folder_new" images

PostAuthor: Karl-D » Fri Jul 06, 2007 12:23 pm

Hya although I like the round folder new image etc. I want to create some slightly different ones squire with the corners knocked off, problem I am having is I donà ¢Ã¢â€š ¬Ã¢â€ž ¢t know were the image sizes are located to be altered.
On a standard PHPBB they are located within the index_body.tpl file but were are they located on integramod?

Basicly I want them the same width as my link images but squire

[flash=,:129z6qoh]http://www.british-birds-in-aviculture.info/bbia-forums/templates/fisubice/images//link_folder.gif[/flash:129z6qoh]
Last edited by Karl-D on Sun Jul 08, 2007 1:59 pm, edited 1 time in total.
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 6:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: altering size of "folder_new" images

PostAuthor: Helter » Fri Jul 06, 2007 3:10 pm

image sizes are located in template name.cfg.

you will notice the code at the top of the page

Code: Select all
 $current_template_images = $current_template_path . "/images";$topic_iw = '59';$topic_ih = '18';$post_iw = '91';$post_ih = '24';$icon_iw = '16';$icon_ih = '18';$topic_icon_iw = '20';$topic_icon_ih = '20';$folder_iw = '22';$folder_ih = '22';$folderbig_iw = '25';$folderbig_ih = '25';$catfolderbig_iw = '32';$catfolderbig_ih = '32';  


this code will differ from template to template

you can find which of these is controling the size of folder_new.gif by doing a search for it. In Integra2, you will find

Code: Select all
 $images['forum_new'] = "$current_template_images/folder_new.gif" width="$folderbig_iw" height="$folderbig_ih" class="imgfolder";  


this means you will edit the size of
Code: Select all
 $folderbig_iw = '25';$folderbig_ih = '25';  


be aware that this will change the size of all the images controled by this tag. If you need to change just one image
you can create a new tag for it like this (see the bottom)

Code: Select all
 $current_template_images = $current_template_path . "/images";$topic_iw = '59';$topic_ih = '18';$post_iw = '91';$post_ih = '24';$icon_iw = '16';$icon_ih = '18';$topic_icon_iw = '20';$topic_icon_ih = '20';$folder_iw = '22';$folder_ih = '22';$folderbig_iw = '25';$folderbig_ih = '25';$catfolderbig_iw = '32';$catfolderbig_ih = '32';$newtag_iw = '100';$newtag_ih = '25';  


then for your button, use

Code: Select all
 $images['forum_new'] = "$current_template_images/folder_new.gif" width="$newtag_iw" height="$newtag_ih" class="imgfolder";  


all the images in this file, must have this size tag, or Internet explorer, will display them as little red x's
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: altering size of "folder_new" images

PostAuthor: Karl-D » Sun Jul 08, 2007 7:34 am

Hya HelterSkelter
Its just the images on the index.php i.e. new post no new posts locked posts etc.
At least I know were the size values are now so can have a play around to see what exactly is effected by altering them to 30 x 30.

Thanks fella much appreciated <img>
Last edited by Karl-D on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 6:23 am
Cash on hand: 0.00
Location: Cornwall UK

Re: altering size of "folder_new" images

PostAuthor: Karl-D » Sun Jul 08, 2007 1:18 pm

Thanks HelterSkelter finally got them sorted, I also had to alter the ones in viewforum.php which made it perfect as all are now all the same size and themed.
Below are just a couple of examples

[flash=,:19ti27l0]http://www.british-birds-in-aviculture.info/bbia-forums/templates/fisubice/images//folder_new.gif[/flash:19ti27l0][flash=,:19ti27l0]http://www.british-birds-in-aviculture.info/bbia-forums/templates/fisubice/images//folder.gif[/flash:19ti27l0]
Last edited by Karl-D on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Karl-D
Integra Supporter
Integra Supporter
 
Posts: 104
Likes: 0 post
Liked in: 0 post
Joined: Tue May 30, 2006 6:23 am
Cash on hand: 0.00
Location: Cornwall UK


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]