Öncelikle aşağıdaki rar dosyasını indir.
Kod:
http://uploaded.to/file/luksgiqj
https://www.rapidshare.com/files/2439794378/js.rar
http://d01.megashares.com/dl/Uln4lT1/js.rar
http://netload.in/dateim4ovVbFCiq/js.rar.htm
http://www.uploadstation.com/file/JSUkcdY
http://www.wupload.com/file/2681094152
içinden çıkan js klasörünü olduğu gibi forumun kurulu olduğu yere at.
headerinclude şablonuna {$stylesheets} kodunun üstüne şunları yapıştır.
Kod:
<script src="js/jquery-1.2.2.pack.js" type="text/javascript"></script>
<link href="js/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="js/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})
</script>
Sonra PostBit - [postbit] Şablonlar dan postbit_avatar şablonunu aç
Kod:
<p><a href="#mydiv" rel="facebox"><img class="box-avatar" src="{$post['avatar']}" alt="user avatar" {$avatar_width_height} /></a></p>
<div id="mydiv" style="display:none">
This is the contents of a hidden DIV on the page, with ID="mydiv" and style set to "display:none"<br /><br />
<a href="http://www.neutiron.com">Facebox image and content viewer (v 1.1)</a>
</div>
Bu kodla komple değiştir. İstediğin yerleri kendine göre düzenle.
Bu arada jquery 1.2.2 ile çalıştığı için bazı js hata ları alabilirsin. eğer teman da jquery kullanıyorsan
Kod:
<script src="js/jquery-1.2.2.pack.js" type="text/javascript">
bunu headerinclude a hiç yapıştırma. Ben denemedim belki jquerynin yeni sürümü ile de çalışıyordur.
Sonucu buradan yazarsan sevinirim.