############################################################## 
## MOD Title: 		    [poster]
## MOD Author:	 	   Unknown
## MOD For TP2 Adapt:  Krumax
## MOD Description:      [poster] 
##    ,    
##    .
## Installation Level: 	Easy 
## Installation Time: 	2 Minutes 
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/default/posting_editor.tpl 
#
#-----[ FIND ]------------------------------------------
#
<input type="button" value="Img" name="codeImg" title="{L_IMG_TITLE}" style="width: 40px;" />
#
#-----[ AFTER, ADD ]------------------------------------------
#
<input type="button" value="Poster" name="poster" title="poster (Ctrl+P)" style="width: 60px;"/>
#
#-----[ FIND ]------------------------------------------
#
bbcode.addTag("codeImg", "img", null, "R", ctrl);
#
#-----[ AFTER, ADD ]------------------------------------------
#
bbcode.addTag("poster", "poster", "/poster", "P", ctrl); 
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
// Quote
$bbcode_tpl['quote_open'] = <<<HTML
	<div class="q-wrap">
		<div class="q">
HTML;
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Poster
$bbcode_tpl['poster'] = <<<HTML
	<img src="\\1" style="float: right; max-width:550px; max-height:500px;" title="$1" onload="cvi_glossy.add(this,{radius:30,nogradient:true,angle:-33,shadow:30})"/>
	
HTML;
#
#-----[ FIND ]------------------------------------------
#
$this->preg = array(
#
#-----[ AFTER, ADD ]------------------------------------------
#
"#\[poster\]($img_url_exp)\[/poster\]\s*#isu"             => $tpl['poster'],
# 
#-----[ OPEN ]------------------------------------------
#
templates/default/viewtopic.tpl
#
#-----[ FIND ]------------------------------------------
#<div class="spacer_6"></div>

<h1 class="maintitle"><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h1>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<script type="text/javascript" src="./misc/js/glossy/glossy.js?v=1"></script> 
<script type="text/javascript" src="./misc/js/glossy/cvi_glossy_lib.js?v=1"></script>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM