vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328360

DRC - Live Previews
by Dr.CustUmz
23 Nov 2020 03:26

3 Attachment(s)
you must have jquery in your template in order for this to work, I did not provide it in the plugin because almost every site already has jQuery.
if you need jQuery you can install Drc -Core although is not required.

After searching for something to display live previews of a thread as it was being typed I came across two mods with similar functions although you needed to click to preview. I wanted something more automatic.

There are many ways to implement a "textarea" output to display things in real time as it's typed, but what about BBCODE we need to be able to show BBCODE within our preview, along with custom BBCODE.

I could have created my own JS and allow users to list their BBCODES as an option, but why make the end user enter every BBCODE they have in a list. Thus I opted to use vbulletin's default parser. Calling it every time there was a keypress was entered could prove to be VERY problematic for larger sites with multiple users creating threads at the same time. To overcome this I chose to add a delay, so when a user stops typing then the function is called thus providing the "live preview" those of you who have ever used codepen.io this feature is exactly like that.

Live previews work in:
New threads
Private Messages
Edit Thread
New Reply

Upon Downloading any DRC product you acknowledge and agree to abide by the following:
Products are designed for default vBulletin, downloads are as is and not guaranteed to work with your custom site.
You are permitted to alter the product code and images for your own personal use.
Under no circumstances is the code (original or modified) permitted to be redistributed.
Exceptions will only be made with written permission from Dirt RIF CustUmz.
All copyright notices must remain in the templates and are not to be modified.
Unless a One-Time or Universal Branding Free license is purchased. (contact me via PM until the shop is complete)
DRC products will collect installation statistics DETAILS HERE
If you have any concerns in regards to this, please contact me.

lange 23 Nov 2020 09:41

Sorry, I am not sure I understand the description. Does this also work with custom BBodes?

Dr.CustUmz 23 Nov 2020 11:23

Quote:

Originally Posted by lange (Post 2604784)
Sorry, I am not sure I understand the description. Does this also work with custom BBodes?

yes, if you experience anything it does not function with just let me know.

puertoblack2003 29 Nov 2020 12:13

nice mod. i guess my typing to fast before preview catches ups ..lol

Dr.CustUmz 29 Nov 2020 20:40

Quote:

Originally Posted by puertoblack2003 (Post 2604908)
nice mod. i guess my typing to fast before preview catches ups ..lol

you must stop typing for the preview to show.


All times are GMT. The time now is 19:38.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.