Announcement

Collapse
No announcement yet.

advanced custom BBcode help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • advanced custom BBcode help

    Hi guys,

    i'm working on adding a new BBCode to one of my sites.

    Here's what i want to do:

    I want to take an abbreviation that is unique to my niche, and convert it to display an image.

    Say, I have [chart]ABC[/chart]

    i want this to convert to <img src="/charts/a/abc.jpg" alt="" />

    and [chart]DEF[/chart] would be
    <img src="/charts/d/def.jpg" alt="" />

    as they are directoried by the first letter.


    Is there a way to grab just the first letter of the string inserted into the bbcode block, and also to make it lowercase (as DEF.jpg doesn't exist on linux, on def.jpg does)
    Last edited by briansol; Tue 21 Aug '07, 9:30pm.

  • #2
    Sorry, that's not possible without a bit of code modification.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X