[MOD] Image for every forum

Started by CoolMan, August 14, 2004, 09:31:59 PM

Previous topic - Next topic

CoolMan

##############################
##Mod Name: Forums' Image
##Time Required to Install: 2 mins max
##Files Included: 0
##Files to edit:
##Themes/themename/BoardIndex.template.php
##Test site: smftest.no-ip.com [nofollow]
##############################

Download version: http://smftest.no-ip.com/Mods/forum%20images.rar [nofollow]


[Open: Themes/themename/BoardIndex.template.php]

[Find]
<td colspan="4" class="catbg', $category['new'] ? '2' : '', '" height="18">';

[Replace]
<td colspan="5" class="catbg', $category['new'] ? '2' : '', '" height="18">';

[Find]
echo '<td class="windowbg" width="6%" align="center" valign="top">';

[Add Before]
<td class="windowbg" width="6%" align="center" valign="top">';
echo '<img src="', $settings['images_url'], '/boards/', $board['id'], '.gif" alt="', $txt[333], '" title="Forum Image" border="0" />';

[Close]

[Notes]
Ok, now all you have to do is to add a folder called 'boards' into the images folder of that Theme and make sure that every
img is named in this format: board'sID(the board u want it to show on, u can find that while going with ur mouse over it).gif

Example for Boards 1-3: 1.gif, 2.gif and 3.gif


For any questions just email me or reply here :)

By the way, in case im not posting in the right place please move this post to the place it should be located.

CoolMan.

CoolMan

that's sad.. nobody has anything to say  :'(

LeeH

Okay...  I'll say it!!!

Thanks for the mod?  lol.  I can't use it so I won't edit to install.  I would love to see it in action though if you had a link?

CoolMan

#3
Quote from: LeeH on August 15, 2004, 11:39:03 AM
Okay... I'll say it!!!

Thanks for the mod? lol. I can't use it so I won't edit to install. I would love to see it in action though if you had a link?

Yea i got a test site running that.. haven't really made any real forums or real images for the forums just added a test forum and changed some stuff :)

As u make bigger imgs, the image box will expand. its full size without expanding is 55 x 42 (width x height).

address of my test site: http://smftest.no-ip.com/ [nofollow] (in case its not working: http://designs.globalgamingnetwork.net/SMF/ [nofollow])

btw, any ideas for mods i can make? just got a bunch of days free without anything to do so.. ;)

bloc

Isn't better to have one image for each board - that has 2 or 3 states? Functions as both a image for the board and "new messages" indicator?

LeeH

I just checked it out.  You're right, it's in "test mode" right now, but I can see that it works well! Don't feel bad, my site is in test mode until I finish hacking it up the way I want it.

Nice job.

Now about making another mod?

I have an idea for you that is probably right up your alley.  I don't know if it is already around or not, I have been looking for it.

How about a mod that will state something like this :Welcome, you are logged in as "Username".  and then show their avatar? Or if a guest, show the generic log in or register phrase.

This would be helpful for me because I of course have several usernames and I can tell at a glance who the heck I am at the moment.  I know.....  I can tell anyway.  But some of the other BBS systems have it and I think it is a nice touch.

Of course it would have to know if it is a registered user or a guest, and either show the avatar or a generic pic for the guest.

CoolMan

Sure thing buddy, just let me get something to drink/eat and i'll work on that idea of yours :) thanks.

About the Forums Image mod, the idea is mostly used for boards that have stuff like Gamers, Apps, Music and all sort of things. I've been running one for about 5 months and noticed that 70% of the people said that they love to see the images, figured that if people like that in phpBB why not in SMF?
I can make something that will be the 'New Posts' and 'Forum Image' together, but i think it makes it kinda weird.

CoolMan.

LeeH

You've got to be kidding!!?  You ment what you said about wanting to build something!  lol

Myself, I think that idea of mine would look good in one of the left table cells (like you have for your other mod) in the lower section.

CoolMan

Here i just finished it, gonna post it in a new one.

Advertisement: