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)

Snakey 08-01-2006 06:11 PM

Quote:

Originally Posted by HappyPike
Someone asked me to post my version of the IMG with align code, so here it is:

......

Some of you may not like to use the "align" within <IMG>, but I don't have problem with it myself. :)

I've modified it a bit so it makes use of css (w/o align-attribute) and made it xhtml compliant:

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)

Renmiri 08-01-2006 06:19 PM

Quote:

Originally Posted by Snakey
I've modified it a bit so it makes use of css (w/o align-attribute) and made it xhtml compliant:...

Wow!

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

project-Buckfas 08-02-2006 01:39 PM

I've wanted this for a while. I hit install so I can do it when I go home ;)

blue6995 08-02-2006 02:31 PM

Quote:

Originally Posted by renmiri
I also did a "thumbnail" one, that always dislays a 150px wide version of the picture with a link to the original one

I have tried this twice, changing the image link to my own, but all I get is the original image not a thumbnail!

Any ideas why?

Renmiri 08-02-2006 02:41 PM

Quote:

Originally Posted by blue6995
I have tried this twice, changing the image link to my own, but all I get is the original image not a thumbnail!

Any ideas why?

My mistake!

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>

category 08-31-2006 04:16 AM

does it work for 3.6.0

HappyPike 08-31-2006 05:16 AM

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.

category 08-31-2006 06:33 PM

doest work for me it doesnt display the image

zooki 08-31-2006 06:56 PM

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

Renmiri 08-31-2006 11:39 PM

Quote:

Originally Posted by category
doest work for me it doesnt display the image

Can you recheck the BBCode ? It should work even for 3.6


All times are GMT. The time now is 02:55 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.01186 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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