Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ CPG-BB (forum) :: Archives ⇒ How to setup Multi-Forums? :: Archived


How to setup Multi-Forums? :: Archived
Please post bugs in the Projects Module.
Post anything and everything else about CPG-BB in this forum.
Formerly known as phpBB but no longer compatible.

Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Topic Archived View previous topic :: View next topic  
Author Message
alyssa
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Nov 15, 2004
Posts: 773

PostPosted: Mon Aug 01, 2005 1:11 am
Post subject: Re: How to setup Multi-Forums?

run0 wrote:
I disagree. It would then have to be updated every time the forum files are changed, and all you have to do is change two words in one file.

Out of idle curiousity and to be the devils advocate here - would not the update button in the Module Admin update those same files? So then would it not be merely the click of a button to update them? If so, it would be great to have them zipped up into a separate module.

My point being - it's way easy as well to do a replace all for the entire directory to change anything called Forums2 to whatever they choose to call their secondary forums. This is not the case for replacing all cases of Forums in the directory. You change every case of the word forums in that mod and the thing won't work.

But anything called Forums2 changed to something ought to work fine and seems like it would be way easy to do for those that aren't so programming friendly.

In other words, I'm thinking of beginners having an easy way to get DF to do what they want without having to change code line by line, or at least being able to have a program do it quickly and easily for them.

Just some thoughts.


alyssa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
[ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.2.1.7]
Back to top
View user's profile
alyssa
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Nov 15, 2004
Posts: 773

PostPosted: Mon Aug 01, 2005 2:36 am
Post subject: Re: How to setup Multi-Forums?

OKay here's something odd.

I had double forums before - with quite a bit of data.

I successfully was able to install the second forum. All the data in the database seems to be showing in the database itself. However the Forums2 is showing on the user side as having no boards. Cleared server and browser caches, same thing.

Plus on the Admin panel side, the second Forums seems to have overwritten the original Forums Admin link.

So ah any idea what I did wrong?


alyssa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
[ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.2.1.7]
Back to top
View user's profile
alyssa
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Nov 15, 2004
Posts: 773

PostPosted: Mon Aug 01, 2005 3:35 am
Post subject: Re: How to setup Multi-Forums?

OKay, fixed the admin panel, now both are showing.

But its so weird that the data is there and the site isn't pulling from it.

I've deleted all caches and temp internet files and sever cache and nada. *whine* Naughty forums!


alyssa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
[ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.2.1.7]
Back to top
View user's profile
winock
Nice poster
Nice poster

Offline Offline
Joined: Jul 15, 2005
Posts: 55
Location: Austria
PostPosted: Wed Aug 03, 2005 5:58 pm
Post subject: Re: How to setup Multi-Forums?

[quote="DJMaze"]Also the admin section has to be modified.

Copy "admin/modules/forums.php" to "<modulename>.php" where <modulename> is case-sensitive

i dont find these data (forum.php in my dragonfly 9.0.5.0


winock's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
xp apache2triad 123
Back to top
View user's profile
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Wed Aug 03, 2005 11:10 pm
Post subject: Re: How to setup Multi-Forums?

I fallowed all the instructions and everything works fine except when i try to post it has this error.

includes/db/db.php


CMS Warning line 51: On /Forums2/posting.html While executing query "INSERT INTO cms_bb2posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (4, 1, 2, '', 1123124787, '411b48a7', 1, 0, 1, 0)" the following error occured: Unknown column 'enable_bbcode' in 'field list' In: /home/ilamos/public_html/includes/phpBB/functions_post.php on line: 150


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Thu Aug 04, 2005 1:40 am
Post subject: Re: How to setup Multi-Forums?

any help?


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Thu Aug 04, 2005 1:50 am
Post subject: Re: How to setup Multi-Forums?

not sure if this will solve your problem but you should upgrade to the latest dragonfly (9.0.5) and make sure you go to admin->modules->Forums2, click edit, then upgrade to whatever version it says. you seem to be missing tables or something

_________________


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Thu Aug 04, 2005 4:55 am
Post subject: Re: How to setup Multi-Forums?

I did upgrade and it did not solve anything. thnx for the reply tho. Will someone please help me with this problem?


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
xfsunoles
XHTML Specialist
XHTML Specialist

Offline Offline
Joined: Apr 30, 2004
Posts: 2502
Location: Melbourne, Florida
PostPosted: Thu Aug 04, 2005 6:21 pm
Post subject: Re: How to setup Multi-Forums?

enable_bbcode is missing field in cms_bb2posts


xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger Photo Gallery
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Thu Aug 04, 2005 11:21 pm
Post subject: Re: How to setup Multi-Forums?

That field is there.


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Fri Aug 05, 2005 7:16 pm
Post subject: Re: How to setup Multi-Forums?

I deleted all the tables and did them again so everything works fine now.


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Fri Aug 05, 2005 9:04 pm
Post subject: Re: How to setup Multi-Forums?

I am working on a forum scroll block for Forums2 so I changed all the table names so they are _bb2 instead of _bb. The block displays the topics but when I click on a topic it says this topic does not exist so what else needs to be changed??

Code::
<?php

/*********************************************
  CPG-NUKE: Advanced Content Management System
  ********************************************
  A highly modified version of PHP-Nuke 6.5
  which is Copyright (c) 2002 by Francisco Burzi
  http://phpnuke.org

  Under the GNU General Public License version 2

*********************************************/

if (!defined('CPG_NUKE')) {
    die("You can't access this file directly...");
}

global $cookie, $db, $group_id, $prefix, $sitename, $user, $user_prefix;

$ThemeSel = get_theme();

$iconpath = '';

if (file_exists("themes/$ThemeSel/forums/images/icon_mini_message.gif")) {
    $iconpath = "themes/$ThemeSel/forums/images";
} else {
    $iconpath = "modules/Forums/templates/subSilver/images";
}

$content = '<marquee behavior="scroll" align="center" direction="up" height="220" scrollamount="2" scrolldelay="70" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>'
          .'<center><font color="#666666" style="text-decoration: none"><strong>Last 5 Forum Messages</strong></font></center><br />';

$result = $db->sql_query("SELECT
 t.topic_id, t.topic_last_post_id, t.topic_title,
 f.forum_name, f.forum_id,
 u.username, u.user_id,
 p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time
 FROM ".$prefix."_bb2topics t, ".$prefix."_bb2forums f
 LEFT JOIN ".$prefix."_bb2posts p ON (p.post_id = t.topic_last_post_id)
 LEFT JOIN ".$user_prefix."_users u ON (u.user_id = p.poster_id)
 WHERE t.forum_id=f.forum_id AND f.auth_view=0
 ORDER BY t.topic_last_post_id DESC
 LIMIT 05");

while (list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id, $username, $user_id, $poster_id, $post_time) = $db->sql_fetchrow($result)) {
    $content .= "<img src=\"$iconpath/icon_mini_message.gif\" border=\"0\" alt=\"\" />\n"
               ."<a href=\"".getlink("Forums&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id")."\" style=\"text-decoration: none\">\n"
               ."<strong> $topic_title </strong></a>\n"
               ."<br />\n"
               ."<font color=\"#666666\">\n"
               ."<i>Last post by <a href=\"".getlink("Your_Account&amp;op=userinfo&amp;username=$username")."\" style=\"text-decoration: none\">$username</a>\n"
               ."in <a href=\"".getlink("Forums&amp;file=viewforum&amp;f=$forum_id")."\">$forum_name</a>\n"
               ."on $post_time</i>\n"
               ."</font>\n"
               ."<br /><br />\n";
}

$content .= "</marquee>";

?>


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Fri Aug 05, 2005 9:16 pm
Post subject: Re: How to setup Multi-Forums?

Try this:

Code::
<?php

/*********************************************
  CPG-NUKE: Advanced Content Management System
  ********************************************
  A highly modified version of PHP-Nuke 6.5
  which is Copyright (c) 2002 by Francisco Burzi
  http://phpnuke.org

  Under the GNU General Public License version 2

*********************************************/

if (!defined('CPG_NUKE')) {
    die("You can't access this file directly...");
}

global $cookie, $db, $group_id, $prefix, $sitename, $user, $user_prefix;

$ThemeSel = get_theme();

$iconpath = '';

if (file_exists("themes/$ThemeSel/forums/images/icon_mini_message.gif")) {
    $iconpath = "themes/$ThemeSel/forums/images";
} else {
    $iconpath = "modules/Forums/templates/subSilver/images";
}

$content = '<marquee behavior="scroll" align="center" direction="up" height="220" scrollamount="2" scrolldelay="70" onmouseover=\'this.stop()\' onmouseout=\'this.start()\'>'
          .'<center><font color="#666666" style="text-decoration: none"><strong>Last 5 Forum Messages</strong></font></center><br />';

$result = $db->sql_query("SELECT
 t.topic_id, t.topic_last_post_id, t.topic_title,
 f.forum_name, f.forum_id,
 u.username, u.user_id,
 p.poster_id, FROM_UNIXTIME(p.post_time,'%b %d, %Y at %T') as post_time
 FROM ".$prefix."_forums2_topics t, ".$prefix."_forums2_forums f
 LEFT JOIN ".$prefix."_forums2_posts p ON (p.post_id = t.topic_last_post_id)
 LEFT JOIN ".$user_prefix."_users u ON (u.user_id = p.poster_id)
 WHERE t.forum_id=f.forum_id AND f.auth_view=0
 ORDER BY t.topic_last_post_id DESC
 LIMIT 05");

while (list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id, $username, $user_id, $poster_id, $post_time) = $db->sql_fetchrow($result)) {
    $content .= "<img src=\"$iconpath/icon_mini_message.gif\" border=\"0\" alt=\"\" />\n"
               ."<a href=\"".getlink("Forums2&amp;file=viewtopic&amp;p=$topic_last_post_id#$topic_last_post_id")."\" style=\"text-decoration: none\">\n"
               ."<strong> $topic_title </strong></a>\n"
               ."<br />\n"
               ."<font color=\"#666666\">\n"
               ."<i>Last post by <a href=\"".getlink("Your_Account&amp;op=userinfo&amp;username=$username")."\" style=\"text-decoration: none\">$username</a>\n"
               ."in <a href=\"".getlink("Forums&amp;file=viewforum&amp;f=$forum_id")."\">$forum_name</a>\n"
               ."on $post_time</i>\n"
               ."</font>\n"
               ."<br /><br />\n";
}

$content .= "</marquee>";

?>


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
ilamos
Nice poster
Nice poster

Offline Offline
Joined: Dec 27, 2004
Posts: 82

PostPosted: Fri Aug 05, 2005 9:46 pm
Post subject: Re: How to setup Multi-Forums?

that just gave me a bunch of errors. like forums2topics_topics doesn't exist. isn't it suppose to be bb2topics_topics?


ilamos's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RedHat 9 i686/Apache 1.3.33 (Unix)/MySQL 4.0.24-standard/Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
run0
Supporter
Supporter

Offline Offline
Joined: Jun 28, 2004
Posts: 1559

PostPosted: Fri Aug 05, 2005 9:57 pm
Post subject: Re: How to setup Multi-Forums?

depends how you setup the second forums. did you do it exactly like this?

Nikolaich wrote:
I take away the words back.
It was convinced, that the separate module is not necessary.
It is necessary to take simply in public_html/modules folder Forums to rename her(it) in Forums2
Then:
1. To copy her(it) in a directory your site/modules.
2. To open in a notebook: your site/modules/Forums2/cpg_inst.php
3. A line 18
Code::
class Forums {

To replace on
Code::
class Forums2 {
4. A line 27
Code::
function Forums () {

To replace on
Code::
function Forums2 () {
5. To keep a file cpg_inst.php
To proceed(pass) in the administrator menus/modules and in the appeared line: Forums2 CPG Bulletin Board by CPG-Nuke Dev Team and based on phpBB 2.0.x which is released under the GNU GPLInstallTo pressInstall.
6. After end of process of installation to press Edit and to rename Forums2 in what you want.
6. To make active a new forum.
And all science...


run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCPG-BB (forum) :: Archives
Page 7 of 9
All times are GMT
Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

читај повеќе...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy