• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • 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
#1
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>';