MyBB Codes

Full Version: Collapse Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Which template I have to edit to change the collapse and collapse_collapsed image format to .png?
I searched and didn't find it...

Thank you.
(12-06-2009 01:29 PM)Light33 Wrote: [ -> ]Which template I have to edit to change the collapse and collapse_collapsed image format to .png?
I searched and didn't find it...

Thank you.

Do you mean the ones at the forum display on front page? If so, the template you need is Forum Bit Templates-forumbit_depth1_cat. And the specific code:

<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
How do I set my images there?
(12-06-2009 02:09 PM)Light33 Wrote: [ -> ]How do I set my images there?

That was where that part is specified. But you want to change the image extension for both actions, expanded and collapsed, right? For that, find the functions.forumlist.php file in the /inc/ directory and find the following code:

PHP Code:[Highlight]
$expcolimage "collapse_collapsed.gif"
And replace the collapse_collapsed.gif with your own image name and extension which should be also uploaded to your theme''s /image/ directory.

To change it for the expand version, find the following code:

PHP Code:[Highlight]
$expcolimage "collapse.gif"

And change the collapse.gif with your own image name and extension which should be also uploaded to your theme''s /image/ directory.

Let me know how it will go.
Thank you.
You are most welcome. Glad to have been of help Smile
Hey have a look there:
http://computerandstuff.co.cc/forums/index.php

The collapse_collapsed image didn't show...
And the Board Statistics images didn't appear too.
(12-06-2009 03:42 PM)Light33 Wrote: [ -> ]Hey have a look there:
http://computerandstuff.co.cc/forums/index.php

The collapse_collapsed image didn't show...
And the Board Statistics images didn't appear too.

I see from your thread at mybb that everything is fine. Can you confirm it please?

http://community.mybboard.net/thread-60838.html
Yes. Everything is fine.
The image must be .gif.
Thank you.
You are most welcome. Glad to have been of help Smile
Pages: 1 2
Reference URL's