• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Show full size image in a message is clicked

yilmaz

Active member
First, you must install this plug-in
http://xenforo.com/community/thread...ttachments-pop-up-instead-of-new-window.5192/
Then edit this file
/library/XenForo/BbCode/Formatter/Base.php
Search for this: line 893

PHP:
return '<img src="' . htmlspecialchars($validUrl) . '" class="bbCodeImage" alt="[img]" />';
Replace it with this
PHP:
return '<a class="highslide" href="' .  htmlspecialchars($validUrl) . '" onclick="return  hs.expand(this)"><img src="' . htmlspecialchars($validUrl) . '"  class="bbCodeImage" alt="[img]" /></a>';
 
Top Bottom