Quoted Media & Images As Links [Deleted]

  • Thread starter Thread starter Syndol
  • Start date Start date
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 :)
 
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
 
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.
 
I see I am just starting with XenForo so sorry for my question. Then I find this add-on very useful! :)
 
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($embedHtml, 0, $end);
                            $end = strpos($embedHtml, '?');
                            if ($end !== false)
                            {
                                $embedHtml = substr($embedHtml, 0, $end);
                            }
                          
                            $tag['tag'] = 'url';
                            $tag['option'] = null;
                            $tag['original'] = array('[URL]', '[/URL]');
                            $tag['children'] = array($embedHtml);
                            return $this->renderTagUrl($tag, $rendererStates);
                        }
                    }
                }
            }
          
            return $embedHtml;
        }
 
This resource has been removed and is no longer available for download.
 
Top Bottom