MyBB Community Forums

Full Version: Can't find where to change image....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ok, on my template I want to change on.gif, off.gif, and so on. Those are the buttons that show if a forum has new posts:

[Image: on.gif] [Image: off.gif]

Which template do I have to edit to change them? =/
I'm not sure which template to change for those but you can try just saving over them with the same file name unless you need them. Not the best way to do it but was just easier for me.
Actually, that's usually what I do. But my new forums have a lot of templates, and we want specific images for each one.
changing the images is done by replacing them in ./images!

however their code is the forumbit templates > forumbit_depth2_forum

regards
<tr>
<td class="$bgcolor" align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
<td class="$bgcolor" valign="top">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong><br /><div class="smalltext">$forum[description]$modlist$subforums</div>
</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="top" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="top" align="right" nowrap="nowrap">$lastpost</td>
</tr>

I don't see it =/
Would it be possible to create a new directory for your images then change to that directory for your theme. Then upload images with the same name as the old directory into the new directory?

Just a thought haven't tried it.
You can't find it :s

that's the code for the template and for sure it is here
excatly
 <td class="$bgcolor" align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>

again u can do nothing to change the images from here, u will have to replace the images found in the ./images

regards
zaher1988 Wrote:You can't find it :s

that's the code for the template and for sure it is here
excatly
 <td class="$bgcolor" align="center" valign="top"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>

again u can do nothing to change the images from here, u will have to replace the images found in the ./images

regards
Make sure you don't replace the $folder though. The files still all have to be named "on" "off" and "offlock." You should also change the same code in the forumbit_depth1_forum, as that is the one for subforums, I believe.

Additionally, if you want the "key" at the bottom of the index page to change, you have to edit the index template, this code being the code you edit:
<td><img src="$theme[imgdir]/on.gif" alt="$lang->new_posts" /></td><td class="trow"><span class="smalltext">$lang->new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/off.gif" alt="$lang->no_new_posts" /></td><td class="trow"><span class="smalltext">$lang->no_new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/offlock.gif" alt="$lang->forum_locked" /></td>
Or, to make it all easier, you could just create a new folder in your images directory, upload all of the images in the images directory (except for the subfolders EXCEPT for toplinks), and then just overwrite the images that you want to change in there. That way you still have the default set.
Ok, fixed. Editing code > new image directory ;P
i prefer new image directory, since you will need one when you one you skins to have different button sets, icons and other stuff.
Pages: 1 2