1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
  3. What happens when the XF 2.0 is out? See the discussion here: http://www.sonnb.com/threads/what-happens-when-xf-2-0-is-out.1146/
    Dismiss Notice

Request Alt For Images From Thread Title

Discussion in 'Add-On Requests' started by alsultan88, May 28, 2014.

  1. alsultan88

    alsultan88 New Member

    hello every one
    i need an add-on to make the alt for (embedded attached images) inside threads is equal the thread title.

    i opened 'bb_code_tag_attach' template and change the alt for embedded attached images but can not make it thread title because the thread title variable is not working inside this template
    Code:
    <xen:if is="!{$validAttachment}">
    
        <a href="{xen:link full:attachments, $attachment}" target="_blank">{xen:phrase view_attachment_x, 'name={$attachment.attachment_id}'}</a>
       
    <xen:elseif is="!{$attachment.thumbnailUrl}" />
    
        <a href="{xen:link full:attachments, $attachment}" target="_blank">{xen:phrase view_attachment_x, 'name={$attachment.filename}'}</a>
       
    <xen:elseif is="{$canView} AND {$full}" />
       
        <img src="{xen:link full:attachments, $attachment}" [COLOR=#ff0000]alt="image, photo"[/COLOR] class="bbCodeImage LbImage" />
           
    <xen:elseif is="{$canView}" />
       
        <a href="{xen:link full:attachments, $attachment}" target="_blank" class="LbTrigger"
            data-href="{xen:link misc/lightbox}"><img
            src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}"
            class="bbCodeImage LbImage" /></a>
               
    <xen:else />
    
        <a href="{xen:link full:attachments, $attachment}" target="_blank"><img src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="bbCodeImage" /></a>
       
    </xen:if>
    therefore i need an add-on to do such thing

    look at this thread please
     
  2. ElaineInsox

    ElaineInsox New Member

    great , I think this thread should be sticky or add to faq etc
    scroll lock make win-key , alt-tab , ctrl-space to host all work
    you are my lord
     

Share This Page