PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
ena
New Member
New Member


Joined: Jul 14, 2005
Posts: 20

PostPosted: Tue Oct 11, 2005 2:27 pm Reply with quote Back to top

i have one more problem!

when i see a topic on the forums, i see only the title of my site. I can't see the pagetitle as it is on topic title.

I opened the file viewtopic and the code:

Code:
$page_title = $lang['View_topic'] .' - ' . $topic_title;
include("includes/page_header.php");


exists!

Do you know where the problem is?

thank you in advanced Smile
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2287
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Wed Oct 12, 2005 5:52 pm Reply with quote Back to top

I had a similar problem with nuke 6.5 and the forums titles, but I m not really sure if your problem is exact the same. I saw many nuke sites with this problem.I fixed this problem a long time ago. I think it wasn´ t the viewtopic.php I added a piece of code in another file and this works. But I´m using now dynamic titles and this works much better for us.

What´s the link to your forum ?
View user's profile Send private message
ena
New Member
New Member


Joined: Jul 14, 2005
Posts: 20

PostPosted: Wed Oct 12, 2005 6:47 pm Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!


it is greek portal and maybe you don't understand enough
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2287
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Oct 13, 2005 10:53 am Reply with quote Back to top

Well, Greece is a nice country but the language isn´t easy to read or understand.
Back to your problem. I found my old thread about this problem and what I changed in Nuke 6.5 because we had only the site title.

I changed the modules/Forums/nukebb.php with this:

Code:
<?php
/***************************************************************************
 * phpbb2 forums port version 2.1 (c) 2003 - Nuke Cops (http://nukecops.com)
 *
 * Ported by Paul Laudanski (Zhen-Xjell) to phpbb2 standalone 2.0.4.  Test
 * and debugging completed by the Elite Nukers at Nuke Cops: ArtificialIntel,
 * Chatserv, MikeM, sixonetonoffun, Zhen-Xjell.  Thanks to some heavy debug
 * work by AI in Nuke 6.5.
 *
 * You run this package at your sole risk.  Nuke Cops and affiliates cannot
 * be held liable if anything goes wrong.  You are advised to test this
 * package on a development system.  Backup everything before implementing
 * in a production environment.  If something goes wrong, you can always
 * backout and restore your backups.
 *
 * Installing and running this also means you agree to the terms of the AUP
 * found at Nuke Cops.
 *
 * This is version 2.1 of the phpbb2 forum port for PHP-Nuke.  Work is based
 * on Tom Nitzschner's forum port version 2.0.6.  Tom's 2.0.6 port was based
 * on the phpbb2 standalone version 2.0.3.  Our version 2.1 from Nuke Cops is
 * now reflecting phpbb2 standalone 2.0.4 that fixes some major SQL
 * injection exploits.
 ***************************************************************************/

/***************************************************************************
 *   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
 *   by Tom Nitzschner (tom@toms-home.com)
 *   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
 *
 *   As always, make a backup before messing with anything. All code
 *   release by me is considered sample code only. It may be fully
 *   functual, but you use it at your own risk, if you break it,
 *   you get to fix it too. No waranty is given or implied.
 *
 *   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
 *   then on my site. All original header code and copyright messages will be maintained
 *   to give credit where credit is due. If you modify this, the only requirement is
 *   that you also maintain all original copyright messages. All my work is released
 *   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
 *
 ***************************************************************************/

if (!eregi("modules.php", $_SERVER['SCR IPT_NAME'])) {
    die ("You can't access this file directly...");
}
   
global $db, $user_prefix, $phpbb_root_path, $nuke_root_path, $nuke_file_path, $php_root_dir, $module_name, $nukename, $pass, $nukename;
$module_name = "Forums";
$nuke_root_path = "modules.php?name=".$module_name;
$nuke_file_path = "modules.php?name=".$module_name."&file=";
$phpbb_root_path = "modules/".$module_name."/";
$phpbb_root_dir = "./../";
require_once("mainfile.php");
get_lang($module_name);

if($name=="Private_Messages") $pagetitle = "| Messages";
elseif($name=="Forums") $pagetitle = "| Forum";
elseif($name=="Members_List") $pagetitle = "| Members";
if($t) {
  $t=intval($t);
  $sql = "SELECT topic_title, forum_id FROM ".$prefix."_bbtopics WHERE topic_id='$t'";
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $title = $row[topic_title];
  $forum = $row[forum_id];

  $sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$forum'";
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $forum = check_html($row[forum_name], nohtml);
  $pagetitle = "| Forum | $forum | $title";
}
elseif($p) {
  $p=intval($p);
  $sql = "SELECT topic_id, forum_id FROM ".$prefix."_bbposts WHERE post_id='$p'";
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $topic_id = $row[topic_id];
  $forum = $row[forum_id];

  $sql = "SELECT topic_title, forum_id FROM ".$prefix."_bbtopics WHERE topic_id='$topic_id'";
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $title = $row[topic_title];
  $forum = $row[forum_id];

  $sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$forum'";               
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $forum = check_html($row[forum_name], nohtml);
  $pagetitle = "| Forum | $forum | $title";
}
elseif($f) {
  $f=intval($f);
  $sql = "SELECT forum_name FROM ".$prefix."_bbforums WHERE forum_id='$f'";
  $result = $db->sql_query($sql);
  $row = $db->sql_fetchrow($result);
  $forum = check_html($row[forum_name], nohtml);
  $pagetitle = "| Forum | $forum";
}

include("header.php");
?>

SCR IPT_NAME without space and for unpatched change this to PHP_SELF

I´m not sure if this is really your solution, but it was working for us. Wink
View user's profile Send private message
ena
New Member
New Member


Joined: Jul 14, 2005
Posts: 20

PostPosted: Thu Oct 13, 2005 2:47 pm Reply with quote Back to top

well, i try now to create new database with phpbb alone. If i succed to connect the login at the same time, of phpnuke and phpbb, i will sto to have the forum og phpnuke. It is better i think Smile
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2287
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Oct 13, 2005 4:44 pm Reply with quote Back to top

Good luck with this new problem ! Wink

Btw:Nuke and Splatt Forum works well, Nuke and SMF (Simple Machines) maybe.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum