WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: uCan Post] Add expiry date and archive category to a post form? (3 posts)

  1. Martinl276
    Member
    Posted 2 years ago #

    I want my authors to create posts without having to access the dashboard, so I activated the "uCan Post" plugin. Great plugin and it does ALMOST everything I want it to do, but... I also need to allow my authors to select a date when the post expires and, as Administrator, I would like to set the category that the expired post will be moved to (i.e. my hidden EXPIRED category).

    Does anyone know of an additional plugin or code?

  2. 70074512
    Member
    Posted 2 years ago #

    best plugin so far is: post expirator...
    unfortunately, I couldn't add it to the submissions form...
    You can view my ticket here:
    http://wordpress.org/support/topic/plugin-post-expirator-show-box-in-user-end-for-guest-posts

  3. 70074512
    Member
    Posted 2 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:

    <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:
    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 Topic