IP.Board Tutorials

Quick Reply Editor

Submitted by iNexus, , Thread ID: 32627

Thread Closed
17-04-2017, 02:53 PM
This post was last modified: 17-04-2017, 02:53 PM by iNexus
#1
It's not necessary to create own js classes to handle this[Image: clear.png]

You can use the xenforo quick_reply template, which will handle EVERYTHING for you
You only need to set some variables


<link rel="xenforo_template" type="text/html" href="quick_reply.html">
<xen:set var="$formAction">{xen:link pages, $page}</xen:set>
<xen:set var="$lastDate">{$lastMessageDate}</xen:set>
<xen:set var="$showMoreOptions">0</xen:set>
1. formAction => where should the data be sent
2. lastDate => This variable is necessary to get ALL NEW COMMENTS made in the time, while you was viewing the page

And your comments list HAVE TO have the id messageList (requested by discussion.js to know where to put the new comments)


I would suggest to check the quick_reply template & discussion.js file

On serverside you need to grab the latest posts made since lastDate and return them

And if you ask for a demo? I`m sorry but i dont have.

Users browsing this thread: 2 Guest(s)