My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 19, 2007 by luismmlino
Labels: Featured
Instructions  
Installation and Configuration instructions

Installation

Simple Installation

After downloading this plugin, extract the directory "wp-publications-archive".

Go to the Wordpress back-office and activate the plugin. This will create the needed tables in the database and the "publications" folder in your "wp-content\uploads" directory.

Advanced Installation

To integrate wordpress search with this plugin, in the file "search.php" for your current theme, you have to put this in the top of the page:

  <?php 
   include_once("wp-content/plugins/wp-publications-archive/wpup_FaceLinks.php"); 
  ?> 

where the navigation links are written

  posts_nav_link(' &minus; ', __('&laquo; Previous Page'), __('Next Page &raquo;'));

replace by

  if (class_exists('wp_uploader'))
      wpup_posts_nav_link(' ', __('&laquo; Previous Page'), __('Next Page &raquo;'));
  else
      posts_nav_link(' ', __('&laquo; Previous Page'), __('Next Page &raquo;'));

in order to display the publications diferently form posts, replace

  while (have_posts()) : the_post(); 

by

  while (have_posts()) : the_post(); 
      if ($post->post_type == "doc"){
        $test = new wp_uploader();
        $test->wpup_print_doc($post);
      }
      else {

and

    endif;
    endwhile;

by

      endif;
    }
    endwhile;

Configuration

To show publications on the front office you have to create a page and add the following content in the body (in HTML mode):

<!--wp_uploader_FO--> 

Save and publish the page and you are done.

Front Office CSS

.publications_title {
  font-weight: bold;
  padding-bottom: 3px;
}

#uploadForm{
  border: 1px dashed #ccc;
  padding: 5px;
  background-color: #f0f0f0;
}
#uploadForm input, select{
  margin: 0px 5px;
  vertical-align: middle;
}

.publications_authors {
  padding-bottom: 1px;
}

.publications_authors .authorslist {
  
}

.publications_authors .date {
  padding-left: 5px;
  color: #666666;
}


.publications_download {

}

.publications_summary {
  padding-left: 20px;
  padding-top: 3px;
  padding-bottom: 3px;
  
}

.publications_summary .title, .publications_keywords .title, .publications_categories .title{
  font-weight: bold;
  padding-right: 5px;
  color: #666666;
}


.publications_keywords {
  padding-left: 20px;
  padding-bottom: 3px;
}

.publications_categories {
  padding-left: 20px;
  padding-bottom: 3px;
}

.keywordstext {
  padding-left: 20px;
}

.file_face_type , .file_face_size{
	font-size: 0.6em;
	color: #666666;
	font-weight: bold;
	vertical-align:middle;
}

Sign in to add a comment
Hosted by Google Code