Easy User Uploads Feature Added

We’ve just added a new and recently requested feature to the Simple Intranet plugin, which is easy uploads right from a page.  Typically an admin or editor would have to use the Media uploader inside the WordPress dashboard.  Well, no more!  You can now include an upload form to add files directly to your “/wp-content” folder.  You can restrict who sees the upload form by role, and what directory you are uploading the files to.

Display Form

Just add the shortcode: [upload uploadpath=”testing1″] to your post or page to add an upload form.  This example shows an upload form where files will be uploaded to the “yoursite.com/wp-content/testing1” directory where default upload size is 10 MB.

Other examples;
[upload uploadpath=”testing1″ ]
– shows an upload form to the Administrator only where files will be uploaded to the “yoursite.com/wp-content/testing1” directory

[upload uploadpath=”testing1″   uploadrole=”editor,author” maxsize=”25″]
– shows a listing of all files uploaded to the “yoursite.com/wp-content/testing1” directory who are assigned Editor or Author roles by WordPress.

Other options for inside the [upload] shortcode;

  • uploadpath: The default value is “uploads”. If you want to upload files outside wp-content folder, then put a double dot (..) at the beginning of your uploadpath value.
  • uploadid: This is the ID of every instance of the plugin inside the same page, where IDs are basic integers only.
  • uploadtitle: The heading above the upload button, where the default value is “Upload a file”.
  • selectbutton: The title of the select button, where the default value is “Select File”.
  • uploadbutton: The title of the upload button, where the default value is “Upload File”.
  • uploadpatterns: This is allows you to restrict the types of files that can be uploaded. For instance, in order to upload only pdf files put “*.pdf”. You can use more that one filters, separated by comma, for instance “*.pdf,*.doc”.

Display Files

[upload_list dir=”testing1″]
– shows a listing of all files uploaded to the “yoursite.com/wp-content/testing1” directory

Screenshot Upload Example


Plugin Mods With A Custom Theme

You can use our Simple Intranet super-plugin with your own theme by following these steps:

1) Header.php File

Modify your theme’s header file to insert the custom logo and a search box off to the right.  Look for the header.php file in the Simple Intranet theme, and see this code below to activate/insert the get_option(‘add_logo_filename’) function.

<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img id="site-logo-image" src="<?php echo get_option('home'); ?>/wp-content/uploads/logos/<?php echo get_option('add_logo_filename');?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a>

<div class="searchright"> <?php get_search_form(); ?> </div>

You may need to add this option below if your don’t have a custom logo uploaded;

<?php if (!get_option('add_logo_filename')) {;?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup><?php };?>

2) Simple.php Template File

In your custom theme settings area, make sure you select a page that references the “Simple Intranet” template as your static front page option.  See the simple.php page template file included in the Simple Intranet theme for reference.

To customize a page that shows the Activity Feed, just reference the page or post ID in the Settings / Activity Feed menu.

3) Employees.php Template File

To show your employee directory, simply past the shortcode [employees] in a post or page where you want it to display.

4) Sidebar.php

To add a left (sidebar-1) and a right sidebar (sidebar-2), you may wish to reference this code below in the SimpleIntranet theme.
<?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
<div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</div><!-- #secondary -->
<div id="tertiary" class="widget-area" role="complementary">
<?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?>
<?php endif; // end sidebar widget area ?>
</div><!-- #tertiary .widget-area -->
<?php endif; ?>

 5) Update Stylesheets

Here are the relevant style sheet references that influence the activity feed, commenting (feed posts for “What are you working on?”) and the employee directory;
#page {margin-top:0px;}
#page { max-width: 989px;}

#primary {
float: left;
margin: 0 -26.4% 0 0;
width: 100%;
#content {
margin: 0 34% 0 20%;
width: 53.4%;
#secondary {
float: right;
margin-right: 2.6%;
width: 20.8%;
#tertiary {
position: relative;
float: left;
width: 18.8%;
margin-left: -73.5%;

.searchright {
float: right;
margin-right: 5.6%;
.employeephoto {
float: left;
padding: 0 10px 0 10px;
.employeebio {
display: block;
line-height: 1.5;
padding: 10px 0 20px 0;

.comments-title {
margin-bottom: 0px;
margin-bottom: 1.428571429rem;
font-size: 16px;
font-size: 1.142857143rem;
line-height: 1.5;
font-weight: normal;
.comments-area article {
margin: 0 0;
margin: 0.214285714rem 0;
.comments-area article header {
margin: 0 0 15px;
margin: 0 0 1.428571429rem;
overflow: hidden;
position: relative;
.comment-content {
margin: 0 0;
padding: 0 0;

#respond {
margin-top: 0px;
margin-top: 1.428571429rem;
#respond form {
margin: 0 0;
margin: 1.714285714rem 0;
#respond form p {
margin: 5px 0;
margin: 0.785714286rem 0;
#respond form p.logged-in-as {
margin-bottom: 5px;
margin-bottom: 1.714285714rem;

.commentlist .pingback {
line-height: 1.714285714;
margin-bottom: 4px;
margin-bottom: 1.714285714rem;