Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
<?php include("gallery.php"); ?>
Instead, you should have this code:<?php include("path_to_Plogger_installation_from_server_root/gallery.php"); ?>
Does that make sense? You may also be able to use relative paths, but that depends on your server setup as well.require_once("lib/gettext/streams.php");
require_once("lib/gettext/gettext.php");
$locale = "en_US";
$mofile = "../plog-translations/" . $locale . ".mo";
// If the mo file does not exist or is not readable, or if the locale is
// en_US, do not load the mo.
if ( is_readable($mofile) && ($locale != 'en_US') ) {
$input = new FileReader($mofile);
} else {
$input = false;
}
$l10n = new gettext_reader($input);
// Return a translated string.
function plog_tr($text) {
global $l10n;
return $l10n->translate($text);
}
if (!class_exists('streamreader')) {
require_once(PLOGGER_DIR."lib/gettext/streams.php");
require_once(PLOGGER_DIR."lib/gettext/gettext.php");
}
if (defined('PLOGGER_LOCALE') && PLOGGER_LOCALE!=='' && strlen(PLOGGER_LOCALE) >= 2) {
$locale = PLOGGER_LOCALE;
} else {
$locale = "en_US";
}
$language = strtolower(substr($locale,0,2));
$mofile = PLOGGER_DIR."plog-translations/".$locale.".mo";
// If the mo file does not exist or is not readable, or if the locale is
// en_US, do not load the mo.
if ( is_readable($mofile) && ($locale != 'en_US') ) {
$input = new CachedFileReader($mofile);
} else {
$input = false;
}
$plog_l10n = new gettext_reader($input);
// Return a translated string.
function plog_tr($text) {
global $plog_l10n;
if (isset($plog_l10n)){
return $plog_l10n->translate($text);
} else {
return $text;
}
}
<?php
ini_set('include_path', ini_get('include_path'));
@ini_set("arg_separator.output","&");
@ini_set("max_execution_time", "300");
@ini_set("memory_limit", "64M");
define('PLOGGER_DIR',dirname(__FILE__) . '/');
define('TABLE_PREFIX','plogger_');
$config_table = TABLE_PREFIX.'config';
define('THUMB_SMALL',1);
define('THUMB_LARGE',2);
define('THUMB_RSS',3);
define('THUMB_NAV',4);
if (!headers_sent())
{
session_start();
};
if (!class_exists('streamreader')) {
require_once(PLOGGER_DIR."plog-lib/gettext/streams.php");
require_once(PLOGGER_DIR."plog-lib/gettext/gettext.php");
}
if (defined('PLOGGER_LOCALE') && PLOGGER_LOCALE!=='' && strlen(PLOGGER_LOCALE) >= 2) {
$locale = PLOGGER_LOCALE;
} else {
$locale = "en_US";
}
$language = strtolower(substr($locale,0,2));
$mofile = PLOGGER_DIR."plog-translations/".$locale.".mo";
// If the mo file does not exist or is not readable, or if the locale is
// en_US, do not load the mo.
if ( is_readable($mofile) && ($locale != 'en_US') ) {
$input = new CachedFileReader($mofile);
} else {
$input = false;
}
$plog_l10n = new gettext_reader($input);
// Return a translated string.
function plog_tr($text) {
global $plog_l10n;
if (isset($plog_l10n)){
return $plog_l10n->translate($text);
} else {
return $text;
}
}
?>
Posted By: frantixHmm, weird...You are correct, sorry about that. However, don't change the 'lib' folder to 'plog-lib', just change the code from 'plog-lib' to 'lib'. I edited my post above to show this change.
I found out that my gallery didn't work anymore, but I had to change the "lib"-folder into "plog-lib"...
Posted By: frantixNow the gallery works, and I receive an error on an other line:Maybe you are including the plog-globals.php file more than once? Can you post your 'wp-content/themes/cvtanja/pictures.php' file code here?
Fatal error: Cannot redeclare plog_tr() (previously declared in /home/andries/domains/andries.nu/public_html/tanja/wp-content/plugins/ploggerb3/plog-globals.php:29) in /home/andries/domains/andries.nu/public_html/tanja/wp-content/plugins/ploggerb3/plog-globals.php on line 29
<?php include("wp-content/plugins/ploggerb3/gallery.php"); ?>
<?php
/*
Template Name: Pictures
*/
?>
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post-box">
<div class="singlepost" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest...</p>'); ?>
<?php link_pages('<p><strong>Asides</strong> ', '</p>', 'number'); ?>
</div>
<?php the_gallery_head(); ?>
<?php include("wp-content/plugins/ploggerb3/gallery.php"); ?>
</div>
</div>
<div class="post-info-box">
<p class="pmd">
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Comments are disabled.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<a href="#respond">Entry Comments.</a>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Comments are disabled.
<?php } ?>
</p>
</div>
</div>
<div id="comment-box">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
<?php get_header(); ?>
If not, let me know what is above this code<?php
/*
Template Name: Plogger
*/
?>
<?php require_once("path_to_Plogger_installation_from_server_root/gallery.php"); ?> // in your case this would be 'wp-content/plugins/ploggerb3/gallery.php'
<?php
function plogger_page_header(){
global $config;
the_gallery_head();
}
add_action('wp_head', 'plogger_page_header');
?>
<?php the_content('Read the rest of this entry »'); ?>
<?php the_gallery(); ?>
Posted By: frantixWhen I change it to the default theme, I don't have the problem with the header image, but my pictures are not on a horizontal line, but on a vertical one, each with a bullet in front of the picture...You may have to override the Wordpress CSS for <li> tags with your Plogger CSS (gallery.css). I'm guessing the styling for the list within an entry is set up differently than you would like Plogger to display.
<?php
/*
Template Name: Plogger
*/
?>
<?php require_once("/homepages/13/d93364244/htdocs/ploggerb3/gallery.php"); ?>
<?php
function plogger_page_header(){
global $config;
the_gallery_head();
}
add_action('wp_head', 'plogger_page_header');
?>
<?php get_header(); ?>
<div id="content">
<?php $count = 0; ?>
<?php if(have_posts()): ?>
<?php while(have_posts()) : the_post();?>
<div class="post <?php if($count==0){?>first<?php } ?>" id="post-<?php the_ID(); ?>">
<h2 class="title"><a href="<?php the_permalink(); ?>#content" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_gallery(); ?>
<?php wp_link_pages('before=<div id="paginate">Pages: &after=</div>&next_or_number=number&pagelink=%'); ?>
</div><!-- /entry -->
<div class="postbottom">
</div>
</div><!-- /post -->
<?php $count++; ?>
<?php endwhile; ?>
<?php else: ?>
<div class="post">
<h2><?php _e('Not Found'); ?></h2>
</div><!-- /post -->
<?php endif; ?>
</div><!-- /content -->
<?php get_sidebar() ?>
<?php get_footer(); ?>
1 to 36 of 36