Announcement

Collapse
No announcement yet.

making custom BBCode, how do I make several {param}?

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

  • making custom BBCode, how do I make several {param}?

    I am making a new custom BBCode but I don't know if {param} can be make numbered like this,

    {param1} {param2} {param3}

    then when the user enters this in the editor

    [newbbcode][*]line one (this value goes to {param1})[*]line two (this value goes to {param2})[*]line three (this value goes to {param3})
    [/newbbcode]

    but I don't know if {param1} {param2} {param3} ever existed.

  • #2
    I don't think this is possible, although it would be a nice addition to vB4.

    edit: my above comment was actually me thinking about numbered {option} tags. Those could be useful. Not too sure why we'd want multiple {param}s.

    Comment


    • #3
      Hi TaMpE,

      You could instruct the user to separate the information using a comma or other deliminator.

      [bbcode ]data1,data2,data3[/bbcode ]

      Then parse the {param} information as needed.

      Comment


      • #4
        Originally posted by Andy View Post
        Hi TaMpE,

        You could instruct the user to separate the information using a comma or other deliminator.

        [bbcode ]data1,data2,data3[/bbcode ]

        Then parse the {param} information as needed.
        I don't understand what you meant

        I think that also is possible. The reason why I want multiple param is because I want to put a feature that you can just add pictures like this,

        the HTML is like this

        <a href="{param1}" target="_blank"><img src="{param1}" /></a>
        <a href="{param2}" target="_blank"><img src="{param2}" /></a>
        <a href="{param3}" target="_blank"><img src="{param3}" /></a>

        So I can use this for picture purposes. And my BBCode could be

        [newbbcode]param1,param2,param3[/newbbcode]

        param1 = an image link
        param2 = an image link
        param3 = an image link

        This will display the IMAGE and also make the IMAGE clickable to see the image in new tab in its original size, it's needed because I have an auto resizer that resizes very large pictures.

        So any idea how I can make a mod that let's me separate data with just commas?

        Comment

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