Announcement

Collapse
No announcement yet.

another [img] tag??

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

  • another [img] tag??

    i would like to put in the following image tag:

    [img=left]url here[/img]

    which alignes the images at the url chosen to algn left, how can i do that? I added the above code to the vbcodes section in the admin cp but cant get it to work
    bbdimension.com

  • #2
    Rather than add a tag that would do just images you could add align tags. Something like this:

    Code Tag: left

    vB Code replacement: <div align="left">{param}</div>

    vB Code example: [left ]Image or text here[/left] Without the space.

    vB Code explanation: A tag that aligns stuff to the left.


    Use {option} ?: No

    You can replace the word left with right or center for tags that would align things to the right or center as well.

    __________

    Or for images only you could use this:

    Code Tag: imgleft

    vB Code replacement: <div align="left"><p><img src="{param}"></p></div>

    vB Code example: [imgleft ]http://linketoimage[/imgleft] Without the space

    vB Code explanation: A tag that aligns images to the left.

    Use {option} ?: No

    You could also use the {option} with this one but I just did it this way cause I'm lazy.

    Comment


    • #3
      thanks i got it working now :P
      bbdimension.com

      Comment


      • #4
        Nice addition, helps me out a lot, thanks

        Comment


        • #5
          No problem guys...

          Comment


          • #6
            If you'd like to have images that float to the left, you can use this tag:

            vB Code: img
            vB Code replacement: <img align="{option}" src="{param}" alt="" />
            vB Code explanation: insert explanation here
            vB Code example: [img=left]image url here[/img]
            Use {option}: Yes

            This will allow you to create images that float to the {option} side of the page, without forcing all the text onto other lines. An example can be found in the attachment.

            The only drawback is that if you have disable dynamic image links enabled, using this tag will allow them regardless.
            Attached Files

            Comment

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