The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forum Images next to the Description for every Forum Details »» | |||||||||||||||||||||||||||
Forum Images next to the Description for every Forum
Developer Last Online: Nov 2022
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']"> <div class="smallfont"> <img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /> $forum[description] </div> </if> Code:
/* Forum Images next to the Description for every Forum */ .ForumImages { float: right; margin-right: 8px; margin-top: 2px; } Code:
/* Forum Images next to the Description for every Forum */ .ForumImages { float: left; margin-right: 8px; margin-top: 2px; } 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. Show Your Support
|
Comments |
#52
|
|||
|
|||
:erm:
Thanks! *clicks on install* This has MADE my forum. :up: |
#53
|
||||
|
||||
You're welcome
Glad you like it |
#54
|
|||
|
|||
I have this so:
clear.gif (= 1 Pixel) => .../images/statusicon array(X,Y,Z) => X,Y,Z = ForenID in Template forumhome_forumbit_level2_post Code:
<if condition="$show['forumdescription']"> <div class="smallfont"> <if condition="in_array($forum['forumid'], array(X,Y,Z))"> <img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt="" class="ForumImages" /> $forum[description] <else /><img src="$stylevar[imgdir_statusicon]/clear.gif" alt="" class="ForumImages" /> </if> </div> </if> |
#55
|
|||
|
|||
Does this work with subforums as well?
|
#56
|
|||
|
|||
does this work with 3.7?
|
#57
|
||||
|
||||
Looks very interesting. I wanna try this today. I'll let you know.
Thank you! |
#58
|
||||
|
||||
Why am I getting this spacing issue with the forum description?
http://img.photobucket.com/albums/v3...66/spacing.jpg Yes, for that vid section we did alter our forumhome template, but it shouldn't be affecting this add on. What I don't understand is why I have a 2 to 5 pixel space for the forum description, instead of both the forum title and forum description being pushed over by the image. I added a png to test this and it put it below the forum title, and to the left of the forum description. It should be to the left of both. Would love to know how this is messing up. Therein lies my problem, I found out it was your margin that was messing it up, fixed that by switching it to 0, but it's still below the forum title, and I'm sure I and many others have or want it to be of the left of the title, help please. EDIT Part 2: coder found it, will apply relevant code tomorrow for everyone. |
#59
|
||||
|
||||
Ok here is the deal.
Reeve of Shinra who posted probably a year ago when this was originally released was absolutely right about the placement of the code. If we put the code where you suggest, of which you have done on several of your boards patientfragen and the other one, you will have extra dead space in the Description boxes because its lining up with the Description Text and Not the Forum Title. If you have it line up with the Forum Title it will look uniform and fit perfectly without the dead space. Dependant on the image size yes, but more than likely if you have similar length forum descriptions you can find an image size to work properly. Earlier in this thread someone mentioned how to get it next to the Forum Title I noticed just now, but the screenshot they posted confused me, since it shows them as Category Icons and Not Forum Description Images which is what this is. But yeah to repeat: If you put: Code:
<img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> Code:
<img src="$stylevar[imgdir_statusicon]/$forumid.png" alt="" class="ForumImages" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> The fact is with most boards, if you want to use this and want it to look good you'll also want to keep your forum descriptions of similar length. As even though you can get this next to the title, if your description is too long the image will be dwarfed by the text. I wouldn't suggest using different image sizes based upon different description length, I would make the descriptions of similar length. I even noticed it on my board now that certain descriptions aren't long enough and there is a small amount of space underneath them. So I'll probably make them a bit longer tomorrow so the space is evened out. So this is what I did. For the Image Size I actually found our longest forum description which was typically 2 lines of Description. I screenshotted the forum, then cropped a description section to see the pixel dimension showing. It was something like 70 pixels, I then went 10 less than that, or 60 for my image size. Then applied the relevant code shown in my post here, modifying the add-on's as explained in this post, and applied the additional css, uploaded all the images. As you can see in the example of checking out our forum on any style, it turned out pretty well. If you want to view it, do it fast though because we're not for sure if we are going to keep them, the discussion has begun on that. They honestly feel a bit gimmicky to me. I'd almost preferred them in the Category Section which I know I can do, indifference to the Forum Description but I don't want to lose our custom icons of new post, no new post, etc. Check it out: http://www.legionofangels.net/forum/ Screenshot I guess since I don't know if we'll use them in the future: |
#60
|
||||
|
||||
Hi
Your version is a possibility but to not be able to use a description as long as I want would not be an option for me. The other thing is, that I want to have the images on the right. If I wanted them on the left, I would have used Simple Category Icons and replaced the standard vBulletin Forum Icons with the new images. StarBuG |
#61
|
||||
|
||||
Hello you,
I remember you from that other site where you posted your VBseo report and we agreed against the others that it was a good system, You might not remember me. Yeah that is the case about forum descriptions. I just wanted to point out that on most boards they can be shortened or lengthened to work with the image size. If in your case they can't, it's most ideal if they just could be centered in that area. Which probably wouldn't be that hard. I also concur, I might switch them to the right again to look at them but in both cases I either have post icons show up on some threads, or on the left I have the post old new statusicons, so it's like it looks good, but its kind of cluttered in either case. If we keep it but don't do all the styles we have, I'm gonna put it on default in the Category Icon locations or on the Right most likely, we'll see. PS: Even if some of your descriptions are longer, on your patientfragen site, if you put the code where we put it, 6 of your 11 forums will lose the dead space in the boxes on those boards. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|