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

XF 1.5 Embed img Alt

Discussion in 'XenForo Questions and Support' started by Kullanici, Jan 12, 2016.

  1. Kullanici

    Kullanici New Member

    Hello,

    I need create/change embed img alt text when add thread. My bot is running.

    $embedimg='<img src="http://www.bilgeruh.com/moda/'.$resimadi.'.jpg" class="bbCodeImage LbImage" alt="'.$an_alt_txt.'" />';

    but the thread content seeming: <img src=".... alt=""

    i must change [IMG] with my alt text.

    How can i do this?

    Sorry for my English.
     
  2. Kullanici

    Kullanici New Member

    i found a code in base.php

    protected $_imageTemplate = '<img src="%1$s" class="bbCodeImage%2$s" alt="[&#x200B;IMG]" data-url="%3$s" />';

    how can i change this with a real alt text for image
     
  3. Kullanici

    Kullanici New Member

    a very basic problem and xenforo not supporting just "alt" problem?
     
  4. Mike

    Mike XenForo Developer Staff Member

    Alt text is not supported in BB code.
     
  5. Kullanici

    Kullanici New Member

    How can i modify this code part for alt text support:

    protected $_imageTemplate = '<img src="%1$s" class="bbCodeImage%2$s" alt="[&#x200B;IMG]" data-url="%3$s" />';

    i 'll post to my forum: <img src... alt="xxxxxx"..
     

Share This Page