[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 194: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 199: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/ext/sniper/mobiledevice/event/listener.php on line 267: Trying to access array offset on value of type bool
[Solucionado]Poner emoticones en una pestaña - Page 3 - phpBBMexico
Dudas sobre estilos, edición de HTML, edición de CSS para mejorar tu foro phpBB3

Moderators: Carlos, Soporte en MODs, Soporte en phpBB, Soporte en Estilos

Forum rules: Si vas a pedir ayuda o soporte favor de rellenar los Datos de Soporte,
Si no asi no le podemos ayudar!
User avatar
By Cruciattus
#414
Cruciattus » 02 Oct 2012, 01:02 wrote:Creo que falta algun paso mas, o algo no lo habré hecho bien, porque la pestaña no se ve
[img]http://i.imgur.com/xMAq8.png[/img]

Bueno, si no se puede hacer como quiero exactamente, asi está bien. Ya he editado ambos archivos y no me aparece la pestaña de emoticones para expandir
Adjunto mis archivos por si edité mal o algo asi. He refrescado el estilo y todo eso.

posting_body.html
Code: Select all
<!-- IF S_PRIVMSGS -->
	<!-- INCLUDE ucp_header.html -->
<!-- ELSE -->
	<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->

<!-- IF S_FORUM_RULES -->
	<div class="forumrules">
		<!-- IF U_FORUM_RULES -->
			<h3>{L_FORUM_RULES}</h3><br />
			<a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
		<!-- ELSE -->
			<h3>{L_FORUM_RULES}</h3><br />
			{FORUM_RULES}
		<!-- ENDIF -->
	</div>

	<br clear="all" />
<!-- ENDIF -->

<!-- IF not S_PRIVMSGS -->
	<div id="pageheader">
			<!-- INCLUDE breadcrumbs.html -->
		<!-- IF MODERATORS -->
			<p class="moderators">{L_MODERATORS}: {MODERATORS}</p>
		<!-- ENDIF -->
		<!-- IF U_MCP -->
			<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
		<!-- ENDIF -->
	</div>

	<br clear="all" /><br />
<!-- ENDIF -->

<!-- IF not S_SHOW_PM_BOX -->
	<form action="{S_POST_ACTION}" method="post" name="postform"{S_FORM_ENCTYPE}>
<!-- ENDIF -->

<!-- IF S_DRAFT_LOADED -->  
    {$CA_BLOCK_START}
	{$CA_CAP2_START}{L_INFORMATION}{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	<tr>
		<td class="row1" align="center"><span class="gen"><!-- IF S_PRIVMSGS -->{L_DRAFT_LOADED_PM}<!-- ELSE -->{L_DRAFT_LOADED}<!-- ENDIF --></span></td>
	</tr>
	</table>
	{$CA_BLOCK_END}

	<br clear="all" />
<!-- ENDIF -->

<!-- IF S_SHOW_DRAFTS -->
    {$CA_BLOCK_START}
	{$CA_CAP2_START}{L_LOAD_DRAFT}{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	<tr>
		<td class="row1" colspan="3" align="center"><span class="gen">{L_LOAD_DRAFT_EXPLAIN}</span></td>
	</tr>
	<tr>
		<th>{L_SAVE_DATE}</th>
		<th>{L_DRAFT_TITLE}</th>
		<th>{L_OPTIONS}</th>
	</tr>
	<!-- BEGIN draftrow -->

		<!-- IF draftrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

		<td class="postdetails row" style="padding: 4px;">{draftrow.DATE}</td>
		<td class="row" style="padding: 4px;"><b class="gen">{draftrow.DRAFT_SUBJECT}</b>
			<!-- IF draftrow.S_LINK_TOPIC --><br /><span class="gensmall">{L_TOPIC}: <a href="{draftrow.U_VIEW}">{draftrow.TITLE}</a></span>
			<!-- ELSEIF draftrow.S_LINK_FORUM --><br /><span class="gensmall">{L_FORUM}: <a href="{draftrow.U_VIEW}">{draftrow.TITLE}</a></span>
			<!-- ELSEIF draftrow.S_LINK_PM --><br /><span class="gensmall">{L_PRIVATE_MESSAGE}</span>
			<!-- ELSE --><br /><span class="gensmall">{L_NO_TOPIC_FORUM}</span><!-- ENDIF -->
		</td>
		<td class="row" style="padding: 4px;" align="center"><span class="gen"><a href="{draftrow.U_INSERT}">{L_LOAD_DRAFT}</a></span></td>
	</tr>
	<!-- END draftrow -->
	</table>
	{$CA_BLOCK_END}

	<br clear="all" />
<!-- ENDIF -->


<!-- IF S_POST_REVIEW --><!-- INCLUDE posting_review.html --><!-- ENDIF -->
<!-- IF S_DISPLAY_PREVIEW --><!-- INCLUDE posting_preview.html --><!-- ENDIF -->


<!-- IF not S_PRIVMSGS and S_UNGLOBALISE -->
    {$CA_BLOCK_START}
	{$CA_CAP2_START}{L_MOVE}{$CA_CAP2_END}
	<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
	<tr>
		<td class="spacer" colspan="2"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<tr>
		<td class="row2" align="center"><span class="gen">{L_UNGLOBALISE_EXPLAIN}<br /><br />{L_SELECT_DESTINATION_FORUM}&nbsp;&nbsp;</span><select name="to_forum_id">{S_FORUM_SELECT}</select><br /><br /><input class="btnmain" type="submit" name="post" value="{L_CONFIRM}" />&nbsp;&nbsp; <input class="btnlite" type="submit" name="cancel_unglobalise" value="{L_CANCEL}" /></td>
	</tr>
	</table>
	{$CA_BLOCK_END}

	<br clear="all" />
<!-- ENDIF -->

{$CA_BLOCK_START}
{$CA_CAP2_START}{L_POST_A}{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<!-- IF ERROR -->
	<tr>
		<td class="row2" colspan="2" align="center"><span class="genmed error">{ERROR}</span></td>
	</tr>
<!-- ENDIF -->

<!-- IF S_DELETE_ALLOWED -->
	<tr>
		<td class="row1"><b class="genmed">{L_DELETE_POST}:</b></td>
		<td class="row2"><input type="checkbox" class="radio" name="delete" /> <span class="gensmall">[ {L_DELETE_POST_WARN} ]</span></td>
	</tr>
<!-- ENDIF -->

<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<tr>
		<td class="row1"><b class="genmed">{L_ICON}:</b></td>
		<td class="row2">
			<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td><label><input type="radio" class="radio" name="icon" value="0"{S_NO_ICON_CHECKED} /><span class="genmed"><!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></span></label> <!-- BEGIN topic_icon --><label><input type="radio" class="radio" name="icon" value="{topic_icon.ICON_ID}"{topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" hspace="2" vspace="2" /></label> <!-- END topic_icon --></td>
			</tr>
			</table>
		</td>
	</tr>
<!-- ENDIF -->

<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
	<tr>
		<td class="row1"><b class="genmed">{L_USERNAME}:</b></td>
		<td class="row2"><input class="post" type="text" tabindex="1" name="username" size="25" value="{USERNAME}" /></td>
	</tr>
<!-- ENDIF -->

<!-- IF S_PRIVMSGS -->
	<tr>
		<td class="row1"><b class="genmed">{L_TO}:</b></td>
		<td class="row2">
			{S_HIDDEN_ADDRESS_FIELD}
		<!-- BEGIN to_recipient -->
			<span style="display: block; float: {S_CONTENT_FLOW_BEGIN};" class="nowrap genmed"><strong>
			<!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><span class="sep">{to_recipient.NAME}</span></a><!-- ELSE -->{to_recipient.NAME_FULL}<!-- ENDIF --></strong>&nbsp;<!-- IF not S_EDIT_POST --><input class="post" type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="{L_REMOVE}" />&nbsp;<!-- ENDIF -->
			</span>
		<!-- BEGINELSE -->
			<span class="genmed">{L_NO_TO_RECIPIENT}</span>
		<!-- END to_recipient -->
		</td>
	</tr>
	<!-- IF S_ALLOW_MASS_PM -->
	<tr>
		<td class="row1"><b class="genmed">{L_BCC}:</b></td>
		<td class="row2">
		<!-- BEGIN bcc_recipient -->
			<span class="genmed nowrap"><strong>
			<!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><span class="sep">{bcc_recipient.NAME}</span></a><!-- ELSE -->{bcc_recipient.NAME_FULL}<!-- ENDIF --></strong>&nbsp;<!-- IF not S_EDIT_POST --><input class="post" type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="{L_REMOVE}" />&nbsp;<!-- ENDIF -->
			</span>
		<!-- BEGINELSE -->
			<span class="genmed">{L_NO_BCC_RECIPIENT}</span>
		<!-- END bcc_recipient -->
		</td>
	</tr>
	<!-- ENDIF -->
<!-- ENDIF -->

<tr>
	<td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
	<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
</tr>
<tr>
	<td class="row1" width="22%"><b class="genmed">{L_MESSAGE_BODY}:</b></td>
	<td class="row2" width="78%"><span class="genmed">{L_MESSAGE_BODY_EXPLAIN}</span></td>
</tr>
<!-- IF S_URL -->
<tr>
	<td class="row1" width="22%"><b class="genmed">URL:</b></td>
	<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" /></td>
</tr>
<!-- ENDIF -->
<!-- IF S_DESCRIPTION -->
<tr>
	<td class="row1" width="22%"><b class="genmed">{L_DESCRIPTION}:</b></td>
	<td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="description" size="45" maxlength="60" tabindex="2" value="{TOPIC_DESCRIPTION}" /></td>
</tr>
<!-- ENDIF -->
<tr>

	<td class="row2" valign="top" colspan="2">
		<script type="text/javascript">
		// <![CDATA[
			var form_name = 'postform';
			var text_name = 'message';
			function resettoggle() 
			{
				var e = document.getElementById('popup-smilies');
				e.style.display = 'none';
			}
			function toggle_visibility(id)
			{
				var e = document.getElementById(id);
				if(e.style.display == 'none')
					e.style.display = 'block';
				else
					e.style.display = 'none';
			}
		// ]]>
		</script>	

		<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<!-- INCLUDE posting_buttons.html -->
				<!-- IF S_SMILIES_ALLOWED -->
			<tr id="popup-smilies" align="center" style="display: none;">
				<td>
					<!-- BEGIN smiley -->
						<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
					<!-- END smiley -->
					<!-- IF S_SHOW_SMILEY_LINK -->
						<br /><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a>
					<!-- ENDIF -->	
				</td>
			</tr>
		<!-- ENDIF -->
		<tr>
			<td valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" style="width: 700px; height: 270px; min-width: 98%; max-width: 98%;" class="posting-textarea">{MESSAGE}</textarea></td>

			<!-- IF S_BBCODE_ALLOWED and (not S_ABBC3_COLOR or S_ABBC3_COLOR_MODE eq 'phpbb')-->
			<td width="80" align="center" valign="top">
			</td>
			<!-- ENDIF -->
	 	</tr>
		</table>
	</td>
</tr>

<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->
	<tr>
		<td class="row1"><b class="genmed">{L_ATTACHMENTS}:</b></td>
		<td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select>&nbsp;<input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_form = document.forms[form_name].elements['attachments']; attach_inline(attach_form.value, attach_form.options[attach_form.selectedIndex].text);" onmouseover="helpline('a')" onmouseout="helpline('tip')" />
		</td>
	</tr>
<!-- ENDIF -->

<tr>
	<td class="row1" valign="top"><b class="genmed">{L_OPTIONS}:</b><br />
		<table cellspacing="2" cellpadding="0" border="0">
		<tr>
			<td class="gensmall">{BBCODE_STATUS}</td>
		</tr>
		<!-- IF S_BBCODE_ALLOWED -->
		<tr>
			<td class="gensmall">{IMG_STATUS}</td>
		</tr>
		<tr>
			<td class="gensmall">{FLASH_STATUS}</td>
		</tr>
		<tr>
			<td class="gensmall">{URL_STATUS}</td>
		</tr>
		<!-- ENDIF -->
		<tr>
			<td class="gensmall">{SMILIES_STATUS}</td>
		</tr>
		</table>
	</td>
	<td class="row2">
		<table cellpadding="1">
		<!-- IF S_BBCODE_ALLOWED -->
			<tr>
				<td><input type="checkbox" class="radio" name="disable_bbcode"{S_BBCODE_CHECKED} /></td>
				<td class="gen">{L_DISABLE_BBCODE}</td>
			</tr>
		<!-- ENDIF -->

		<!-- IF S_SMILIES_ALLOWED -->
			<tr>
				<td><input type="checkbox" class="radio" name="disable_smilies"{S_SMILIES_CHECKED} /></td>
				<td class="gen">{L_DISABLE_SMILIES}</td>
			</tr>
		<!-- ENDIF -->

		<!-- IF S_LINKS_ALLOWED -->
		<tr>
			<td><input type="checkbox" class="radio" name="disable_magic_url"{S_MAGIC_URL_CHECKED} /></td>
			<td class="gen">{L_DISABLE_MAGIC_URL}</td>
		</tr>
		<!-- ENDIF -->

		<!-- IF S_SIG_ALLOWED -->
			<tr>
				<td><input type="checkbox" class="radio" name="attach_sig"{S_SIGNATURE_CHECKED} /></td>
				<td class="gen">{L_ATTACH_SIG}</td>
			</tr>
		<!-- ENDIF -->

		<!-- IF S_NOTIFY_ALLOWED -->
			<tr>
				<td><input type="checkbox" class="radio" name="notify"{S_NOTIFY_CHECKED} /></td>
				<td class="gen">{L_NOTIFY_REPLY}</td>
			</tr>
		<!-- ENDIF -->

		<!-- IF not S_PRIVMSGS -->
			<!-- IF S_LOCK_TOPIC_ALLOWED -->
				<tr>
					<td><input type="checkbox" class="radio" name="lock_topic"{S_LOCK_TOPIC_CHECKED} /></td>
					<td class="gen">{L_LOCK_TOPIC}</td>
				</tr>
			<!-- ENDIF -->

			<!-- IF S_LOCK_POST_ALLOWED -->
				<tr>
					<td><input type="checkbox" class="radio" name="lock_post"{S_LOCK_POST_CHECKED} /></td>
					<td class="gen">{L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</td>
				</tr>
			<!-- ENDIF -->
			
			<!-- IF S_FIRST_POST_SHOW_ALLOWED -->
				<tr>
					<td><input type="checkbox" class="radio" name="topic_first_post_show" checked{S_FIRST_POST_SHOW_CHECKED} /></td>
					<td class="gen">{L_FIRST_POST_SHOW}</td>
				</tr>
			<!-- ENDIF -->



			<!-- IF S_TYPE_TOGGLE -->
				<tr>
					<td>&nbsp;</td>
					<td class="gen"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->: <!-- BEGIN topic_type --><input type="radio" class="radio" name="topic_type" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}&nbsp;&nbsp;<!-- END topic_type --></td>
				</tr>
			<!-- ENDIF -->
		<!-- ENDIF -->
		</table>
	</td>
</tr>

<!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
	<tr>
		<td class="row1"><b class="genmed">{L_STICK_TOPIC_FOR}:</b><br /><span class="gensmall">{L_STICKY_ANNOUNCE_TIME_LIMIT}</span></td>
		<td class="row2"><input class="post" type="text" name="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" />&nbsp;<b class="gen">{L_DAYS}</b> <span class="gensmall">{L_STICK_TOPIC_FOR_EXPLAIN}</span></td>
	</tr>
<!-- ENDIF -->

<!-- IF S_EDIT_REASON -->
	<tr>
		<td class="row1" valign="top"><b class="genmed">{L_EDIT_REASON}:</b></td>
		<td class="row2"><input class="post" type="text" name="edit_reason" size="50" value="{EDIT_REASON}" /></td>
	</tr>
<!-- ENDIF -->

<!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
<!-- INCLUDE {CAPTCHA_TEMPLATE} -->
<!-- ENDIF -->

<!-- IF S_SHOW_ATTACH_BOX or S_SHOW_POLL_BOX -->
	<tr>
		<td class="cat" colspan="2" align="center">
			<input class="btnlite" type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" />
			&nbsp; <input class="btnmain" type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" />
			<!-- IF S_SAVE_ALLOWED -->&nbsp; <input class="btnlite" type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" /><!-- ENDIF -->
			<!-- IF S_HAS_DRAFTS -->&nbsp; <input class="btnlite" type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" /><!-- ENDIF -->
			&nbsp; <input class="btnlite" type="submit" accesskey="c" tabindex="9" name="cancel" value="{L_CANCEL}" />
		</td>
	</tr>

	<!-- IF S_SHOW_ATTACH_BOX --><!-- INCLUDE posting_attach_body.html --><!-- ENDIF -->

	<!-- IF S_SHOW_POLL_BOX -->
		<!-- INCLUDE posting_poll_body.html -->
	<!-- ELSEIF S_POLL_DELETE -->
		<tr>
			<td class="row1"><span class="genmed"><b>{L_POLL_DELETE}:</b></span></td>
			<td class="row2"><input type="checkbox" class="radio" name="poll_delete" /></td>
		</tr>
	<!-- ENDIF -->
<!-- ENDIF -->

<tr>
	<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}
		<input class="btnlite" type="submit" tabindex="10" name="preview" value="{L_PREVIEW}" />
		&nbsp; <input class="btnmain" type="submit" accesskey="s" tabindex="11" name="post" value="{L_SUBMIT}" />
		<!-- IF not S_SHOW_ATTACH_BOX and not S_SHOW_POLL_BOX -->
			<!-- IF S_SAVE_ALLOWED -->&nbsp; <input class="btnlite" type="submit" accesskey="k" tabindex="12" name="save" value="{L_SAVE_DRAFT}" /><!-- ENDIF -->
			<!-- IF S_HAS_DRAFTS -->&nbsp; <input class="btnlite" type="submit" accesskey="d" tabindex="13" name="load" value="{L_LOAD_DRAFT}" /><!-- ENDIF -->
		<!-- ENDIF -->
		&nbsp; <input class="btnlite" type="submit" accesskey="c" tabindex="14" name="cancel" value="{L_CANCEL}" />
	</td>
</tr>
</table>
{$CA_BLOCK_END}

<!-- IF not S_PRIVMSGS -->
	{S_FORM_TOKEN}
	</form>
<!-- ENDIF -->

<br clear="all" />

<!-- IF S_DISPLAY_REVIEW --><!-- INCLUDE posting_topic_review.html --><!-- ENDIF -->
<!-- IF S_DISPLAY_HISTORY --><!-- INCLUDE ucp_pm_history.html --><!-- ENDIF -->

<!-- IF S_PRIVMSGS -->
	<!-- INCLUDE ucp_footer.html -->
<!-- ELSE -->

	<!-- IF S_DISPLAY_ONLINE_LIST -->
		<br clear="all" />

		<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
		<tr>
			<td class="cat"><h4>{L_WHO_IS_ONLINE}</h4></td>
		</tr>
		<tr>
			<td class="row1"><span class="gensmall">{LOGGED_IN_USER_LIST}</span></td>
		</tr>
		</table>
	<!-- ENDIF -->

	<br clear="all" />

	<table width="100%" cellspacing="1">
	<tr>
		<td align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></td>
	</tr>
	</table>

	<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
posting_buttons.html
Code: Select all
    <tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
       <td colspan="2">
          <script type="text/javascript">
          // <![CDATA[
          
          // Define the bbCode tags
          var bbcode = new Array();
          var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
var imageTag = false;

// Helpline messages
var help_line = {
b: '{LA_BBCODE_B_HELP}',
i: '{LA_BBCODE_I_HELP}',
u: '{LA_BBCODE_U_HELP}',
q: '{LA_BBCODE_Q_HELP}',
c: '{LA_BBCODE_C_HELP}',
l: '{LA_BBCODE_L_HELP}',
o: '{LA_BBCODE_O_HELP}',
p: '{LA_BBCODE_P_HELP}',
w: '{LA_BBCODE_W_HELP}',
a: '{LA_BBCODE_A_HELP}',
s: '{LA_BBCODE_S_HELP}',
f: '{LA_BBCODE_F_HELP}',
e: '{LA_BBCODE_E_HELP}',
d: '{LA_BBCODE_D_HELP}',
t: '{LA_BBCODE_T_HELP}',
tip: '{L_STYLES_TIP}'
<!-- BEGIN custom_tags -->
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
<!-- END custom_tags -->
}

// ]]>
</script>
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>

<!-- IF S_BBCODE_ALLOWED -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - Start //-->
<!-- IF S_ABBC3_MOD and not S_ABBC3_DISABLED -->
<!-- INCLUDE posting_abbcode_buttons.html -->
<!-- ELSE -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - End //-->
<input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
<!-- IF S_BBCODE_QUOTE -->
<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
<input type="button" class="btnbbcode" accesskey="y" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />
<!-- IF S_BBCODE_IMG -->
<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<!-- IF S_LINKS_ALLOWED -->
<input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<!-- IF S_BBCODE_FLASH -->
<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
<!-- ENDIF -->
<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select></span>
<input type="button" class="btnbbcode" value="{L_SMILIES}" onclick="toggle_visibility('popup-smilies'); return false;" />
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - Start //-->
<!-- ENDIF -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - End //-->

<!-- ENDIF -->
</td>
</tr>
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - Start //-->
<!-- IF not S_ABBC3_MOD or S_ABBC3_DISABLED -->
<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
<td colspan="2">
<!-- BEGIN custom_tags -->
<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
<!-- END custom_tags -->
</td>
</tr>
<!-- ENDIF -->
<!-- IF S_BBCODE_ALLOWED -->
<tr>
<td id="helpline"<!-- IF $S_SIGNATURE or S_EDIT_DRAFT --> colspan="2"<!-- ENDIF -->>{L_STYLES_TIP}&nbsp;</td>
<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
<td class="genmed" align="center">{L_FONT_COLOR}</td>
<td class="genmed" align="center">
<span class="genmed nowrap"><select class="select_class" class="gensmall" name="addbbcode7" onchange="bbfontstyle('[color=' + this.form.addbbcode7.options[this.form.addbbcode7.selectedIndex].value + ']', '[/color]');this.form.addbbcode7.selectedIndex = 0;" onmouseover="helpline('fc');" onmouseout="helpline('tip');">
<!-- ENDIF -->
</tr>
<!-- ENDIF -->
<!-- ENDIF -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - End //-->[/code]
User avatar
By cisco007
#417
que hay que preguntar? nada mas busca en ese archivo a ver si esta esas lineas por ahí para que hagas la edición nada mas es una!

pon lo después de esto:
Code: Select all
				<!-- BEGIN custom_tags -->
				<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.A_BBCODE_HELPLINE}"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline2()"<!-- ENDIF --> />
				<!-- END custom_tags -->
User avatar
By Cruciattus
#420
Osea que, busco en posting_abbcode_buttons.html
esto
Code: Select all
<!-- BEGIN custom_tags -->
				<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.A_BBCODE_HELPLINE}"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline2()"<!-- ENDIF --> />
				<!-- END custom_tags -->
y despues coloco esto??
Code: Select all
<input type="button" class="btnbbcode" value="{L_SMILIES}" onclick="toggle_visibility('popup-smilies'); return false;" />
User avatar
By Cruciattus
#422
El archivo no se llama posting_abbcode_buttons.html
se llama posting_abbcode_buttons.js
es ese no?

No encuentro esas lineas, aqui dejo el archivo
Code: Select all
/**
* @package: phpBB 3.0.8 :: Advanced BBCode box 3 -> root/styles/abbcode
* @version: $Id: posting_abbcode_buttons.js, v 3.0.8-pl1 2010/09/13 10:06:28 leviatan21 Exp $
* @copyright: leviatan21 < info@mssti.com > (Gabriel) http://www.mssti.com/phpbb3/
* @license: http://opensource.org/licenses/gpl-license.php GNU Public License 
* @author: leviatan21 - http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=345763
* @Co-Author: VSE - http://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=868795
**/

var copy_paste = '';
/**
* Default values for width and height values for the wizard pop-up window
**/
var popup_width		= <!-- IF S_ABBC3_WIZARD_WIDTH -->{S_ABBC3_WIZARD_WIDTH}<!-- ELSE -->700<!-- ENDIF -->;
var popup_height	= <!-- IF S_ABBC3_WIZARD_HEIGHT -->{S_ABBC3_WIZARD_HEIGHT}<!-- ELSE -->400<!-- ENDIF -->;

/**
* Default wizard mode
* 0=Disable wizards | 1=Pop Up window | 2=In post (Ajax)
**/
var popup_wizards	= <!-- IF S_ABBC3_WIZARD_MODE eq '0' -->false<!-- ELSE -->true<!-- ENDIF -->;

/**
* Replace all bbcodes to a plain text
* Code based off : http://ufku.com/personal/bbc2html
* @param string		data		post text to convert
**/
function bbcode_to_plain(data)
{
	/** Have a possible bbcode ? **/
	if (data.indexOf('[') < 0)
	{
		return data;
	}
	/**
	* the RegExp() built a regular expression
	* Regular expressions are patterns used to match character combinations in strings.
	**/
	function bbcode_to_plain_create_regexp(pattern, modifiers)
	{
		return new RegExp(pattern, modifiers);
	}
	/**
	* The exec() method tests for a match in a string.
	* This method returns the matched text if it finds a match, otherwise it returns null.
	**/
	function bbcode_to_plain_matched_text(str, pattern, modifiers)
	{
		return bbcode_to_plain_create_regexp(pattern, modifiers).exec(str);
	}
	/**
	* The replace() method searches for a match between a substring and a string, and replaces the matched substring with a new substring
	**/
	function bbcode_to_plain_simple_replace(str)
	{
		return str.replace(basic_bbcode_match, bbcode_to_plain_pattern);
	}
	/**
	* The replace() method searches for a match between a regular expression and a string, and replaces the matched substring with a new substring
	**/
	function bbcode_to_plain_regexp_replace(str, replace)
	{
		for (var i in replace)
		{
			if (bbcode_to_plain_matched_text(str, i, 'gim'))
			{
				str = str.replace(bbcode_to_plain_create_regexp(i, 'gim'), replace[i]);
			}
		}
		return str;
	}
	/**
	* Check wich replacement we should apply
	**/
	function bbcode_to_plain_pattern(match_0, match_1, match_2, match_3)
	{
		if (match_3 && match_3.indexOf('[') > -1)
		{
			match_3 = bbcode_to_plain_simple_replace(match_3);
		}
	/** alert( '0('+$0+') 1('+$1+') 2('+$2+') 3('+$3+')'); **/
		switch (match_1)
		{
			case 'url':
			case 'email':
				if (match_3 != '' && match_2 != '')
				{
					match_3 = match_2;
				}
				break;
			case 'click':
					match_3 = match_2;
				break;
		}
		/** Nothing to do ? **/
		return match_3;
	/** return '['+ match_1 + (match_2 ? '='+ match_2 : '') +']'+ match_3 +'[/'+ match_1 +']'; **/
	}

	var basic_bbcode_match	 = bbcode_to_plain_create_regexp('\\[([a-z][a-z0-9]*)(?:=([^\\]]+))?]((?:.|[\r\n])*?)\\[/\\1]', 'gim');
	var basic_bbcode_replace = bbcode_to_plain_create_regexp('^(\\d+)x(\\d+)$');

	/** Special bbcodes **/
	var special_bbcodes_init = {
			code : [{'': ''}, '', ''],
			quote : [{'': ''}, '', ''],
			list : [{'': ''}, '', ''],
			bbvideo : [{'': ''}, '', ''],
			align : [{'': ''}, '', ''],
			tr : [{'': ''}, '', ''],
			td : [{'': ''}, '', ''],
			video : [{'': ''}, '', ''],
			gvideo : [{'': ''}, '', ''],
			quicktime : [{'': ''}, '', ''],
			ram : [{'': ''}, '', ''],
			flv : [{'': ''}, '', ''],
			flash : [{'': ''}, '', ''],
			web : [{'': ''}, '', '']
	};

	var special_bbcodes_array = {};
	for (var i in special_bbcodes_init)
	{
		if(i)
		{
			special_bbcodes_array['\\[('+ i +')]((?:.|[\r\n])*?)\\[/\\1]'] = function(match_0, match_1, match_2) { return bbcode_to_plain_regexp_replace(match_2, ''); };
			special_bbcodes_array['\\[('+ i +')(.*?)]((?:.|[\r\n])*?)\\[/\\1]'] = function(match_0, match_1, match_2, match_3) { return bbcode_to_plain_regexp_replace(match_3, ''); };
			special_bbcodes_array['\\[('+ i +')(\\=|\\s|)?(.*?)]((?:.|[\r\n])*?)\\[/\\1]'] = function(match_0, match_1, match_2, match_3) { return bbcode_to_plain_regexp_replace(match_3, ''); };
		//	special_bbcodes_array['\\[('+ i +')=(.*?)]((?:.|[\r\n])*?)\\[/\\1]'] = function(match_0, match_1, match_2, match_3) { return bbcode_to_plain_regexp_replace(match_3, ''); };
		}
	}

	/** Extra bbcodes **/
	var	extra_bbcodes_array = {
		'\\[\\*]' : ' ',
		'\\[tabs]' : '',
		'\\[tabs\\:(.*?)]' : ' $1',
		'\\[/tabs]' : '',
		'\\[(hr|tab(=[a-z0-9]*))]' : ''
	};

	return bbcode_to_plain_simple_replace(bbcode_to_plain_regexp_replace(bbcode_to_plain_regexp_replace(data, special_bbcodes_array), extra_bbcodes_array));
}

/**
* Help line tips values
**/
var help_line2 = {
<!-- BEGIN abbc3_tags -->
	<!-- IF abbc3_tags.BBCODE_ABBC3 and (abbc3_tags.BBCODE_MOVER or abbc3_tags.BBCODE_TIP or abbc3_tags.BBCODE_NOTE or abbc3_tags.BBCODE_EXAMPLE) -->
	'{abbc3_tags.BBCODE_NAME}' : ("{abbc3_tags.BBCODE_MOVER}" ? "{abbc3_tags.BBCODE_MOVER}" : "") + (("{abbc3_tags.BBCODE_TIP}" || "{abbc3_tags.BBCODE_NOTE}") ? " :" : "") + (("{abbc3_tags.BBCODE_TIP}") ? " {abbc3_tags.BBCODE_TIP}" : "") + (("{abbc3_tags.BBCODE_NOTE}") ? " {abbc3_tags.BBCODE_NOTE}" : "") + (("{abbc3_tags.BBCODE_EXAMPLE}") ? "\n{LA_ABBC3_EXAMPLE} : {abbc3_tags.BBCODE_EXAMPLE}" : ""),
	<!-- ENDIF -->
<!-- END abbc3_tags -->
	'abbc3_font'			: "{LA_ABBC3_FONT_MOVER} : " + "{LA_ABBC3_FONT_TIP}\n{LA_ABBC3_FONT_NOTE}",
	'abbc3_size'			: "{LA_ABBC3_SIZE_MOVER} : " + "{LA_ABBC3_SIZE_TIP}\n{LA_ABBC3_SIZE_NOTE}",
	'abbc3_highlight'		: "{LA_ABBC3_HIGHLIGHT_MOVER} : " + "{LA_ABBC3_HIGHLIGHT_TIP}\n{LA_ABBC3_HIGHLIGHT_NOTE}",
	'abbc3_color'			: "{LA_ABBC3_COLOR_MOVER} : " + "{LA_ABBC3_COLOR_TIP}\n{LA_ABBC3_COLOR_NOTE}",
	'abbc3_tip'				: "{LA_BBCODE_STYLES_TIP}"
};

/**
* Show help line tips
* @param string		help		string to display
* @param string		help_box	the element ID where the tip will be displayed
**/
function helpline2(help, help_box)
{
	if (!help)
	{
		help = 'abbc3_tip';
	}
	if (!help_box)
	{
		help_box = 'helpbox';
	}

	var helpbox = document.forms[form_name].elements[help_box];
	if (helpbox)
	{
		helpbox.value = (help_line2[help]) ? help_line2[help] : ((help_line[help]) ? help_line[help] : help);
	}
}

/**
* Main function Apply bbcodes
* based-of editor.js -> function bbfontstyle()
* @param string		bbcode		bbcode name
* @param string		bbopen		The open tag
* @param string		bbclose		The close tag
* @param bool		is_abbcode	is a custom bbcode or not
**/
function bbstyle2(bbcode, bbopen, bbclose, is_abbcode)
{
	// If this is a regular custom bbcode, just do it quicly in the regolar way
	if (!is_abbcode)
	{
		bbfontstyle(bbopen, bbclose);
		return;
	}

	theSelection = false;

	var textarea = document.forms[form_name].elements[text_name];

	textarea.focus();

	var selLength, selStart, selEnd, s1, s2, s3;

	if ((clientVer >= 4) && is_ie && is_win)
	{
		/** Get text selection **/
		theSelection = document.selection.createRange().text;
	}
	else if (document.forms[form_name].elements[text_name].selectionEnd && (document.forms[form_name].elements[text_name].selectionEnd - document.forms[form_name].elements[text_name].selectionStart > 0))
	{
		selLength	= textarea.textLength;
		selLength	= (typeof(selLength) == 'undefined' || selLength == '' || selLength === null) ? textarea.value.length : selLength;
		selStart	= textarea.selectionStart;
		selEnd		= textarea.selectionEnd;

		if (selEnd == 1 || selEnd == 2)
		{
			selEnd = selLength;
		}

		s1 = (textarea.value).substring(0, selStart);
		s2 = (textarea.value).substring(selStart, selEnd);
		s3 = (textarea.value).substring(selEnd, selLength);
		theSelection = s2;
	}

	var theSelectionLength = theSelection.length;

	switch (bbcode)
	{
	/** We make the life easyer for some bbcodes - Start **/	
		case "abbc3_tab" :
			bbfontstyle("[tab=30]", "");
			break;
		case "abbc3_anchor" :
			bbfontstyle("[anchor= goto=]", "[/anchor]");
			break;
		case "abbc3_mod" :
			bbfontstyle("[mod=\"{S_POST_AUTHOR}\"]", "[/mod]");
			break;
		case "abbc3_tabs" :
			bbfontstyle("[tabs][tabs: ]", "[/tabs]");
			break;
		case "abbc3_listb" :
			bbfontstyle("[list][*]", "[/list]");
			break;
		case "abbc3_listo" :
			bbfontstyle("[list=1][*]", "[/list]");
			break;
		case "abbc3_listitem" :
			bbfontstyle("[*]", "");
			break;
		case "abbc3_hr" :
			bbfontstyle("[hr]", "");
			break;
		case "abbc3_glow" :
			bbfontstyle("[glow=red]", "[/glow]");
			break;
		case "abbc3_shadow" :
			bbfontstyle("[shadow=blue]", "[/shadow]");
			break;
		case "abbc3_dropshadow" :
			bbfontstyle("[dropshadow=blue]", "[/dropshadow]");
			break;
		case "abbc3_blur" :
			bbfontstyle("[blur=blue]", "[/blur]");
			break;
		case "abbc3_wave" :
			bbfontstyle("[wave=blue]", "[/wave]");
			break;
		case "abbc3_imgshack" :
			popup('http://imageshack.us/', popup_width, popup_height);
		//	tinypic ¿?
		//	popup('http://ipostimage.org/', popup_width, popup_height);
		//	popup('http://www.imageposter.com/uploads/?mode=phpbb&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400', popup_width, popup_height);	*/
			break;
	/** We make the life easyer for some bbcodes - End **/	

	/** This bbcodes use wizard - Start **/
		/** This bbcodes was deprecated in v3.0.7 **/
		case "abbc3_upload" :
		case "abbc3_url" :
		case "abbc3_ed2k" :
		case "abbc3_email" :
		case "abbc3_img" :
		case "abbc3_thumbnail" :
		case "abbc3_rapidshare" :
		case "abbc3_testlink" :
		case "abbc3_click" :
		case "abbc3_table" :
		/** This bbcodes needs extra data **/
		case "abbc3_bbvideo" :
		case "abbc3_flash" :
		case "abbc3_flv" :
		case "abbc3_video" :
		case "abbc3_quicktime" :
		case "abbc3_ram" :
		case "abbc3_web" :
		/** Web videos bbcodes **/
		case "abbc3_stream" :
		case "abbc3_veoh" :
		case "abbc3_collegehumor" :
		case "abbc3_gvideo" :
		case "abbc3_youtube" :
		/** Gradient needs his own function **/
		case "abbc3_grad" :
		/** Extra Custom bbcodes - Start **/
		case "deezer" :
		/** Extra Custom bbcodes - End **/

			if (bbcode == "abbc3_grad")
			{
				if (typeof(theSelection) == 'undefined' || theSelection === null || theSelection == '')
				{
					alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_GRAD_MIN_ERROR}");
					return;
				}

				if (theSelectionLength > 120)
				{
					alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_GRAD_MAX_ERROR}" + theSelectionLength);
					return;
				}
			}
			if (bbcode == "abbc3_table" && (theSelection || !popup_wizards))
			{
				bbfontstyle("[table=][tr=][td=]", "[/td][/tr][/table]");
				return;
			}
			if ((theSelection || !popup_wizards) && bbcode != "abbc3_grad")
			{
				bbcode_extra = (bbcode == 'abbc3_bbvideo' || bbcode == 'abbc3_flash' || bbcode == 'abbc3_flv' || bbcode == 'abbc3_video' || bbcode == 'abbc3_quicktime' || bbcode == 'abbc3_ram') ? " {S_ABBC3_VIDEO_WIDTH},{S_ABBC3_VIDEO_HEIGHT}" : (bbcode == 'abbc3_web') ? ' 100%,100' : '';

				if ( bbcode == "abbc3_ed2k")
				{
					bbcode = "abbc3_url";
				}

				bbcode = bbcode.replace("abbc3_" , "");
				bbfontstyle('[' + bbcode + bbcode_extra + ']', '[/' + bbcode + ']');
				return;
			}

			var wizards_url = '{S_ABBC3_WIZARD_PAGE}';
			var wizards_params = '&abbc3=' + bbcode + '&form_name=' + form_name + '&text_name=' + text_name<!-- IF S_ABBC3_IN_ADMIN --> + '&admin=1'<!-- ENDIF -->;
		<!-- IF S_ABBC3_WIZARD_MODE eq '2' -->
			ABBC3_Ajax_send(wizards_url, wizards_params, bbcode);
		<!-- ELSE -->
			popup(wizards_url + wizards_params, popup_width, popup_height);
		<!-- ENDIF -->
			break;
	/** This bbcodes needs wizard - End **/

		case "abbc3_plain" :
			if (typeof(theSelection) == 'undefined' || theSelection == '' || theSelection === null)
			{
				alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_NOSELECT_ERROR}");
				return;
			}
			else
			{
				try {//	tempSelection = tempSelection.replace(/\[[^\]]*\]/gi,"");
						var tempSelection = bbcode_to_plain(theSelection);

						if ((clientVer >= 4) && is_ie && is_win)
						{
							document.selection.createRange().text = tempSelection;
						}
						else if (textarea.selectionEnd && (textarea.selectionEnd - textarea.selectionStart > 0))
						{
							textarea.value = s1 + tempSelection + s3;
							selEnd = textarea.selectionEnd = (textarea.value).substring(0, selStart).length + tempSelection.length;
						}
				} catch (e) {}
			}
			break;
		case "abbc3_cut" :
			if (typeof(theSelection) == 'undefined' || theSelection === null || theSelection == '')
			{
				alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_NOSELECT_ERROR}");
				return;
			}
			else
			{
				if ((clientVer >= 4) && is_ie && is_win)
				{
					document.selection.createRange().text = '';
				}
				else if (textarea.selectionEnd && (textarea.selectionEnd - textarea.selectionStart > 0))
				{
					textarea.value = (textarea.value).substring(0, selStart) + (textarea.value).substring(selEnd, selLength);
					selEnd = textarea.selectionEnd = (textarea.value).substring(0, selStart).length;
				}
			}
			break;
		case "abbc3_copy" :
			if (typeof(theSelection) == 'undefined' || theSelection == '' || theSelection === null)
			{
				alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_NOSELECT_ERROR}");
				return;
			}
			else
			{
				copy_paste = theSelection;
			}
			break;
		case "abbc3_paste" :
			if (copy_paste)
			{
				bbfontstyle(copy_paste, '');
			}
			else
			{
				alert("{LA_ABBC3_ERROR}\n{LA_ABBC3_PASTE_ERROR}");
			}
			break;

		/** This should never happens, just in case, let's phpbb3 take care of it **/
		default :
			bbfontstyle(bbopen, bbclose);
			break;
	}

	theSelection = '';
}

<!-- IF (S_ABBC3_COLOR_MODE eq 'dropdown' or S_ABBC3_HIGHLIGHT_MODE eq 'dropdown') or (S_ABBC3_COLOR_MODE eq 'fancy' or S_ABBC3_HIGHLIGHT_MODE eq 'fancy') -->
/**
* Dropdown Color pallette for highlight text & colour text
* Code from : http://www.mredkj.com/tutorials/tutorial005.html
* @param string		el		the element id
* @param string		mode	(fancy | dropdown)
**/
function ABBC3_palette(el, mode)
{
	var elSel = document.getElementById(el);

	if (!elSel)
	{
		return;
	}
	if (!mode)
	{
		mode = 'dropdown';
	}
	var color;
	var optn;
	var item;
	var numberList = {
		0 : '00',
		1 : '40',
		2 : '80',
		3 : 'BF',
		4 : 'FF'
	};

	if (mode == 'dropdown' && el == 'abbc3_color')
	{
		var topic_cur_post_id = document.forms[form_name].elements['topic_cur_post_id'];
			topic_cur_post_id = (topic_cur_post_id) ? parseInt(topic_cur_post_id.value) + 1 : parseInt('{S_POST_ID}', 10);
		var optn_className = (isEven(topic_cur_post_id)) ? 'bg2 row1' : 'bg1 row2';
	}

	for (var r = 4; r > -1; r--)
	{
		for (var g = 4; g > -1; g--)
		{
			for (var b = 4; b > -1; b--)
			{
				if (mode == 'fancy')
				{
					color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
					color = color.toLowerCase();
					item = document.createElement('li');
					item.innerHTML = '{LA_SAMPLE_TEXT}' + '&nbsp;(#' + color + ')';

					if (el == 'ul_color_selector')
					{
						item['onclick']=new Function('bbfontstyle("[color=#'+color+']", "[/color]"); return false;');
						item.style.color = '#' + color;
					}
					else
					{
						item['onclick']=new Function('bbfontstyle("[highlight=#'+color+']", "[/highlight]"); return false;');
						item.style.backgroundColor = '#' + color;
					}
					elSel.appendChild(item);
				}
				else if (mode == 'dropdown')
				{
					color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
					color = color.toLowerCase();
					optn = document.createElement('option');
					optn.text = '#' + color;
					optn.value = color;

					if (el == 'abbc3_color')
					{
						optn.className = optn_className;
						optn.style.color = '#' + color;
					}
					else
					{
						optn.style.backgroundColor = '#' + color;
					}
					elSel.options.add(optn);
				}
			}
		}
	}
}
/**
* The given number is even or odd ?
**/
function isEven(Number)
{
	return (Number%2 == 0) ? true : false;
}
<!-- ENDIF -->

<!-- IF S_ABBC3_BOXRESIZE -->
/**
* Resize a textbox - START
* @param int		height		amount of height to apply
* @param string		el			the element ID
* @param string		cookie_name	the name of the cookie to store the height
**/
function textbox_resize(height, el, cookie_name)
{
	/* if no element ID was passed, use the main ID */
	if (typeof(el) == 'undefined')
	{
		el = text_name;
	}

	/* if no cookir ID was passed, use the main ID */
	if (typeof(cookie_name) == 'undefined')
	{
		cookie_name = '{S_ABBC3_COOKIE_NAME}' + el;
	}

	/* Get the editor element */
	var editor = document.getElementById(el);

	/* Get the cookie height for this editor */
	/* If no cookie exist, create it whith the actual height for this editor */
	var the_cookie = ABBC3_load_cookie(cookie_name, editor.rows, 365);

	/* if no height was passed, try to read the cookie value */
	if (the_cookie !== 0 && typeof(height) != 'number')
	{
		height = parseInt(the_cookie, 10);
	}
	/* if height was passed, try to read the actual height */
	else
	{
		height = editor.rows + parseInt(height/10, 10);
	}

	/* if we have a new height, use it */
	if (!isNaN(height))
	{
		/* Reset the actual style height */
		if (editor.style.height)
		{
			editor.style.height = null;
		}
		/* resize the textarea */
		editor.rows = height;
		/* store the cookie */
		createCookie(cookie_name, editor.rows, 365);
	}
}

/**
* Manage the cookies
*	Get the cookie height for this editor
*	If no cookie exist, create it whith the actual height for this editor
* @param string		name		the name of the cookie to store the height
* @param int		value		height for this editor
* @param int		days		the numbers of days to store the cookie
**/
function ABBC3_load_cookie(name, value, days)
{
	var the_cookie = null;

	/* Get the cookie height for this editor */
	the_cookie = readCookie(name);

	/* If no cookie exist, create it whith the actual height for this editor */
	if (!the_cookie)
	{
		the_cookie = createCookie(name, value, days);
	}

	return the_cookie;
}

if (typeof createCookie != 'function')
{
	function createCookie(name, value, days)
	{
		if (days)
		{
			var date = new Date();
			date.setTime(date.getTime() + (days*24*60*60*1000));
			var expires = '; expires=' + date.toGMTString();
		}
		else
		{	
			expires = '';
		}

		document.cookie = name + '=' + value + expires + 'A_COOKIE_SETTINGS';
	}
}

if (typeof readCookie != 'function')
{
	function readCookie(name)
	{
		var nameEQ = name + '=';
		var ca = document.cookie.split(';');

		for (var i = 0; i < ca.length; i++)
		{
			var c = ca[i];

			while (c.charAt(0) == ' ')
			{
				c = c.substring(1, c.length);
			}

			if (c.indexOf(nameEQ) == 0)
			{
				return c.substring(nameEQ.length, c.length);
			}
		}

		return null;
	}
}
/** Resize a textbox - END **/
<!-- ENDIF -->

<!-- IF S_ABBC3_COMPACT -->
/**
* javascript for Bubble Tooltips by Alessandro Fulciniti
* http://pro.html.it - http://web-graphics.com 
* obtained from: http://web-graphics.com/mtarchive/001717.php
*
* MSSTI :
*	- added ability to perform tooltips on list elements
* @param string		id					the element ID
* @param string		headline			the title
* @param string		sub_id				unknown 
* @param string		content_direction	the text direction (rtl|ltr)
**/
function ABBC3_enable_tooltips_list(id, headline, sub_id, content_direction)
{
	var links, i, hold;

	s_content_direction = (content_direction) ? content_direction : 'rtl';
	head_text = headline;

	if (!document.getElementById || !document.getElementsByTagName)
	{
		return;
	}

	hold = document.createElement('span');
	hold.id = '_tooltip_container';
	hold.setAttribute('id', '_tooltip_container');
	hold.style.position = 'absolute';

	document.getElementsByTagName('body')[0].appendChild(hold);

	if (id === null)
	{
		links = document.getElementsByTagName('a');
	}
	else
	{
		links = document.getElementById(id).getElementsByTagName('a');
	}

	for (i = 0; i < links.length; i++)
	{
		if (sub_id)
		{
			if (links[i].id.substr(0, sub_id.length) == sub_id)
			{
				prepare(links[i]);
			}
		}
		else
		{
			prepare(links[i]);
		}
	}
}

/**
* Correct positioning of tooltip container
* dependance prepare()
*/
function locate(e)
{
	var posx = 0;
	var posy = 0;

	e = e.parentNode.parentNode;

	if (e.offsetParent)
	{
		for (posx = 0, posy = 0; e.offsetParent; e = e.offsetParent)
		{
			posx += e.offsetLeft;
			posy += e.offsetTop;
		}
	}
	else
	{
		posx = e.offsetLeft;
		posy = e.offsetTop;
	}

	document.getElementById('_tooltip_container').style.left = (s_content_direction == 'rtl' ? (posx-140) : (posx)) + 'px';
	document.getElementById('_tooltip_container').style.top  = (s_content_direction == 'rtl' ? (posy-90) : (posy-100)) + 'px';
}
<!-- ENDIF -->

<!-- IF S_ABBC3_WIZARD_MODE eq '2' -->
/**
* AJAX Form POST Request - HTML Form POST/Submit with AJAX/Javascript
*
* Base code :
*	http://www.captain.at/howto-ajax-form-post-request.php
*	http://en.wikipedia.org/wiki/XMLHttpRequest
*	http://developer.apple.com/internet/webcontent/xmlhttpreq.html
*	http://msdn.microsoft.com/en-us/library/ms537505%28VS.85%29.aspx
* @param string		url				the url to call
* @param string		parameters		the parameters for the url
* @param string		bbcode			the bbcode name 
* @param string		container_id	the element ID to display the result
**/
function ABBC3_Ajax_send(url, parameters, bbcode, container_id)
{
	var xmlhttp = false;

	if (!container_id)
	{
		container_id = 'ABBC3_Ajax_Wizards';
	}

    // branch for native XMLHttpRequest object (IE7, Opera 8.0+, Firefox, Safari)
    if (window.XMLHttpRequest && !(window.ActiveXObject))
	{
		try {
			xmlhttp = new XMLHttpRequest();
		} catch(e) {
			xmlhttp = false;
		}
	}
	// Support versions of Internet Explorer prior to Internet Explorer 7
	else if (window.ActiveXObject)
	{
		// modern versions
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e){
			// oldest versions
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				xmlhttp = false;
			}
		}
	}
	/**
	* Provide the XMLHttpRequest constructor for IE 5.x-6.x:
	* Other browsers (including IE 7.x-8.x) do not redefine
	* XMLHttpRequest if it already exists.
	* If native XMLHTTP has been disabled, developers can override the XMLHttpRequest property of the window object with the MSXML-XMLHTTP control, unless ActiveX has also been disabled, as in the following example.
	**/
	else if (typeof(XMLHttpRequest) == "undefined")
	{
		xmlhttp = function ()
		{
			try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch (e) {}
			try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch (e) {}
			try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
		};
	}
	else
	{
		document.getElementById(container_id).innerHTML = "{LA_ABBC3_AJAX_DISABLED}";
		return false;
	}

	if (xmlhttp)
	{
		ABBC3_Ajax_indicator('on');
		url = url.replace(/&/g, '&');
		parameters = parameters.replace(/&/g, '&') + '&ajax=true';
		// Event handler for an event that fires at every state change
		xmlhttp.onreadystatechange = function(){ ABBC3_Ajax_handler(xmlhttp, container_id, bbcode); }
		xmlhttp.open('POST', url + parameters, true);
		xmlhttp.send(parameters);
	}
}

/**
* Create a function that will handle the received data sent from the server
* @param string		xmlhttp			the ajax oblect
* @param string		bbcode			the bbcode name 
* @param string		container_id	the element ID to display the result
**/
function ABBC3_Ajax_handler(xmlhttp, container_id, bbcode)
{
	// Object status integer
	     if (xmlhttp.readyState == 0) { /* 0 = uninitialized */	}
	else if (xmlhttp.readyState == 1) { /* 1 = loading */		}
	else if (xmlhttp.readyState == 2) { /* 2 = loaded */		}
	else if (xmlhttp.readyState == 3) { /* 3 = interactive */	}
	else if (xmlhttp.readyState == 4) { /* 4 = complete */
		// in HTTP there are various status codes returned by both HEAD and GET requests, 200 means success, 404 means failure, and the others mean other things.
		if (xmlhttp.status == 200) // || xmlhttp.status == 0)
		{
			ABBC3_Ajax_indicator('off');
			// String version of data returned from server process
			var results = xmlhttp.responseText;
			ABBC3_Ajax_update(container_id, results);
			document.getElementById(container_id).style.display = 'block';
			if (bbcode == "abbc3_grad")
			{
				gradient_init();
			}
		}
		// And the others mean other things.
		else
		{	// Numeric code returned by server + String message accompanying the status code
			alert('{LA_GENERAL_ERROR} : ' + "\n" + xmlhttp.status + ' => ' + xmlhttp.statusText);
		}
	}
}

/**
* Pure innerHTML is slightly faster in IE 
*	code from : http://blog.stevenlevithan.com/archives/faster-than-innerhtml
* @param string		el			the element ID to display the result
* @param string		str			the result to display
**/
function ABBC3_Ajax_update(el, str)
{
	var ABBC3_Ajax_new_El;
	var ABBC3_Ajax_old_El = document.getElementById(el);

	if (ABBC3_Ajax_old_El !== null && typeof(str) != 'undefined')
	{
		ABBC3_Ajax_new_El = ABBC3_Ajax_old_El.cloneNode(false);
		ABBC3_Ajax_new_El.innerHTML = str;
		ABBC3_Ajax_old_El.parentNode.replaceChild(ABBC3_Ajax_new_El, ABBC3_Ajax_old_El);
	}
}

/**
* Manae the ajax spinning loading image
* @param string		mode	(on=display|off=hide|null=create)
**/
function ABBC3_Ajax_indicator(mode)
{
	var ABBC3_Ajax_image = document.getElementById('ABBC3_Ajax_image');
	var ABBC3_Ajax_indicator = document.getElementById('ABBC3_Ajax_indicator');

	if (ABBC3_Ajax_image)
	{
		ABBC3_Ajax_image.style.display = (mode == 'on') ? 'block' : 'none';
	}
	else
	{
		if (ABBC3_Ajax_indicator)
		{
			/** Create the image here **/
			ABBC3_Ajax_image = document.createElement('img');
			ABBC3_Ajax_image.setAttribute('id', 'ABBC3_Ajax_image');
			ABBC3_Ajax_image.setAttribute('src', '{S_ABBC3_PATH}/abbcode_ajax_loading.gif');
			ABBC3_Ajax_image.style.display = 'none';
			ABBC3_Ajax_indicator.appendChild(ABBC3_Ajax_image);
		}
	}
}
<!-- ENDIF -->
/**
* Manage initial functions
**/
function ABBC3_init()
{
<!-- IF S_ABBC3_COMPACT -->
	ABBC3_enable_tooltips_list('ul_selector', '{LA_ABBC3_HELP_DESC}', false, '{S_CONTENT_DIRECTION}');
<!-- ENDIF -->

<!-- IF S_ABBC3_HIGHLIGHT_MODE eq 'fancy' -->
	ABBC3_palette('ul_highlight_selector', '{S_ABBC3_HIGHLIGHT_MODE}');
<!-- ELSEIF S_ABBC3_HIGHLIGHT_MODE eq 'dropdown' -->
	ABBC3_palette('abbc3_highlight', '{S_ABBC3_HIGHLIGHT_MODE}');
<!-- ENDIF -->

<!-- IF S_ABBC3_COLOR_MODE eq 'fancy' -->
	ABBC3_palette('ul_color_selector', '{S_ABBC3_COLOR_MODE}');
<!-- ELSEIF S_ABBC3_COLOR_MODE eq 'dropdown' -->
	ABBC3_palette('abbc3_color', '{S_ABBC3_COLOR_MODE}');
<!-- ENDIF -->

<!-- IF S_ABBC3_BOXRESIZE -->
	textbox_resize();
<!-- ENDIF -->

<!-- IF S_ABBC3_WIZARD_MODE eq '2' -->
	ABBC3_Ajax_indicator('');
<!-- ENDIF -->
}

/** Install the safety net - START **/
if (window.onload_functions) // prosilver
{
	onload_functions[onload_functions.length] = "ABBC3_init();";
}
else if (typeof(window.addEventListener) != "undefined") // DOM
{
	window.addEventListener("load", ABBC3_init, false);
}
else if (typeof(window.attachEvent) != "undefined") // MSIE
{
	window.attachEvent("onload", ABBC3_init);
}
/** Install the safety net - END **/
User avatar
By cisco007
#423
no no es ese archivo es el que te dije, yo hace años tenia el mod instalado y el archivo que tenia que modificar era: [c]<!-- INCLUDE posting_abbcode_buttons.html -->[/c] y de acuerdo al archivo de instalación y tu archivo [c]<!-- INCLUDE posting_buttons.html -->[/c] el archivo que debes modificar es [c]<!-- INCLUDE posting_abbcode_buttons.html -->[/c] ese otro archivo que dices solo tienes el JS para funcionen todos los botones de ese mod.
Duda sobre BBcode

ya preguntaste ahi? [ Post made via Sony Xperi[…]

[DUDA] Imagen en Foros

Hola, Puse imágenes propias como íc[…]

Hola! queria saber si existe un mod que te muestre[…]

Hola, me gustaria saber si es posible modificar al[…]