Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 70074512

    (@70074512-1)

    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?

    Thread Starter 70074512

    (@70074512-1)

    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: https://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:

    <p>
      <strong style="font-size:18px;color:blue;"> <?php echo __('Congratulations, your post was submitted successfully!', 'ucan-post'); ?>
    </p>
    <?php
      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 }
      else
        $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>';?>
    <p>
      <?php echo $maybe_view_new_post;
      echo '  |  ';
       echo $maybe_edit_new_post; ?>
    </p>

    This will lead to the user going to the edit post page where the meta box is available, view how it looks here:
    https://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 ?? )

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Expirator] Show box in user end – for guest posts’ is closed to new replies.