![]() |
Forum Images next to the Description for every Forum
What this hack does:
This hack adds an image next to every forum description for every forum you want. Installation: in Template forumhome_forumbit_level2_post find: Code:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> and replace it with: Code:
<if condition="$show['forumdescription']"> Code:
/* Forum Images next to the Description for every Forum */ Code:
/* Forum Images next to the Description for every Forum */ Now you simply need to create images called: ForumID.png for each forum you want to have an image and put it into /images/statusicon/ Example: 22.png DEMO: http://www.elternfragen.net Hope you like it StarBuG ps: As far as I can remember Andreas gave me the tip how to do it. So all credit goes to him. |
Edit:
Ok Ive had a chance to look it over and I think it has a lot of potential, but my problem with it is that it does not stay in the area as the text, rather it sits below it extending the tables vertically which makes the forum much more bulky. Heres and example of what I mean: https://vborg.vbsupport.ru/external/2007/03/5.jpg Now if there was any way to make this float right without interfering with the tables I think it would be great. I hope you are able to mix it up a bit! |
if we could perfect this, id be very interested
|
Thanks....
|
What do you mean by interfering with the table?
It does exactly what it should do. It places an image next to the forum description. If it makes your table higher then you need to resize your image. You could add the code next to the forum title to reduce a little of the hight but that's it ;) StarBuG |
Quote:
|
Quote:
What I was hoping for was something that would float right of both the description and the forum title - is that at all possible with what you've got? Right now its strictly designed for forum description which is great but for forums with small descriptions it leaves a lot of whitespace. |
Any support for this?
|
Not sure why you would need to define the CSS....I just added:
Code:
<span><img src="$stylevar[imgdir_statusicon]/$forum[forumid].gif" border="0" align="left"></span> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a> DEMO: www.palmettostaterivals.com |
Of course it is possible without css but you have more controll regarding spacing ;)
|
Thanks.. ;)
|
How do you keep from getting a red x by forums with no image?
|
Create a 1px transparent image for forums with no images ;)
|
Quote:
|
/me click install thnx
|
Thanks nice hack
|
Hi, I have installed the modification, but how can i add the image beside the description?
Where and how to do it? Pls advise. thanks |
Quote:
StarBuG |
Thank you, btw is there anyway that i can put the image, beside the title and the description?
how can i do that? thanks |
thank for thats hack
|
If you look at the video forum and picture forum I have added an icon but doesn't line up well.
http://www.treeworld.info/index.php How exactly do I line it up like this guys forum? http://forum.palmettostaterivals.com/index.php And how do I turn the icon into a link? Hey, I'm a new user and this isn't that simple ... pretty good I got this far! Quote:
|
Quote:
Code:
<tr align="center"> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span width="100"><img src="$stylevar[imgdir_statusicon]/forumimgs/$forum[forumid].gif" border="0" align="right"></span><strong>$forum[title]</strong></a> |
Quote:
-- thanks! |
Thanks for this. Quick, easy, and works great! Installed!
|
I can't seem to get this to work. I've followed the directions exaclty as followed, but the images still don't show up.
Edit: I can get a broken image, but I can't get my uploaded images to appear. |
Did you format the images as PNG?
If you try to use GIF you need to change PNG to GIF in the code |
Quote:
And to place them besides the forum titles,descriptions,place this code Code:
<img src="images/categoryicons/$forumid.gif" alt="" class="ForumImages" /><br /> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> |
nevermind, i just customized the code and made it work.
|
Quote:
thank you |
Quote:
|
Quote:
|
Quote:
|
Any way to make this work for thread discription? For example a forum for skins, each thread could have a small thumbnail of the skin
|
Then you would need to define an image for each thread.
This is a simple mod not a full blown hack ;) But sure that would be possible I think. The same way it works on index |
does anyone know how to do something very smiliar to this?
http://www.dc543.net/forum-3.html they generated thumbs for the first images posted in each thread. (the images were posted using [ img ] bbcode, not attachment.) |
Is there a way to add a picture next to each forum title?
here is of what i mean below, |
this is great but it is only working on some of my forum descriptions any ideas?
thanks |
If you use the right forumID for the graphic name then they should show up.
Check your image names. |
I have and before i uploaded the images only some forums had the red x box where they were waiting for the images
|
Did you create GIF images or PNG images?
Cause in the code they are PNG, if you use GIF change that in my code ;) |
All times are GMT. The time now is 05:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|