AJAX Preview For New Thread / Reply 1.3

I have 1.2...

------------------------------------
By : vBulletin Expert
------------------------------------
Please visit to see more products!!!
------------------------------------

What does it do?

- Allows you to see the preview without leaving the page! via AJAX!
- See Demo.gif

-----
To Do
-----

- Add loading image/text

---------------
Version History
---------------

----------
06/07/2007
----------

1.2
~~~

- Fixed image issue
- Added AME - Auto Media Embedding preview AME - Auto Media Embedding (youtube, Amazon, google, myspace, etc...) - vBulletin.org Forum

----------
05/07/2007
----------

1.1
~~~

- Phrase added
- Cached templates

1.0
~~~

- First Release

------
Step 1
------

Install the product

Admin CP -> Plugins & Products -> Manage Products -> [Add/Import Product]


------
Step 2
------


In newthread AND newreply TEMPLATES


IN EACH TEMPLATE THERE ARE TWO OCCURRENCESES OF THE "FIND" CODE, SO THATS 4 REPLACEMENTS IN TOTAL

~~~~
FIND
~~~~

<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />

~~~~~~~~~~~~
REPLACE WITH
~~~~~~~~~~~~

<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" onclick="update_preview(); return false;" accesskey="r" tabindex="1" />


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IN THE SAME TEMPLATES - newthread AND newreply
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

IN EACH TEMPLATE THERE IS ONLY ON OCCURRENCES OF THE "FIND" CODE, SO THATS 2 REPLACEMENTS IN TOTAL

~~~~
FIND
~~~~

<if condition="$show['misc_options']">
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div></if>
$disablesmiliesoption
</div>
</fieldset>
</if>

~~~~~~~~~~~~
REPLACE WITH
~~~~~~~~~~~~

<if condition="$show['misc_options']">
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>
<if condition="$show['parseurl']"><div><label for="cb_parseurl"><input type="checkbox" name="parseurl" value="1" onclick="(this.value==1) ? this.value=0 : this.value=1;" id="cb_parseurl" tabindex="1" $checked[parseurl] />$vbphrase[automatically_parse_links_in_text]</label></div><else /><input name="parseurl" type="hidden" value="0" id="cb_parseurl"></if>
<if condition="$disablesmiliesoption">
$disablesmiliesoption
<else />
<input name="disablesmilies" type="hidden" value="0" id="cb_disablesmilies">
</if>
</div>
</fieldset>
</if>


--------
ALL DONE
--------

vBulletinExpert.com is NOT affilliated with Jelsoft or vBulletin.
 
Back
Top