// Description
This bb code gives you a nicer appearance when using the img bbcode


// Manual Installation

1. upload the includes folder to the root of your webserver

2. Go to includes/bbcodes/ open img_bbcode_include.php and find:
return "<span style='display: block; width: 300px; max-height: 300px; overflow: auto;' class='forum-img-wrapper'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></span>";



Replace with this:
return "<span style='display: block; width: 300px; max-height: 300px; overflow: auto;' class='forum-img-wrapper'><a href='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' target='_blank' rel='lytebox'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></a></span>";


3. Go to themes/templates/ and open header.php and find

echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";



Add this after
echo "<link rel='stylesheet' href='".INCLUDES."lytebox/lytebox.css' type='text/css' media='screen' />

<script src='".INCLUDES."lytebox/lytebox.js' type='text/javascript'></script>";

Save and upload header.php




Now open admin_header_mce.php and find

echo "<script type='text/javascript' src='".INCLUDES."admin-msg.js'></script>\n";



Add this after
echo "<link rel='stylesheet' href='".INCLUDES."lytebox/lytebox.css' type='text/css' media='screen' />

<script src='".INCLUDES."lytebox/lytebox.js' type='text/javascript'></script>";


Save and upload admin_header_mce.php


Now are you done and can use the new img bbcode look :)

For support visit http://dark-fusion.se

