vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   A better IMG tag (https://vborg.vbsupport.ru/showthread.php?t=122660)

Renmiri 07-30-2006 10:00 PM

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>
5 - For "Example" enter this:

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
6 - Check yes on "use {option}"

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

rmxs 07-31-2006 07:08 PM

thanks i use it in future :)

bashy 07-31-2006 07:28 PM

Can you pleases explain what to do, and also add the instructions to a notepad file? :)

tazB.ca 07-31-2006 07:50 PM

i dont understand what this does

Mr Chad 07-31-2006 08:24 PM

Quote:

Originally Posted by tazB.ca
i dont understand what this does

look at the picture...

it lets you wrap text next to the image. (instead of being confined to one line)

HappyPike 08-01-2006 12:07 AM

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/

bandoftheweek 08-01-2006 12:39 AM

Awesome mod seriously, I needed this for my site www.bandoftheweek.com - I shall install it in a while.

murrtex 08-01-2006 10:24 AM

I did it but.it mixed with my signature

https://vborg.vbsupport.ru/

Renmiri 08-01-2006 10:36 AM

Quote:

Originally Posted by murrtex
I did it but.it mixed with my signature

http://img207.imageshack.us/img207/9...age1fg8.th.jpg

Yes it does. Any text around the image gets mixed

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)

HappyPike 08-01-2006 02:51 PM

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. :)


All times are GMT. The time now is 07:29 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
  • Page Generation 0.01091 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete