Hi Guys,
I have installed pnTitle on my site - http://www.freebetguide.com
I have got it working with pnBooks witha little help, but I cant find out how to integrate PNphpBB2? Can anyone help?
Any advice appreciated.
Mark
Edited: Books problem solved.
- Teb answered »PNphpBB2 and menu tree« 20:15h
- marc@marcpare.com posted »Adding an "About Us" page« 19:33h
- animateclay answered »SafeHTML output filter and youtube« 18:42h
- videokid answered »caching« 18:31h
- Wendell answered »pagesetter pdf output« 16:34h
- Fredricn posted »Mediashare mysql instalation issue« 13:38h
- slam answered »Theme by iThinkMedia.com footer - Beacon for Hackers?« 09:49h
Login
pnTitle Assistance Please
-
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
-
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
This sites title changes when you are on a thread, so it must be possible with PNphpBB2?
--
Visit http://freebets.freebetguide.com today! -
- Rank: Team Member
- Registered: 08.12.03
- last visit: 29.06.09
- Posts: 3062
There is another version of pntitle.
http://forums.postnuke.com/index.php?name=Downloads&req=viewdownloaddetails&lid=484
--
David Pahl
Zikula Support Team -
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
Hi ammo,
I had that version, but upgraded to the latest version. The latest one works better on books.. I didnt try it on the forum.
Does anyone know what is used on postnuke forum?
--
Visit http://freebets.freebetguide.com today! -
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
-
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
-
- Rank: Professional
- Registered: 12.03.03
- last visit: 27.06.09
- Posts: 1181
You don't need pnTitle for PNphpBB2 as this functionality should be in your forum templates. The file headerBB2.php should have something like:
If it doesn't add it and you should get your titles.Code
if ($artpage==1) {
/**
* article page output
*/
global $info, $hometext;
echo "<title>$info[title] :: ".pnConfigGetVar('sitename').' :: '.pnConfigGetVar('slogan')."</title>\n";
if (pnConfigGetVar('dyn_keywords') == 1) {
$htmlless = check_html($info['maintext'], $strip ='nohtml');
$symbolLess = trim(ereg_replace('("|\?|!|:|\.|\(|\)|;|\\)+', ' ', $htmlless));
$keywords = ereg_replace('( |'.chr(10).'|'.chr(13).')+', ',', $symbolLess);
$metatags = ereg_replace(",+", ",",$keywords);
echo "<meta http-equiv=\"Keywords\" content=\"$metatags\">\n";
} else {
echo "<meta name=\"KEYWORDS\" content=\"".pnConfigGetVar('metakeywords')."\">\n";
}
} else {
/**
* all other page output
*/
echo '<title>'.pnConfigGetVar('sitename').' :: '.$page_title."</title>\n";
echo '<meta name="KEYWORDS" content="'.pnConfigGetVar('metakeywords')."\">\n";
}
Slugger -
- Rank: Softmore
- Registered: 02.01.06
- last visit: 20.11.07
- Posts: 96
Somebody suggested modifying headerBB2.php from the PNphpBB2 website, however - I dont have that file in the directory specified. I have overall-header.php and original-overall-header.php HELP!!!
--
Visit http://freebets.freebetguide.com today! -
- Rank: Professional
- Registered: 12.03.03
- last visit: 27.06.09
- Posts: 1181
Should have been included with your download. You can find it in the modules/PNphpBB2/templates/PNTheme directory. Still can't find it? Here's a copy of mine . . .
Slugger
PS Check out this link pnphpbbhacks.org/ind…pport&file=seoforum for more advice on how to fine tune your forum for better indexing.
Code
<?php
// File: $Id: headerBB2.php,v 1.5 2004/09/25 19:21:23 carls Exp $ $Name: $
// ----------------------------------------------------------------------
// PostNuke Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file:
// ----------------------------------------------------------------------
if (eregi("header.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
/**
* Include some common header for HTML generation.
*
* XHTML Support by Matt Jarjoura. <mjarjo1@umbc.edu>
*/
$header = 1;
function head() {
global $index,
$artpage,
$topic,
$hlpfile,
$hr,
$theme,
$bgcolor1,
$bgcolor2,
$bgcolor3,
$bgcolor4,
$bgcolor5,
$textcolor1,
$textcolor2,
$textcolor3,
$textcolor4,
$forumpage,
$thename,
$postnuke_theme,
//$pntheme,
// Begin PNphpBB2 Module
$ModName,
$phpbb_root_path,
$phpbb_theme,
$board_config,
$page_title,
// End PNphpBB2 Module
$themename,
$themeimages,
$additional_header,
$themeOverrideCategory,
$themeOverrideStory;
// modification mouzaia .71
$cWhereIsPerso = WHERE_IS_PERSO;
if ( !(empty($cWhereIsPerso)) ) {
include("modules/NS-Multisites/head.inc.php");
} else {
$thistheme = pnVarPrepForOs(pnUserGetTheme());
global $themesarein;
if (@file(WHERE_IS_PERSO."themes/".$thistheme."/theme.php")) {
$themesarein = WHERE_IS_PERSO;
} else {
$themesarein = "";
}
}
if ( @!$GLOBALS['xanthia_theme'] || ($phpbb_theme['gen_simple_header']) ) {
ob_start();
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n<head>\n";
if (defined("_CHARSET") && _CHARSET != "") {
echo "<meta http-equiv=\"Content-Type\" ".
"content=\"text/html; charset="._CHARSET."\">\n";
}
if ($artpage==1) {
/**
* article page output
*/
global $info, $hometext;
echo "<title>$info[title] :: ".pnConfigGetVar('sitename').' :: '.pnConfigGetVar('slogan')."</title>\n";
if (pnConfigGetVar('dyn_keywords') == 1) {
$htmlless = check_html($info['maintext'], $strip ='nohtml');
$symbolLess = trim(ereg_replace('("|\?|!|:|\.|\(|\)|;|\\)+', ' ', $htmlless));
$keywords = ereg_replace('( |'.chr(10).'|'.chr(13).')+', ',', $symbolLess);
$metatags = ereg_replace(",+", ",",$keywords);
echo "<meta http-equiv=\"Keywords\" content=\"$metatags\">\n";
} else {
echo "<meta name=\"KEYWORDS\" content=\"".pnConfigGetVar('metakeywords')."\">\n";
}
} else {
/**
* all other page output
*/
echo '<title>'.pnConfigGetVar('sitename').' :: '.$page_title."</title>\n";
echo '<meta name="KEYWORDS" content="'.pnConfigGetVar('metakeywords')."\">\n";
}
echo '<meta name="DESCRIPTION" content="'.$page_title."\">\n";
echo "<meta name=\"ROBOTS\" content=\"INDEX,FOLLOW\">\n";
echo "<meta name=\"resource-type\" content=\"document\">\n";
echo "<meta http-equiv=\"expires\" content=\"0\">\n";
echo '<meta name="author" content="'.pnConfigGetVar('sitename')."\">\n";
echo '<meta name="copyright" content="Copyright (c) 2003 by '.pnConfigGetVar('sitename')."\">\n";
echo "<meta name=\"revisit-after\" content=\"1 days\">\n";
echo "<meta name=\"distribution\" content=\"Global\">\n";
echo '<meta name="generator" content="PostNuke '._PN_VERSION_NUM." - http://postnuke.com\">\n";
echo "<meta name=\"rating\" content=\"General\">\n";
global $themesarein;
echo "<link rel=\"StyleSheet\" href=\"".$themesarein."themes/".$thistheme."/style/styleNN.css\" type=\"text/css\">\n";
echo "<style type=\"text/css\">";
echo "@import url(\"".$themesarein."themes/".$thistheme."/style/style.css\"); ";
// Begin PNphpBB2 Module - Batpuppy PNTheme
if (is_dir($board_config['path_cellpics']))
{
$cellpic1 = $board_config['path_cellpics'] . "/cellpic1.gif";
$cellpic2 = $board_config['path_cellpics'] . "/cellpic2.jpg";
$cellpic3 = $board_config['path_cellpics'] . "/cellpic3.gif";
$cellpic_bkg = $board_config['path_cellpics'] . "/cellpic_bkg.jpg";
$cellpic4 = $board_config['path_cellpics'] . "/cellpic4.gif";
}
else
{
$cellpic1 = "";
$cellpic2 = "";
$cellpic3 = "";
$cellpic_bkg = "";
$cellpic4 = "";
}
// include($board_config['style_name']);
// echo "<link rel=\"StyleSheet\" href=\"".$board_config['style_name']."\" type=\"text/css\">\n";
echo "</style>\n";
echo "<link rel=\"StyleSheet\" href=\"".$board_config['style_name']."\" type=\"text/css\">\n";
// End PNphpBB2 Module - Batpuppy PNTheme
echo "<script type=\"text/javascript\" src=\"javascript/showimages.js\"></script>\n\n";
echo "<script type=\"text/javascript\" src=\"javascript/openwindow.js\"></script>\n\n";
if(isset($additional_header)) {
echo @implode("\n", $additional_header);
}
}
if ( @$GLOBALS['xanthia_theme'] )
{
$GLOBALS['info']['title'] = $page_title;
}
// Begin PNphpBB2 Module - Batpuppy PNTheme
if ( !$phpbb_theme['gen_simple_header'] )
{
themeheader();
}
// else
// {
// echo "</head>\n";
// }
// End PNphpBB2 Module - Batpuppy PNTheme
}
pnThemeLoad(pnUserGetTheme());
/**
* if you want to do overrides, set the global vars $themeOverrideCategory
* and/or $themeOverrideStory before including header.php
*/
head();
?>
- Moderated by :
- Support
Users online
This list is based on the users active over the last 60 minutes.
