![]() |
A better IMG tag
You know all that white space by the side of every image ever posted on a forum using the standard IMG tag ? I happen to hate it. I want my images to blend in with the text.
So I did my own BBCODE for it: 1 - Go to the Admin panel and select "Add Custom BBCode" 2 - For title enter "Float Image on text" or something like it, same for description 3 - for tag enter xFLOAT 4 - for "Replacement" enter the text below Code:
<a href="{param}"><img alt="" border="0" src="{param}" style="margin: 0px 10px 10px 0px; float: {option};"/></a> Code:
[xFLOAT=left]http://upload.wikimedia.org/wikipedia/en/thumb/3/3e/Magic_Pot_FFX.jpg/65px-Magic_Pot_FFX.jpg[/xFLOAT]blah, blah, blah, yada, yada, yakety yak 7 - optionally, add an icon path to have it come up on your posting box tada! Here it is at work! http://forums.ffproject.net/showthread.php?t=747 http://ffproject.net/forumwiki/image...0px-FLOAT2.jpg |
thanks i use it in future :)
|
Can you pleases explain what to do, and also add the instructions to a notepad file? :)
|
i dont understand what this does
|
Quote:
it lets you wrap text next to the image. (instead of being confined to one line) |
I made a tag like that recently too. However, I simply use the same IMG tag name, but with align option.
To align an image to the right, people would use https://vborg.vbsupport.ru/ |
Awesome mod seriously, I needed this for my site www.bandoftheweek.com - I shall install it in a while.
|
|
Quote:
Just add some empty lines after the image to push your signature down far enough and it will be back to it's normal place (or add a couple of <br> to the beggining of your sig) |
Someone asked me to post my version of the IMG with align code, so here it is:
Title: IMG with align option Tag: IMG Replacement: <img src="{param}" align="{option}" border="0" hspace="5" alt="Image"> Example: https://vborg.vbsupport.ru/This image should align to the right of these texts. Description: This image tag allows align option. The align option can be TOP, BOTTOM, MIDDLE, LEFT, or RIGHT. Use {option}: Yes Some of you may not like to use the "align" within <IMG>, but I don't have problem with it myself. :) |
Quote:
Title: IMG with align option Tag: IMG Replacement: <img src="{param}" style="margin:0px 5px 0px 5px; border-width: 0px; float:{option};" alt="Image" /> Example: [img=right]https://vborg.vbsupport.ru/images/smoothblue/buttons/reply.gif[/img]This image should align to the right of these texts. Description: This image tag allows align option. The align option can be LEFT or RIGHT. Use {option}: Yes For replacement, you can also use it without margin:0px 5px 0px 5px; (which replaces hspace) or without border-width: 0px; (replaces border) |
Quote:
Great suggestions guys, thanks! :) I also did a "thumbnail" one, that always dislays a 150px wide version of the picture with a link to the original one. Title: Float image with thumbnail Tag: FLOAT (or IMG if you prefer) Replacement: (now fixed 8/2/06) <a href="{param}"><img alt="" border="0" src="{param}" style="width:150px; margin: 0px 10px 10px 0px; float: {option};"/></a> Example: [float=right]https://vborg.vbsupport.ru/images/smoothblue/buttons/reply.gif[/float]This image should be 150 px wide, should align to the right of these texts and should link to the original full sized image Description: This image tag allows align option. The align option can be LEFT or RIGHT. Use {option}: Yes |
I've wanted this for a while. I hit install so I can do it when I go home ;)
|
Quote:
Any ideas why? |
Quote:
Where it says width="150px" it should say width:"150px" Here's the correct code Code:
<a href="{param}"><img alt="" border="0" src="{param}" style="width:150px; margin: 0px 10px 10px 0px; float: {option};"/></a> |
does it work for 3.6.0
|
Yes, it does. These BBCodes should work for any v3.x of vBulletin.
BTW, a small downside is, if you have images disabled in sigs, people would be able to bypass it using these custom image tags. The disable images in sigs rule only affects the official [IMG] tag. |
doest work for me it doesnt display the image
|
Hi how do you get it to work with Dynamic images?
Here is one: http://video.google.com/ThumbnailSer...8S-h9V4WM5xhPc If you can add dynamic images it wud be cool :) thanks |
Quote:
|
Quote:
https://vborg.vbsupport.ru/showthread.php?t=106239 |
Quote:
|
Quote:
When I upgrade my forums to 3.6 I'll post an update, ok ? |
Quote:
|
Quote:
|
I'm not getting the image either. :confused:
|
Quote:
3.5.4 should be working.... |
I can not get this to work either. I posted the code exactly like you said and when I post an image it post like this. It does not put the [XFLOAT=left] in the message like it should instead it looks like this.
[XFLOAT="http://www.mysite.net/gallery/files/2/9/3/IMAG0048_1_thumb.jpg"][/XFLOAT] |
Dah, I figured out what I was doing wrong. When it ask for the prmpt i have to type either left, center. or right. My bust.
|
Glad you found the problem :D
|
I love this but for some reason when I try to enter down, it does not create blank white space to separate the sig text.
If I enter down and type (which people will normally do I suppose) it works fine. But not if I don't but text in. Is this an option setting? Show blank spaces or something. Great modification though, I really needed this and it works well on 3.6 |
Yes, it doesn't work so well if your image is the last thing on the page, it makes your sig look weird. I usually avoid putting images at the bottom of my post or use the regular img tag for short posts.
Thanks for the comments :) |
Excellent...have been wondering how to do this for a while now. Can anyone devise a way to attach a gray caption box to the bottom and add text to it to make sense of the picture for the reader?
|
Anybody? ;-)
|
I do have a similar one for description plus thumbnail but no gray box:
[IMGG=world map]MAP3.jpg[/IMGG] will get a tumbnail of MAP3.jpg with a caption that says "World Map" Follow the instructions above but use IMGG instead of xFLOAT and then use this code instead Code:
<a href="{param}"><img src="{param}" style="width:150px; margin: 0px 10px 10px 0px;"/></a> {option} |
Quote:
I've played around a bit, but I can't get it to format quite the way I want. Can anyone show an example of how we could do an image, complete with box/border and caption like the "A yawning cat" found here: http://en.wikipedia.org/wiki/Cat_communication Many thanks to anyone that could help with this. |
Great BBCode Renmiri, but is there a way to for the signature to the bottom without having to enter empty space if there's not enough text to wrap with the image?
|
I'll post here when I find a way to fix signatures Junkie.
Same for your box Big Island. Keep an eye on this thread :D |
Good news!!!
I got the thumbnail code here AND the solution for the signatures Big Island's Wiki like thumbnails First create the new Thumbnail code: Follow the instructions above to add a bbcode, in my case TMB1, flag the option thingy to yes and use the replacement below Code:
<table style="border: 1px solid rgb(0, 0, 0); background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); font-size: 11px;" cellpadding="0" cellspacing="0"> Quote:
you can play around with the background color of the text, right now it is rgb(0,0,0) which is black, with rgb(255,255,255) for the font, which is white. The border can be made thicker too, right now I put "border: 1px" but you can increase it to 3px to make it thicker. This option does require that the user enters a description for each image. |
Now here is the fix for the signature... I's a half fix because the posts' font style gets weird and it is not very intuitive to use, from a user's point ov view but it works...
Junker's fix for signatures First add the new thumbnail code: Follow the instructions above to add a bbcode, in my case TMB2, flag the option thingy to yes and use the replacement below Code:
<table align="left" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" align="left">{param}</td> Quote:
|
All times are GMT. The time now is 06:11 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:
|