Page 1 of 1

BB codes

Posted: Tue Aug 27, 2013 5:07 pm
by BobEM
I have been trying to create what I thought should be simple codes for my use. But no matter what I try none work. So I must be getting something fundamental wrong.

1) Putting image on right of page:

[imgr]{URL} [/imgr]

<img align="right" src={URL} >

2) Adding Alt-Text to image:

[imgab] {URL} {IDENTIFIER}[/imgab]

<img src="{URL}" alt="{IDENTIFIER}"/>

Any help? TIA!

Re: BB codes

Posted: Tue Aug 27, 2013 5:44 pm
by Brf
1) Putting an "align" parameter on an IMG tag does not align it on the page. It wraps text around the image.

2)I am not sure using a space as a delimiter will work. You are probably better-off trying:

Code: Select all


Re: BB codes

Posted: Tue Aug 27, 2013 8:00 pm
by BobEM
Thank you,

EDIT on 1): after trying umpteen permutations of pattern, extension and coding in the post, I chanced on one that worked. Still am clueless about the principles.

on 2) I tried your suggestion but no success. It seems to me that the only bbcodes that I have been able to add are those with just one variable. Everything else just doesn't get interpreted. I have read the various posts around here but they didn't help. Is there any other information on how this interpretation works that could help me understand?

Any further help is appreciated! TIA!

Re: BB codes

Posted: Fri Aug 30, 2013 1:36 pm
by Oyabun1
1. Wrap text around an image.

2. BBCode Usage

Code: Select all

(Use a comma as the delimiter.)
HTML replacement

Code: Select all

<img src="{URL}" alt="{IDENTIFIER}"/>
Note that using the {IDENTIFIER} token you cannot use spaces in the alt text, therefore, {SIMPLETEXT} may be more useful.