Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2008, 10:02 PM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Embedding images in text

Anyone know how to embed images in text? Maybe there's a mod here that facilitates this but I haven't found one.

What I mean is: using the default BB code [IMG], I get images that sit on a line of text and push everything else out of the way of the image. What I'm after is the way to have text flow around the image - like they do, for example in magazines and newspapers.

I'd be grateful if someone could point me in the right direction please.

Biggles
Reply With Quote
  #2  
Old 03-20-2008, 10:05 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Custom [img] tags that use divs and floats. This is a simple one. I think I set up the option and param correctly.

Code:
<div style="float:left"><img src="{option}" alt="{param}" /></div>
Of course, you could switch "float:left" to "float:center" or "float:right" depending on how you wanted it positioned and you must not use img as your tag.
Reply With Quote
  #3  
Old 03-20-2008, 10:18 PM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow! That was a real fast reply. Thank you, your Majesty.

Let me try to understand what you've said (sorry, King Kovifor, but I'm not a coder's bootlace). If I am typing text for a post, I simply insert the code you've posted above, placing the URL to the required image where {option} is and the alternate accompanying text where it reads {param}. Is that correct or am I still way off the mark?

Thanks again. :up:

Biggles
Reply With Quote
  #4  
Old 03-20-2008, 10:24 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biggles View Post
Wow! That was a real fast reply. Thank you, your Majesty.

Let me try to understand what you've said (sorry, King Kovifor, but I'm not a coder's bootlace). If I am typing text for a post, I simply insert the code you've posted above, placing the URL to the required image where {option} is and the alternate accompanying text where it reads {param}. Is that correct or am I still way off the mark?

Thanks again. :up:

Biggles
Sorry, way off. And I am liking the "Your majesty" remark. LOL. I haven't gotten that one before. But I understand not being a "coder's bootlace". Here is the steps that you want to go to.
  1. Enter ACP.
  2. Go into the BBCode manager.
  3. Add a new BBCode.
  4. Chose a tag name, like img2.
  5. Add the code I gave you into the replacement field.
  6. Set "Use option" to yes.
  7. Click save.

Now you will use something like [img2="link/to/image.jpg"]this is where the alt goes[/img2] for your posts.
Reply With Quote
  #5  
Old 03-20-2008, 10:37 PM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, now I follow - I think. Thank you kindly, your Royal Highness.

I will try that out on the morrow and let your Majesty know if I've got it to work.

Many thanks, King Kovifor. I am deeply grateful.

Your humble servant, Sire

Biggles
Reply With Quote
  #6  
Old 03-20-2008, 10:43 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. That is a bit overboard... lol. But I don't care... lol. Your welcome. If you need any more help, I got no life so I will be here to help!
Reply With Quote
  #7  
Old 03-20-2008, 10:54 PM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
Ok. That is a bit overboard... lol. But I don't care... lol. Your welcome. If you need any more help, I got no life so I will be here to help!
No offence meant King Kovifor. Just light-hearted camaraderie, I assure you.

Thanks very much for trying to help me. I'll have a go in the morning as I'm about to hit the hay. It's almost midnight on this side of the pond - and I need my beauty sleep. G'night for now.

Best wishes :up:

Biggles
Reply With Quote
  #8  
Old 03-21-2008, 01:53 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Night. And I have no offense was taking! I just thought it was really funny. Even the squire part.
Reply With Quote
  #9  
Old 03-21-2008, 09:49 AM
Biggles Biggles is offline
 
Join Date: Mar 2006
Location: Bristol, UK
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
Night. And I have no offense was taking! I just thought it was really funny. Even the squire part.
Thank goodness for that, King K

Communications are often misunderstood in this medium, I find. Especially humour, or attempts to be humorous. I have a very dry humour that sometimes gets me into unwanted trouble.

I am going to try your suggestion shortly. I'll get back to you on it. Maybe we should set up a section for new BB Code for those of us who aren't good with coding.

Regards :up:

Biggles

--------------- Added [DATE]1206100811[/DATE] at [TIME]1206100811[/TIME] ---------------

Hello again all

I've managed to make this work for me, with grateful thanks to my friend and yours, King Kovifor.

However, it didn't quite work out until I fiddled with the code above just a little.

This is the final code that worked for me:

Code:
<div style="float:left"><img src="{option}" alt="{param}"></div>
As you can see, I removed just the space and the forward slash after {param}" and then everything seemed fine. Oh, and for some reason I couldn't get this type of code to work using 'float:center' but it worked fine for 'float:right'.

Thanks a million King Kovifor. You're a star! :up:

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

There is no 'float:center'.
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 05:47 AM.


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.04468 seconds
  • Memory Usage 2,263KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete