Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Advertiser Approves Own Comments On Single Ad Page

  1. #1
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts

    Advertiser Approves Own Comments On Single Ad Page

    Advertiser Approves / Deletes comments on single listings page.

    Tested and works on a virgin 3.05.3 CP install. (only tested on localhost)

    I wanted this so that my advertisers have the option to approve or delete comments held in moderation on single ad listing page, i also didnt want advertisers going into wp-dashboard (basically because i cant be arsed to prettify it).

    The mod works like this:

    1) User leaves a comment on single ad listing page.

    2) Advertiser recieves a notification by email that a comment has been left and requires approval or delete. For approval email to advertiser use a plugin, plenty to choose from here WordPress › Search for comments notify « WordPress Plugins .

    3) Advertiser will login, go to listing and approves or deletes comments.

    4) Unmoderated (waiting approval) comments will be listed below the comments textarea. (see attached file)

    5) Advertiser has 2 options "Approve or Delete"

    6) Advertiser as post_author can only see and moderate own comments.

    Here we go:

    Step 1: Im wanting to keep peeps out of wp dashboard,
    so firstly in comments.php around line 108 change this
    Code:
    <p><?php _e('Logged in as','appthemes'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Logout of this account','appthemes'); ?>"><?php _e('Logout','appthemes'); ?> &raquo;</a></p>
    to this
    Code:
    <p><?php _e('Logged in as','appthemes'); ?> <a href="<?php echo get_option('siteurl'); ?>/profile"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(); ?>" title="<?php _e('Logout of this account','appthemes'); ?>"><?php _e('Logout','appthemes'); ?> &raquo;</a></p>
    Step 2 We need to alter Contributers role slightly so that they can edit posts.
    open up functions.php (not theme-functions.php) paste in this bit of code on the line above the final ?> tag:

    Code:
    // This full block of code goes into functions.php
    // Give the "contributor" role a new permission
    $obj_existing_role = get_role( 'contributor' );
    
    // add the "moderate post comments" capability
    $obj_existing_role->add_cap( 'edit_posts' );
    Posting restrictions means tutorial continues in next post
    Attached Images Attached Images
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

  2. The Following 3 Users Say Thank You to hugo For This Useful Post:

    destacamos (April 12th, 2011), eaport (May 10th, 2012), spymare (March 23rd, 2011)

  3. #2
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

  4. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  5. #4
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts

    Taking it a step further

    You must be an AppThemes customer and logged in to view this response. Join today!
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

  6. #5
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  7. #6
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #7
    Thread Starter
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

  9. #8
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #9
    alunsina's Avatar
    Join Date
    Oct 2010
    Location
    Philippines
    Posts
    53
    Thanks
    14
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #10
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Single Ad Page
    By essej88 in forum Help Using ClassiPress
    Replies: 6
    Last Post: December 16th, 2016, 11:39 AM
  2. Help with removing things off Single Ad page Please :)
    By homme143 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: February 17th, 2011, 03:40 PM
  3. The single jobs page categories
    By Fanatic in forum JobRoller General Discussion
    Replies: 17
    Last Post: February 9th, 2011, 09:12 AM