Brew
02-25-2010, 01:07 AM
I am trying to create a BBcode to force an image to the left of text by creating a new BBcode called . (I'm updating an old mod from borgs8472 with his approval).
The problem I am having is that the editor automatically parses the text and inserts it's own tags.
As an example. In the Replacement input box for creating a new BBcode :
<div style="float: left; padding-right: 8px;"> {param} </div>
The above code comes out as:
[IMGL][url]http://url to image
I need it so when {param} = 'url to image' the actual image is displayed instead of a link to the image, which is instead of [url] tags.
The only way I know to do this is to turn off auto parsing for links. But I don't see that as an option for me to do.
What can I do to make the software do what I need without turning off parsing?
Here...try this at home....
Create New BBcode:
Title .... Float Left
BB Code Tag Name.....imgl
Replacement.......<div style="float: left; padding-right: 8px;">[IMG]{param}</div>
Example...... url to image
Description.... Float an image to the left, wrap text around it!
Button Image (Optional) .... Any 21 x 20 image for testing this.
Then use the new bbcode with a url to an image and type a few paragraphs of text.
The text will float to the right but it's a link, instead of an image.
I've tried all the tricks I know and I am hoping someone out there will give me a few pointers on what the system is doing and how to work around it.
Thanks for any and all help
--------------- Added Wednesday 24th of February 2010 at 11:53:26 PM ---------------
Digging around I found what should be a cool BBcode. It's supposed to stop the forum from parsing between the code....I think.
But...I haven't figured out how to use it, let alone whether it actually works.
Any ideas?
The problem I am having is that the editor automatically parses the text and inserts it's own tags.
As an example. In the Replacement input box for creating a new BBcode :
<div style="float: left; padding-right: 8px;"> {param} </div>
The above code comes out as:
[IMGL][url]http://url to image
I need it so when {param} = 'url to image' the actual image is displayed instead of a link to the image, which is instead of [url] tags.
The only way I know to do this is to turn off auto parsing for links. But I don't see that as an option for me to do.
What can I do to make the software do what I need without turning off parsing?
Here...try this at home....
Create New BBcode:
Title .... Float Left
BB Code Tag Name.....imgl
Replacement.......<div style="float: left; padding-right: 8px;">[IMG]{param}</div>
Example...... url to image
Description.... Float an image to the left, wrap text around it!
Button Image (Optional) .... Any 21 x 20 image for testing this.
Then use the new bbcode with a url to an image and type a few paragraphs of text.
The text will float to the right but it's a link, instead of an image.
I've tried all the tricks I know and I am hoping someone out there will give me a few pointers on what the system is doing and how to work around it.
Thanks for any and all help
--------------- Added Wednesday 24th of February 2010 at 11:53:26 PM ---------------
Digging around I found what should be a cool BBcode. It's supposed to stop the forum from parsing between the code....I think.
But...I haven't figured out how to use it, let alone whether it actually works.
Any ideas?