Editing/deleting reviews

This topic contains 26 replies, has 3 voices, and was last updated by  urbanfix 8 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #57184

    urbanfix
    Expired Member
    Post count: 310

    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,
    UF

    #57237

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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

    #57252

    urbanfix
    Expired Member
    Post count: 310

    Thankyou,
    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.

    #57523

    urbanfix
    Expired Member
    Post count: 310

    Any reply from Stiofan?
    Thanks, UF

    #57647

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #57668

    urbanfix
    Expired Member
    Post count: 310

    ‘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,
    UF

    #57678

    Paolo
    Site Admin
    Post count: 31206

    The edit links normally appears only for the admin.

    Thanks

    #57710

    urbanfix
    Expired Member
    Post count: 310

    I 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

    #57757

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi 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

    #57762

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    #57763

    urbanfix
    Expired Member
    Post count: 310
    This reply has been marked as private.
    #57772

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There 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

    #57778

    urbanfix
    Expired Member
    Post count: 310

    hey 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, UF

    #57932

    urbanfix
    Expired Member
    Post count: 310

    Hi, 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, UF

    #58086

    urbanfix
    Expired Member
    Post count: 310

    Any updates guys?

Viewing 15 posts - 1 through 15 (of 27 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket