Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
VB Image Hosting BBCode Align Image Tags Details »»
VB Image Hosting BBCode Align Image Tags
Version: 1.00, by jaks jaks is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 11-07-2006 Last Update: Never Installs: 10
Template Edits
 
No support by the author.

If you use the same hacks as I am listed below then you might want to add another Couple BBCodes because using the Align left or Align right buttons found within Borg's BBCode additions will not be valid XHTML when combined with VB Image hosting. You will also have duplicate BBCode image tags which doesn't make sense. VB Image hosting makes your image link to a seperate page to view full size images. Borg's BBCode Align tag already has built in image tags so that will cause problems.

VB image Hosting
https://vborg.vbsupport.ru/showthread.php?p=1106016

Borgs' [BB Code] Pack - Signs, User, Divider, Search Tags, Float Images
https://vborg.vbsupport.ru/showthread.php?t=103257

Anyway this is now much of a hack but i figure there might be some that will not notice until it's too late and have to edit a bunch of posts to fix that problem. I have also attached 2 images you can use for new buttons or you can make your own.

Add these in AdminCP==>Custom BB Codes==>Add New BB Code
#1
Title: Align Right
Tag: AR
Replacement:
PHP Code:
<div style="float: right; padding-top: 5px; padding-bottom: 5px; padding-left: 5px;">{param}</div
Example:
PHP Code:
<div style="float: right; padding-top: 5px; padding-bottom: 5px; padding-left: 5px;">[url=http://www.yoursite.com/forums/vbimghost.php?do=displayimg&imgid=20][img]https://vborg.vbsupport.ru/[/img][/URL]</div> 
Description: Aligning image to the right from Truly Unusual Image Hosting
Use {option}: No
Button Image (Optional): http://www.yoursite.com/forums/image...Alignright.gif

--------------------------------------
#2
Title: Align Left
Tag: AL
Replacement:
PHP Code:
<div style="float: left; padding-top: 5px; padding-bottom: 5px; padding-right: 5px;">{param}</div
Example:
PHP Code:
<div style="float: left; padding-top: 5px; padding-bottom: 5px; padding-right: 5px;">[url=http://www.yoursite.com/forums/vbimghost.php?do=displayimg&imgid=20][img]https://vborg.vbsupport.ru/[/img][/URL]</div> 
Description: Aligning image to the right from Truly Unusual Image Hosting
Increase Size Decrease Size
Use {option}: No
Button Image (Optional): http://www.yoursite.com/forums/image.../Alignleft.gif

Don't care if you click Install or don't. Not planning on winning any wards with this post lol.

Smiles at Ranma2k and Borgs8472

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-08-2006, 04:05 PM
transitbus transitbus is offline
 
Join Date: Aug 2006
Location: California
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Few things:

The alignment messes with the postbit causing your signature to line up with the aligned image. Secondly the example does not render properly and having html code for this might cause issues with the formatting.
Reply With Quote
  #3  
Old 11-08-2006, 05:44 PM
jaks jaks is offline
 
Join Date: Dec 2004
Location: Toronto
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by transitbus
Few things:

The alignment messes with the postbit causing your signature to line up with the aligned image. Secondly the example does not render properly and having html code for this might cause issues with the formatting.
Thanks for your comments

1. The alignment problem is the same as it is with Borg's BB Code additions. This is only when the image is at the bottom with very little text next to it. if you have any ideas how to fix that i would love to know myself.

2. The example image doesn't render because it's set to an image at yoursite.com. Just swap it for another linking image on your site or somewhere else.

3. Not sure where you see HTML. There is only BB code used in this additions.

If anyone has a better way or even another way to do this I'm all ear. I use this and it works for me aside for the one stated bug when using an image near the bottom of the post. I use it mostly for my VBA CMPS.

My biggest concern was to have valid XHTML. Just figured other people using the same or similar hack would like it if they are lazy like me.
Reply With Quote
  #4  
Old 11-26-2008, 07:10 PM
behcet behcet is offline
 
Join Date: Apr 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tnx jaks
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07543 seconds
  • Memory Usage 2,235KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete