We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Quick Quote / Quick Reply
Topic Started: Dec 29 2016, 09:23 PM (436 Views)
DaPizzaMan
Member Avatar
#TeamSupport

Code Name: Quick Quote / Quick Reply

What the code does: Adds a "Quick Quote" button next to the Quote button underneath a post that, when clicked, will add the content of that post to the fast reply for a... fast reply! You can see what the code does here when you're logged in.

How to use the code: You can simply install the code as is or modify the "Quick Quote" text/button. To do so, change Quick Quote on this line (make sure to leave the single quotation marks):
Code:
 
quickQuote.button = 'Quick Quote'; // Plain Text or HTML (<img>, <span>, <div>) accepted

How to install the code: Add the code to Admin CP > Board Template > Below the Board.

Extra notes: This code was inspired by a forum I frequent that runs on the XenForo software. That forum has an immensely useful feature that does exactly what this code does, so I decided to create my own version of the code for ZB. :)
Code:
 
<script type="text/javascript">
var quickQuote = {};
$(function() {
quickQuote.button = 'Quick Quote'; // HTML (<img>, <span>, <div>) accepted
$.ajax({
url: 'http://b3.ifrm.com/30296/128/0/p3001561/QuickQuote.js',
dataType: 'script',
cache: true
});
});
</script>
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
NaN: http://imgur.com/a/NeUk7
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Cory
Dec 29 2016, 09:39 PM
:facepalm:

May I see the topic you tested that in? What was the timestamp (One minute ago, I assume)? I swear I just did so much testing.
Offline Profile Quote Post Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
http://s1.zetaboards.com/Cory/topic/5756055/1/

Same JavaScript error on every post in that topic.
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Cory
Dec 29 2016, 10:00 PM
http://s1.zetaboards.com/Cory/topic/5756055/1/

Same JavaScript error on every post in that topic.
I caught the bug and squashed it. Thanks for pointing that out, Cory.
Offline Profile Quote Post Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

I updated the code so that the textarea is in focus when you quick quote to make it even quicker!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply