Solved: 5 Years, 8 Months ago [How To?] write next to image
#1
Solved: 5 Years, 8 Months ago
Is it possible to write next to the image? Which code I should be using?  

Like this :


***********  texttextexttexttexttextexttexttexttextexttext
*                  *  texttextexttext
*                  *  texttextexttexttexttextexttext
*    IMAGE    *  texttextexttexttexttextexttexttexttextexttext
*                  *  texttextexttext
*                  *  texttextexttexttexttextexttext
***********  texttextext

(2010-02-19, 11:20 PM)Scoutie44 Wrote: Regular Expression;
\[float=(.*?)\](.*?)\[/float\]

Replacement;
<span style="float: $1;">$2</span>


Is this method safe to use html-wise?
Reply
#2
Solved: 5 Years, 8 Months ago
for the regular expression you can use \[float=(left|right)\](.*?)\[/float\] (little better than above)

edit: see also this post
Reply
#3
Solved: 5 Years, 8 Months ago
Thank you.
Reply
#4
Solved: 5 Years, 8 Months ago
Hi !

I am trying to do the same thing but am new to coding as well as myBB !

Have managed to create a MyCode , titled WrapText with Regular expression as :

\[float=(left|right)\](.*?)\[/float\]

and Replacement as :

<span style="float: $1;">$2</span>

What do I  do next ?

For example, say I want to put an image at URL :

https://image.shutterstock.com/image-ill...262375.jpg

in a post at my forum, and have text wrapped around this image.

A step wise reply would be very highly appreciated. Thanks much in advance !
Reply
#5
Solved: 5 Years, 8 Months ago
^ that float MyCode can be used with 2 options - left & right
text content will be wrapped depending on the image size & text content

[float=left]image code[/float]

[float=right]image code[/float]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)