Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
ena
New Member
New Member



Joined: Jul 14, 2005
Posts: 20

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

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: 3191
Location: Germany:Moderator German NukeSentinel Support

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

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







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

http://www.xania.gr/modules.php?name=Forums

it is greek portal and maybe you don't understand enough
 
Susann







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

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
 
ena







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

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
 
Susann







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

Good luck with this new problem ! Wink

Btw:Nuke and Splatt Forum works well, Nuke and SMF (Simple Machines) maybe.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©