Post Expirator
Show box in user end - for guest posts (3 posts)

  1. 70074512
    Posted 4 years ago #

    Thanks for the great plugin! I've tried several ones, but this is definitely the best! I only need to create a box (similar to the meta box at the back-end), because I'm using guest post plugin (ucan post)... Could you please help me?


    my website is: http://qrspace.coolestech.com

  2. 70074512
    Posted 4 years ago #

    looks like the whole point lies in the code with the comment "Called when post is saved - stores expiration-date meta value". Is it as simple as adding drop boxes with labels $day,$hour etc...?
    Could you please guide me? Or if you have time could you please write some sample code?

  3. 70074512
    Posted 4 years ago #

    For anyone interested and needs a quick solution, here's a workaround I found if you are using UCAN Post plugin (you can see it in action here: http://qrspace.coolestech.com, create a new post and click add expiry):

    1- Go to the directory: /ucan-post/views
    2- Edit the file: UCAN-Publish.php

    The file content should be like this:

      <strong style="font-size:18px;color:blue;"> <?php echo __('Congratulations, your post was submitted successfully!', 'ucan-post'); ?>
      if($this->ucan_options['uCan_Moderate_Posts']){ ?>
        <p> <strong> <?php echo __('Your post is awaiting moderation and should be available soon.', 'ucan-post'); ?> </strong> </p>
    <?php }
        $maybe_view_new_post = '<a href="'.$new_post_permalink.'">'.__('View My Submission', 'ucan-post').'</a>';
    	$maybe_edit_new_post = '<a href="'.get_edit_post_link($new_post_id).'">Add Expiry Date</a>';?>
      <?php echo $maybe_view_new_post;
      echo '  |  ';
       echo $maybe_edit_new_post; ?>

    This will lead to the user going to the edit post page where the meta box is available, view how it looks here:
    http://qrspace.coolestech.com, (create a new post and click add expiry)

    (You can Select all contents of the file and replace them with the above code ;) )

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Expirator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic