1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 IMG-Tag with alternate Text

Discussion in 'XenForo Questions and Support' started by vFranky, Jul 26, 2015.

  1. vFranky

    vFranky Active Member


    I am using in ALT-image tag in my vBulletin forum. Instead of the normal IMG-tag, it accepts an alternate image-text which is helpful for search engine optimization.

    It is defined as a vBulletin Tag => <img src="{option}" alt="{param}" />
    And is used like this => [alt=http://www.image-source.com/example-image.jpg]Alt Text[/alt]

    How to do the conversation to XenForo?

    Kind regards,
  2. Mike

    Mike XenForo Developer Staff Member

    You should be able to create a custom BB code that functions similarly.
    vFranky likes this.
  3. vFranky

    vFranky Active Member

    I think it should be simple. But I cannot find appropriate examples and have no idea. :(
    What would be the content for HTML replacement?

    Attached Files:

  4. Mike

    Mike XenForo Developer Staff Member

    Looks to me like you've set the BB code to not take an option, when you do require it.

Share This Page