Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Mar 2008, 00:02
Biggles Biggles is offline
 
Join Date: Mar 2006
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 21 Mar 2008, 00:05
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Custom [img] tags that use divs and floats. This is a simple one. I think I set up the option and param correctly.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #3  
Old 21 Mar 2008, 00:18
Biggles Biggles is offline
 
Join Date: Mar 2006
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.

Biggles
Reply With Quote
  #4  
Old 21 Mar 2008, 00:24
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
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.

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.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #5  
Old 21 Mar 2008, 00:37
Biggles Biggles is offline
 
Join Date: Mar 2006
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 21 Mar 2008, 00:43
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
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!
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #7  
Old 21 Mar 2008, 00:54
Biggles Biggles is offline
 
Join Date: Mar 2006
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

Biggles
Reply With Quote
  #8  
Old 21 Mar 2008, 03:53
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Night. And I have no offense was taking! I just thought it was really funny. Even the squire part.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #9  
Old 21 Mar 2008, 11:49
Biggles Biggles is offline
 
Join Date: Mar 2006
Thumbs up

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

Biggles

--------------- Added 21 Mar 2008 at 13:00 ---------------

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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!

Biggles

Last edited by Biggles; 21 Mar 2008 at 13:00. Reason: Auto-Merged DoublePost
Reply With Quote
  #10  
Old 21 Mar 2008, 13:42
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
There is no 'float:center'.
Reply With Quote
  #11  
Old 21 Mar 2008, 13:57
Biggles Biggles is offline
 
Join Date: Mar 2006
Originally Posted by Boofo View Post
There is no 'float:center'.
Well, that's really interesting. Perhaps there should be, Boofo! Perhaps there should be.
Reply With Quote
  #12  
Old 21 Mar 2008, 14:05
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
text-align: center FTW!
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #13  
Old 21 Mar 2008, 14:16
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
LOL But that doesn't always work where float center would.
Reply With Quote
  #14  
Old 21 Mar 2008, 14:32
Biggles Biggles is offline
 
Join Date: Mar 2006
Originally Posted by Dismounted View Post
text-align: center FTW!
My original query was about embedding images into text rather than aligning text, Dismounted. Aligning text in the center is a vB default option isn't it?

I don't know about you guys over there but I kinda like justified text (I've got that facility on my site thanks to someone on this forum) and embedded images. Looks sort of professional, like they do in magazines and newspapers.

It's ok to use thumbnails or to put up images in a post that sit separately. But nothing looks quite so smooth and professional, IMO, than nice photos with text wrapped around them.

Anyways, thanks to the King and the other party who posted on justifying text thru BB code, I am about to transform the way some of my posts look on my site. Hopefully, for the better.

Many thanks to you all for helping out.

Best wishes

Biggles
Reply With Quote
  #15  
Old 21 Mar 2008, 14:40
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I released a bbcode hack for this very same thing that other day.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
BB Code Enhancements Images with text wrap Boofo Modification Graveyard 81 18 May 2008 19:54



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 05:42.

Layout Options | Width: Wide Color: