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

Quoted Media & Images As Links [Deleted]

Discussion in 'Add-on Releases' started by Syndol, Apr 18, 2013.

  1. Syndol

    Syndol Guest

    Sheratan and Shelley like this.
  2. Shelley

    Shelley Well-Known Member

    I always thought xenforo did this. I'm assuming it doesn't (that's how much attention I pay). Very nice Syndol and thanks for making this one available which I'll be installing later since I use many image screenshots on my site. Excellent work as always :)
     
  3. principia

    principia Well-Known Member

    When clicking on the mambername in the member card, i got this error:

    Fatal error: Class 'QMIAL_BbCode_Formatter_Base' not found in /home/www/web197/html/forum/library/XenForo/Application.php(410) : eval()'d code on line 1
     
  4. Syndol

    Syndol Guest

    You have a missing file., Try re-uploading them.
     
  5. principia

    principia Well-Known Member

    that seemed to work, thanks
     
  6. Sheratan

    Sheratan Well-Known Member

    1 of my phpBB fav addon is here! Let's test it...
     
  7. giorgino

    giorgino Well-Known Member

    Hi Syndol do this work on 1.2.x?
     
  8. Syndol

    Syndol Guest

    As far as I know it does.
     
    giorgino likes this.
  9. QenTox

    QenTox Well-Known Member

    Hi Syndol, I am not sure what this exactly does, because when I quote an image without installing this add-on it says View attachmet 1 in the quoted box. So images are by default not quoted in full size in XenForo (they are for example in phpBB3). Can you please explain what it exactly does and what is the difference? Thanks.
     
  10. Syndol

    Syndol Guest

    Not much! ;)
    By default linked (not attached) images are displayed in quotes.
     
  11. QenTox

    QenTox Well-Known Member

    I see I am just starting with XenForo so sorry for my question. Then I find this add-on very useful! :)
     
  12. Case

    Case Active Member

    Hi Syndol

    Would it be easy to make this add-on only target specific types of media? I have twitter set up as a BBCode Media Site so that people can easily embed tweets. When people quote those tweets though, it breaks the forum layout. Something to do with an extra div being added, I think.

    Anyway, would be great if I could use this add-on but only use it to target media=tweets.

    Easy change? Happy to edit the files if necessary, just for my install. I assume it's something to do with this section?

    PHP:
    // render quoted media as a link
            
    if (isset($rendererStates['QMIAL']))
            {
                if (
    XenForo_Application::get('options')->qmial_link_or_text == 'text')
                {
                    return new 
    XenForo_Phrase('qmial_media');
                }
                else
                {
                    
    $embedHtml parent::renderTagMedia($tag$rendererStates);
                    if (!empty(
    $embedHtml))
                    {
                        
    $start strpos($embedHtml'src="');
                        if (
    $start !== false)
                        {
                            
    $embedHtml substr($embedHtml$start 5);
                            
    $end strpos($embedHtml'"');
                            if (
    $end !== false)
                            {
                                
    $embedHtml substr($embedHtml0$end);
                                
    $end strpos($embedHtml'?');
                                if (
    $end !== false)
                                {
                                    
    $embedHtml substr($embedHtml0$end);
                                }
                              
                                
    $tag['tag'] = 'url';
                                
    $tag['option'] = null;
                                
    $tag['original'] = array('[URL]''[/URL]');
                                
    $tag['children'] = array($embedHtml);
                                return 
    $this->renderTagUrl($tag$rendererStates);
                            }
                        }
                    }
                }
              
                return 
    $embedHtml;
            }
     
  13. ogirginc

    ogirginc Active Member

    Can anyone upload screen shot please? :)
     
  14. Syndol

    Syndol Guest

    This resource has been removed and is no longer available for download.
     

Share This Page