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.
There are currently no options to configure, and no additional libraries required to run this, just plug and play.
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
If you have any concerns in regards to this, please contact me.
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.
There are currently no options to configure, and no additional libraries required to run this, just plug and play.
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
If you have any concerns in regards to this, please contact me.