Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Images with text wrap Details »»
Images with text wrap
Version: 1.0.1, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.7.x Rating:
Released: 03-17-2008 Last Update: 03-17-2008 Installs: 74
 
No support by the author.

Images with text wrap
Version 1.0.1
(By Boofo)

What does this do?
This will allow you to wrap test around images on either the left side or the right side. You can also define the background color you want for the image.

Installation:
Custom BB Codes to make: 2
Files to Upload: 2

Installation Instructions:
Step 1: Upload the 2 images to the images/misc folder.

Step 2: Go to Admin CP -> Custom BB Codes -> Add New BB Code
Enter the following information for each BB Code.

Done!
Enjoy!

NOTE: If you do not click install, you do not need support.

Show Your Support

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

Comments
  #32  
Old 03-20-2008, 11:44 PM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one! This will surely help to beautify my articles section.

I tested it on my test board which is on vb 3.6.8 PL2 and it works like a charm except for the text wrapping which I believed is currently only available in vb 3.7.x.

Two more things that I have noticed is that if the text content is too short to cover the entire height of the image, our signature gets aligned to the left/right too. Does this happen with vb 3.7.x? It will be great if the signature can remain at the bottom.

Also, if the text content is too short to cover the entire height of the image, the next image following the text will also be aligned to the left/right (see sample below)



Is there a way that we can make it such that it become like this (see below)?

Reply With Quote
  #33  
Old 03-21-2008, 01:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to do a link break at the end for the sig to stay at the bottom, I think. I think a line break would fix the above issue too, although I haven't played with that yet. On posts I use the tag, I disable my sig for a more professional look.

You said something about this being in 3.7? The text wrapping part should work on any version.
Reply With Quote
  #34  
Old 03-21-2008, 03:03 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
You need to do a link break at the end for the sig to stay at the bottom, I think. I think a line break would fix the above issue too, although I haven't played with that yet. On posts I use the tag, I disable my sig for a more professional look.

You said something about this being in 3.7? The text wrapping part should work on any version.
How do I go about doing a link/line break? (sorry..... really have limited knowledge on all this)

I am referring to the following "code" that you have which I believed only exist in 3.7.x which is the main reason why I am not seeing this at the moment. I am fine with that at the moment but will sure give it a go when I upgrade to vb 3.7.

Disable Word Wrapping Within This BB Code: No

The text wrapping is indeed working :up: The only thing now is to figure out how to achieve the result in my second image (Which I cheated a little at the moment but that is not a good solution especially for a long article).
Reply With Quote
  #35  
Old 03-21-2008, 03:08 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By line breaks I mean hit the enter key.

I just read the description for the word wrapping line. That only works WITHIN the tags.

Don't forget the install button.
Reply With Quote
  #36  
Old 03-21-2008, 04:00 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
By line breaks I mean hit the enter key.

I just read the description for the word wrapping line. That only works WITHIN the tags.

Don't forget the install button.
I see.... haha...

But then, if let say I only have a few lines of text beside the image, I will need to perform many line breaks, which will cause quite some confusion especially for a long posting.

For example...... with the following 'codes' below, I got the results that you see in the first image that I posted above.

Quote:
[wrap="left"]First bird picture on the top left[/wrap]
Block of text left of first picture

[wrap="left"]Second bird picture on the right bottom[/wrap]Text
If I want to get the results in the second image that I have posted, my post will actually have to look like this. (which is the 'cheating' method that I am using at the moment

Quote:
[wrap="left"]First bird picture on the top left[/wrap]
Block of text left of first picture






16 lines of line breaks in between






[wrap="left"]Second bird picture on the right bottom[/wrap]Text
Reply With Quote
  #37  
Old 03-21-2008, 04:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Exactly. The way you are doing it is how it must be done when wrapping text that is smaller than the pic. Unless you use tables, there is no other way to do it.
Reply With Quote
  #38  
Old 03-21-2008, 04:24 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gosh... looks like I'm gonna have some headache now with articles spanning over a few pages and more than 20000 characters :erm:
Reply With Quote
  #39  
Old 03-21-2008, 05:38 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean? I just alternate the images like the pic in the first post when I get a long article.
Reply With Quote
  #40  
Old 03-21-2008, 06:47 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

perfect for my news section thanks
Reply With Quote
  #41  
Old 03-21-2008, 07:03 AM
ccplim ccplim is offline
 
Join Date: Feb 2005
Location: SG
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
What do you mean? I just alternate the images like the pic in the first post when I get a long article.
I usually have many images in my articles and thus need to do alot of adjustments.

Another thing that I just found out. If you resize the browser window and make it smaller, the text will get wrapped at the side and pushed down, leaving a big gap. This might cause a layout error with people using different/lower screen resolution. I need to test this out when I get back to office on Monday before I can confirm.
Reply With Quote
Reply


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 12:08 AM.


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.08002 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete