MyBB Community Forums

Full Version: The code of collapse forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'm wondering where's the code where I can edit the collapse forum images?
I saw the code for collapse but not one for 'un-collapse'.

May I get any help please ladies and gentlemen?
Also, if you can give me the code where I can edit both of the images, that would be even better Smile
You have to edit the XML document (your theme's file), just ctrl + f and look for collapse.
Read this thread, its all explained there:

http://community.mybb.com/thread-123693.html
Thank you Smile
Bump, still doesn't work :s
I can see in many themes that they using custom collapse images, although I don't know what line (global.css) or template to edit.
Help please? Smile
those images should be in theme's images folder. they can be replaced. (collapse.gif & collapse_collapsed.gif)

forumbit_depth1_cat template uses below code (default theme) for both expansion and collapse.
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>

below css style is for expcolimage class in default theme's global.css
.expcolimage {
float: right;
width: auto;
vertical-align: middle;
margin-top: 3px;
I want to be able to use .png images, not .gif's.
Thanks for your reply anyways. Smile
^ you can rename png files as gif files. or see references to $expcolimage
When renaming it, it's not working. Also, I do not understand what I have to do with your link.

Thanks!
^ collapse.gif & collapse_collapsed.gif are hard coded in MyBB's php files (eg. functions_forumlist.php)
if you want to change to png then you have to modify those php files along with template edits (if any)
Pages: 1 2