Wrong author in selective quotatation - QuickReply Reloaded
Wrong author in selective quotatation
1. User A writes a post
2. User B quotes post from user A.
3. A is marked as quotation author (and this is correct)
4. User C selects part of quotation posted by user B and submit post
5. B is marked as quotation author (which is incorrect - it should be user A)
Is there any chance to change this behavior?
EDIT:
There is another problem with qoutation author (it is connented with iPhone i suppose).
Sometimes if user write one post (using AJAX) and ten another with qotation - the qotation in second post has wrong author too.
-
- Registered User
- Posts: 8
- Joined: Fri Mar 29, 2019 7:32 pm
- Contact:
Re: Wrong author in selective quotatation
can fix it
-
- Registered User
- Posts: 59
- Joined: Fri Feb 10, 2017 8:16 am
- Contact:
Re: Wrong author in selective quotatation
-
- Registered User
- Posts: 529
- Joined: Sat Jun 30, 2007 12:42 pm
- Contact:
Re: Wrong author in selective quotatation
edit file styles/all/template/quickreply_plugins.js
after:
Code: Select all
/**
* Inserts a quote from the specified post to quick reply textarea.
*/
self._insertQuote = function() {
Code: Select all
var selection = window.getSelection();
var node = selection.anchorNode;
while (node.nodeName != 'BODY'){
node = node.parentNode;
if (node.id.indexOf('post_content')>=0){
var id = parseFloat(node.id.replace('post_content',''));
self._postID=id;
}
}
-
- Registered User
- Posts: 59
- Joined: Fri Feb 10, 2017 8:16 am
- Contact:
Re: Wrong author in selective quotatation
-
- Registered User
- Posts: 8
- Joined: Fri Mar 29, 2019 7:32 pm
- Contact:
Re: Wrong author in selective quotatation
Code: Select all
Uncaught TypeError: Cannot read property 'nodeName' of null
-
- Registered User
- Posts: 8
- Joined: Fri Mar 29, 2019 7:32 pm
- Contact:
Re: Wrong author in selective quotatation
- Татьяна5
- Registered User
- Posts: 143
- Joined: Wed Feb 13, 2013 5:30 pm
- Name: Tatiana
- Contact:
Re: Wrong author in selective quotatation
-
- Registered User
- Posts: 8
- Joined: Fri Mar 29, 2019 7:32 pm
- Contact:
- Татьяна5
- Registered User
- Posts: 143
- Joined: Wed Feb 13, 2013 5:30 pm
- Name: Tatiana
- Contact: