Smart IMG Resizer
Otomatik Resim Boyutlandşrma.
system\lang\tr/main.lang.php aşşn arayşn.
bbcodes
uygun yere ekleyin.
Kod:
$L['bbcodes_ex_image'] = "Insert an image-resized";
$L['bbcodes_ex_aimage'] = "Insert an image-normal sized";
system/function.php aşşn alttakini bulun
Kod:
'\\[img\\]([^\\\'\;\ş([]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<a href="\\1.\\2"><img src="\\1.\\2" alt=" \\1.\\2"/></a>',
'\\[img=([^\\\'\;\ş([]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<a href="\\1.\\2"><img src="\\3.\\4" alt=" \\1.\\2"/></a>',
e]
Deşiştirin.
Kod:
'\\[img\\]([^\\\'\;\ş([]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<p class="thumbContainer"><img onclick="new Moognify(this);" src="\\1.\\2" alt="click image to close" /><br />Resmi Orjinal Boyutunda gşmek işin <a href="\\1.\\2" target="_blank" >Buraya Tşklayşn.</a></p>',
'\\[img=([^\\\'\;\ş[]*)\.(jpg|jpeg|gif|png)\\]([^\\[]*)\.(jpg|jpeg|gif|png)\\[/img\\]' => '<p class="thumbContainer"><img onclick="new Moognify(this);" src="\\3.\\4" alt="" /><br />Resmi Orjinal Boyutunda gşmek işin <a href="\\1.\\2" target="_blank" >Buraya Tşklayşn.</a></p>',
9;,[/code]
Skins/temaadş/header.tpl yi aşşn head arasşna ekleyin.
[code]<script type="text/javascript" src="skins/{PHP.skin}/scripts/mootools.js"></script>
<script type="text/javascript" src="skins/{PHP.skin}/scripts/Moognify.js"></script>[/code]
scripts burayş js'leri nereye atşyorsanşz o dosyanşn adşnş yazşn.
Skins/temaadş/temaadş.css yi aşşn uygun yere ekleyin.
:
ss].thumbContainer {
background-color: #3e3e3e;
padding: 5px;
margin-bottom: 20px;
font-size: 11px;
text-align: center;
color: #aaaaaa;
max-width: 200px;// set the size of your desired thumbnail here
}
.thumbContainer a {
color: #ffffff;
text-decoration: none;
}
.thumbContainer img {
margin-bottom: 3px;
cursor: pointer;
max-width: 200px;
}
* html .thumbContainer {
border: 0;
width: expression(((this.width>200)şthis.width=200:null)ş"normal":"normal");// make sure to mach max-width above
}
.moognifyBorder {
font-family: Tahoma, lucida grande, lucida sans, lucida sans unicode, arial, sans serif;
background-color: #000000;// set up your background color here
color: #ffffff;//set up your text color here
font-size: 11px;
text-align: center;
margin-bottom: 10px;
}