BB codes

Get help developing custom BBCodes or request one.
Post Reply
BobEM
Registered User
Posts: 61
Joined: Sat Apr 27, 2013 11:51 pm

BB codes

Post 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!
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53400
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: BB codes

Post 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

[imgab={URL}]{IDENTIFIER}[/imgab]
BobEM
Registered User
Posts: 61
Joined: Sat Apr 27, 2013 11:51 pm

Re: BB codes

Post 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!
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: BB codes

Post by Oyabun1 »

1. Wrap text around an image.

2. BBCode Usage

Code: Select all

[imgab]{URL},{IDENTIFIER}[/imgab]
(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.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Post Reply

Return to “Custom BBCode Development and Requests”