MyBB Codes
Collapse Images - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Babjusi's Previous Forum General Stuff (/forumdisplay.php?fid=42)
+--- Forum: General Support (/forumdisplay.php?fid=46)
+--- Thread: Collapse Images (/showthread.php?tid=1116)


Collapse Images - skiilz - 12-06-2009 01:29 PM

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.


RE: Collapse Images - babjusi - 12-06-2009 01:32 PM

(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>



RE: Collapse Images - skiilz - 12-06-2009 02:09 PM

How do I set my images there?


RE: Collapse Images - babjusi - 12-06-2009 02:51 PM

(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.


RE: Collapse Images - skiilz - 12-06-2009 03:29 PM

Thank you.


RE: Collapse Images - babjusi - 12-06-2009 03:30 PM

You are most welcome. Glad to have been of help Smile


RE: Collapse Images - skiilz - 12-06-2009 03:42 PM

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.


RE: Collapse Images - babjusi - 12-06-2009 05:06 PM

(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


RE: Collapse Images - skiilz - 12-06-2009 05:37 PM

Yes. Everything is fine.
The image must be .gif.
Thank you.


RE: Collapse Images - babjusi - 12-06-2009 05:42 PM

You are most welcome. Glad to have been of help Smile


RE: Collapse Images - skiilz - 12-06-2009 07:28 PM

I just added the .gif after the image and it worked.