InstallationSimple InstallationAfter 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 InstallationTo 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(' − ', __('« Previous Page'), __('Next Page »'));replace by if (class_exists('wp_uploader'))
wpup_posts_nav_link(' ', __('« Previous Page'), __('Next Page »'));
else
posts_nav_link(' ', __('« Previous Page'), __('Next Page »'));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;ConfigurationTo 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;
}
|