Editing/deleting reviews
This topic contains 26 replies, has 3 voices, and was last updated by urbanfix 9 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 16, 2015 at 12:30 pm #57184
Hi guys,
I created two posts re this and then realised i’m an idiot. Its currently not possible!I have found the following plugin not sure if it will or wont work.
The plugin states i must add
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Edit'); } ?> <?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Delete'); } ?>to the comments.php file of your template, in the loop of the comments list (for example after comment_text() ) :
I am wondering if there is a better place for me to add this code.
Thanks,
UFOctober 16, 2015 at 6:16 pm #57237Hi,
I’m almost positive there are hooks that we can use for this. I’ll ask to Stiofan to provide an example.
He’ll probably reply tomorrow. Today he’s already off.
Thanks
October 16, 2015 at 7:34 pm #57252Thankyou,
I have found another option which is working but its in no way what i want, its far too bloated, and slowed my site right down.
Lucky Stiofan! I look forward to his reply,
thanks, UF.October 20, 2015 at 10:59 am #57523Any reply from Stiofan?
Thanks, UFOctober 21, 2015 at 9:35 am #57647Hi UF,
I assume you want it to appear instead of the normal edit link?
If so you can use this code. (not tested)
add_filter('edit_comment_link','my_edit_comment_link',10,1); function my_edit_comment_link($link){ if ( class_exists( 'WPEditableComments' ) ) { $link = WPEditableComments::edit('Edit'); $link .= WPEditableComments::delete('Delete'); } return $link; }Thanks,
Stiofan
October 21, 2015 at 2:27 pm #57668‘normal edit link’ Where should this appear (please specify pages)?
Should users be able to edit their reviews by default?
I am under the impression they cannot, hence why i want to implement this as a solution..
Thanks,
UFOctober 21, 2015 at 3:31 pm #57678The edit links normally appears only for the admin.
Thanks
October 21, 2015 at 6:40 pm #57710I tried the code below but obviously it dint work as i wanted because the link only appears for admin!
I am currently using Ajax Edit Comments which works for admin, and displays the correct links to normal logged in users (for example a user can only edit their own content..!) however, even though the edit box displays, once the user clicks save it gets stuck and does nothing..
It works for the admin user and no body else!
I understand this is out of support and you guys dont have to answer this sort of thing but at present the plugin authors aren’t able to offer support either..!Thanks, UF
October 22, 2015 at 11:17 am #57757Hi UF,
SO what plugin do u want help with? I tested Ajax edit comments and it seemed to work ok for me to edit text for both admin and subscriber.
Stiofan
October 22, 2015 at 12:33 pm #57762This reply has been marked as private.October 22, 2015 at 12:34 pm #57763This reply has been marked as private.October 22, 2015 at 1:35 pm #57772There was a JS error in your quick code which i have fixed.
The comments edit was failing becasue of a php warning about adding slashes, i added this to your child theme functions to stop the warning from showing (not resolve it) and it now works.// hide PHP warnings/errors/notices error_reporting(0);Thanks,
Stiofan
October 22, 2015 at 2:57 pm #57778hey Stiofan unfortunately this hasnt worked, i still cant successfully edit comments, they go to the spam folder and all sorts!
Its a real shame, I was really relying on this and just assumed it was possible!
Thanks for your help, if you have any other ideas please let me know!
Thanks, UFOctober 24, 2015 at 11:51 am #57932Hi, the problem is something to do with the buddypress integration addon, without it enabled i can edit my comments using the Listr account…
Any idea what the problem is?
Thanks, UFOctober 26, 2015 at 10:20 pm #58086Any updates guys?
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket