===================================================
======= Photo Popup Template Modifications ========
===================================================


*********************************************************************************
*** IMPORTANT NOTE: ALL TEMPLATE CHANGES BELOW 3.3 ARE OBSOLETE! PLEASE REDO! ***
*********************************************************************************


============ 1. FOR INSERT YOUR FOTOS LINK IN MAIN EDITOR ============

In template editor_smiliebox look for:
--------------------------------------------------------------------------------
<div id="smiliebox" style="display:none"></div>
</if>
--------------------------------------------------------------------------------

Add below:
--------------------------------------------------------------------------------
<fieldset id="photobox" title="$vbphrase[photo_popup_my_photos]">
    <legend>$vbphrase[photo_popup_my_photos]</legend>
    <table cellpadding="4" cellspacing="0" border="0" align="center">
        <tr>
            <td class="smallfont" colspan="$vboptions[smcolumns]">
                       [<a href="#" onclick="window.open('$vboptions[bburl]/photo_popup.php?$session[sessionurl]e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">$vbphrase[photo_popup_insert]</a>]</td>
        </tr>
    </table>
</fieldset>
--------------------------------------------------------------------------------



============ 1. ALTERNATE: FOR BUTTON IN MAIN EDITOR ============

Please note: this template edit can be used as an alternative to the "insert your fotos"-link. It is not done automatically by TMS. You probably want to use only one of the two alternatives. Instead of doing this template edit, you also can create a plugin as described in this post: http://www.vbulletin.org/forum/showpost.php?p=1734291&postcount=187

In template editor_toolbar_on look for
--------------------------------------------------------------------------------
			<if condition="$vBeditTemplate['extrabuttons'] != '' ">
--------------------------------------------------------------------------------

Add before:
--------------------------------------------------------------------------------
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

		<td> <a href="#" onclick="window.open('$vboptions[bburl]/photo_popup.php?$session[sessionurl]e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">
<img src="$stylevar[imgdir_editor]/photo_popup.png" border="0" /></a></td>
--------------------------------------------------------------------------------



============ 2. FOR BUTTON IN QUICKEDIT ============

In template postbit_quickedit look for
--------------------------------------------------------------------------------
			<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
--------------------------------------------------------------------------------

Add below:
--------------------------------------------------------------------------------
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

		<td> <a href="#" onclick="window.open('$vboptions[bburl]/photo_popup.php?$session[sessionurl]e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">
<img src="$stylevar[imgdir_editor]/photo_popup.png" border="0" /></a></td>
--------------------------------------------------------------------------------



============ FOR BUTTON IN QUICKREPLY ============

In template showthread_quickreply look for:
--------------------------------------------------------------------------------
	<if condition="$show['quote_bbcode']">
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
		<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
	</if>
--------------------------------------------------------------------------------

Add below:
--------------------------------------------------------------------------------
		<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>

<td> <a href="#" onclick="window.open('$vboptions[bburl]/photo_popup.php?$session[sessionurl]e=$editorid','fotos','scrollbars=yes,resizable=yes,width={$vbulletin->options['photo_popup_width']},height={$vbulletin->options['photo_popup_heigth']}'); return false" title="$vbphrase[photo_popup_insertlink]">
<img src="$stylevar[imgdir_editor]/photo_popup.png" border="0" /></a></td>
--------------------------------------------------------------------------------