2008-11-13, 06:14 PM
Title : Greybox
Description MyCode : Faire un effet style "lightbox"
Expression : \[greybox\](.*?)\[/greybox\]
Remplacement :<i>reduce images</i><br><a href=$1 title="greybox effet" rel="gb_image[]"><img src='$1' width=200 border=0></a>
activate MyCode ? : yes
Modify your template "headerinclude" , add :
For images attachement :
You go to template => Post Bit Templates => postbit_attachments_thumbnails_thumbnail
Del code & place :
For web ^^
Title : Greybox web
Description MyCode :Make a style "lightbox" to view a web page
Expression : \[web=(.*?)\](.*?)\[/web\]
Remplacement :<b><a href="$1" title="$2" rel="gb_page_fs[]">$2</a></b>
Activate MyCode ? : yes
Demo mycode image
Demo mycode web
Description MyCode : Faire un effet style "lightbox"
Expression : \[greybox\](.*?)\[/greybox\]
Remplacement :<i>reduce images</i><br><a href=$1 title="greybox effet" rel="gb_image[]"><img src='$1' width=200 border=0></a>
activate MyCode ? : yes
Modify your template "headerinclude" , add :
<script type="text/javascript">
var GB_ROOT_DIR = "jscripts/greybox/";
</script>
<script type="text/javascript" src="jscripts/greybox/AJS.js"></script>
<script type="text/javascript" src="jscripts/greybox/AJS_fx.js"></script>
<script type="text/javascript" src="jscripts/greybox/gb_scripts.js"></script>
<link href="jscripts/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
For images attachement :
You go to template => Post Bit Templates => postbit_attachments_thumbnails_thumbnail
Del code & place :
<a href="attachment.php?aid={$attachment['aid']}" rel="gb_image[]"><img src='attachment.php?thumbnail={$attachment['aid']}'</a>
##############################################For web ^^
Title : Greybox web
Description MyCode :Make a style "lightbox" to view a web page
Expression : \[web=(.*?)\](.*?)\[/web\]
Remplacement :<b><a href="$1" title="$2" rel="gb_page_fs[]">$2</a></b>
Activate MyCode ? : yes
Demo mycode image
Demo mycode web