Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
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 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Topic Archived View previous topic :: View next topic  
Author Message
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Sat Dec 04, 2004 9:03 pm
Post subject: How to setup Multi-Forums?

Does Dragonfly support multi-forums?????

If so, how do I add more forums?

Thanks!!!!
Very Happy


DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 06, 2004 2:22 pm
Post subject: Re: Multi-Forums?????

copy the content of "modules/Forums" to something like "modules/Forums2"

Open "modules/Forums2/common.php" and modify the database tables into something like
Code::
define('AUTH_ACCESS_TABLE', $prefix.'_bb2auth_access');
define('BANLIST_TABLE', $prefix.'_bbbanlist');
define('CATEGORIES_TABLE', $prefix.'_bb2categories');
define('CONFIG_TABLE', $prefix.'_bbconfig');
define('DISALLOW_TABLE', $prefix.'_bbdisallow');
define('FORUMS_TABLE', $prefix.'_bb2forums');
define('GROUPS_TABLE', $prefix.'_bbgroups');
define('POSTS_TABLE', $prefix.'_bb2posts');
define('POSTS_TEXT_TABLE', $prefix.'_bb2posts_text');
define('PRIVMSGS_TABLE', $prefix.'_bbprivmsgs');
define('PRIVMSGS_TEXT_TABLE', $prefix.'_bbprivmsgs_text');
define('PRIVMSGS_IGNORE_TABLE', $prefix.'_bbprivmsgs_ignore');
define('PRUNE_TABLE', $prefix.'_bb2forum_prune');
define('RANKS_TABLE', $prefix.'_bbranks');
define('SEARCH_WORD_TABLE', $prefix.'_bb2search_wordlist');
define('SEARCH_MATCH_TABLE', $prefix.'_bb2search_wordmatch');
define('SMILIES_TABLE', $prefix.'_bbsmilies');
define('THEMES_TABLE', $prefix.'_bbthemes');
define('THEMES_NAME_TABLE', $prefix.'_bbthemes_name');
define('TOPICS_TABLE', $prefix.'_bb2topics');
define('TOPICS_WATCH_TABLE', $prefix.'_bb2topics_watch');
define('USER_GROUP_TABLE', $prefix.'_bbuser_group');
define('USERS_TABLE', $user_prefix.'_users');
define('WORDS_TABLE', $prefix.'_bbwords');
define('VOTE_DESC_TABLE', $prefix.'_bb2vote_desc');
define('VOTE_RESULTS_TABLE', $prefix.'_bb2vote_results');
define('VOTE_USERS_TABLE', $prefix.'_bb2vote_voters');
// attach mod
define('ATTACH_CONFIG_TABLE', $prefix . '_bbattachments_config');
define('EXTENSION_GROUPS_TABLE', $prefix . '_bbextension_groups');
define('EXTENSIONS_TABLE', $prefix . '_bbextensions');
define('FORBIDDEN_EXTENSIONS_TABLE', $prefix . '_bbforbidden_extensions');
define('ATTACHMENTS_DESC_TABLE', $prefix . '_bb2attachments_desc');
define('ATTACHMENTS_TABLE', $prefix . '_bb2attachments');
define('QUOTA_TABLE', $prefix . '_bbattach_quota');
define('QUOTA_LIMITS_TABLE', $prefix . '_bbquota_limits');
// Topic icons
define('TOPIC_ICONS_TABLE', $prefix . '_bb2topic_icons');
You see only the "_bb2" are new the others are shared by both forums.

Now create the tables in your database.

Open "modules/Forums2/cpg_inst.php" and modify "_bb*" into "_bb2*" then you can make nice backups thru
Admin -> Modules -> [modulename] -> Edit


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 4:05 pm
Post subject: Re: How to setup Multi-Forums?

THANK YOU VERY MUCH!!!!!!!!!

Hopefuly this NEWBIE can handle this.... Smile

Dale

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 06, 2004 4:21 pm
Post subject: Re: How to setup Multi-Forums?

Also the admin section has to be modified.

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

Then create an adlink.inc in "modules/<modulename>/admin/"
OR create
"admin/links/adlnk_<modulename>.php"
But the first method is prefered.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 4:22 pm
Post subject: Re: How to setup Multi-Forums?

Is there an easy way to copy a table?

Example.... _bbauth_access copy to _bb2auth_access

Thanks

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 4:24 pm
Post subject: Re: How to setup Multi-Forums?

Your loosing me on the changing the admin stuff..... <modulename> is the name of the new forum?

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Mon Dec 06, 2004 4:30 pm
Post subject: Re: How to setup Multi-Forums?

to copy a table, in phpmyadmin, highlight the table you want to copy, then click the "Operations" tab at the top.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 4:34 pm
Post subject: Re: How to setup Multi-Forums?

Thanks PHOENIX! That's easy... Now I need to get these small admin stuff figured out.

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 06, 2004 4:41 pm
Post subject: Re: How to setup Multi-Forums?

Say your second forum is "modules/Forums2/" then copy "admin/modules/forums.php" to "admin/modules/Forums2.php"


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 5:14 pm
Post subject: Re: How to setup Multi-Forums?

"Then create an adlink.inc in "modules/<modulename>/admin/"

The forums2.php was what I figured it was. Now where is this adlink.inc line?

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 06, 2004 5:40 pm
Post subject: Re: How to setup Multi-Forums?

adlinks.inc (note the "s" i forgot)
PHP:
<?php
if (can_admin(strtolower($module))) {
$menuitems['_AMENU4'][$module]['URL'] = adminlink($module); // the admin link
$menuitems['_AMENU4'][$module]['IMG'] = 'forums'; // imagename
$menuitems['_AMENU4'][$module]['MOD'] = $module; // used to find admin graphic in module "modules/$module/admin/"
// so if 2 modules use same graphic fill in something like 'Forums' i/e $module
}
Thar should do the trick since we didn't release this code as of yet Wink


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 6:34 pm
Post subject: Re: How to setup Multi-Forums?

I think I've got it.

Mine should look like this.....

<?php<br />
if (can_admin(strtolower($module))) {<br />
$menuitems['_AMENU4'][$module]['URL'] = adminlink($module); // the admin link<br />
$menuitems['_AMENU4'][$module]['IMG'] = 'forums'; // imagename<br />
$menuitems['_AMENU4'][$module]['MOD'] = 'forums2'; // "modules/$module/admin/"<br />
// so if 2 modules use same graphic fill in something like 'Forums' i/e $module<br />
}

Now where does this go????

You stated "modules/<modulename>/admin/"

I look there and under /modules/forums2/ ....I only have a /template/ folder

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Mon Dec 06, 2004 6:45 pm
Post subject: Re: How to setup Multi-Forums?

odd it shouldn't show <br /> in the code, this is very strange.

Code::
<?php
if (can_admin(strtolower($module))) {
    $menuitems['_AMENU4'][$module]['URL'] = adminlink($module); // the admin link
    $menuitems['_AMENU4'][$module]['IMG'] = 'forums'; // imagename
    $menuitems['_AMENU4'][$module]['MOD'] = $module; // used to find admin graphic in module "modules/$module/admin/"
// so if 2 modules use same graphic fill in something like 'Forums' i/e $module
}

Create the folder "modules/forums2/admin" and put the file adlinks.inc in there.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 7:22 pm
Post subject: Re: How to setup Multi-Forums?

okay,

You got me kinda confused.

I created a folder "admin" in /modules/forums2

I copied and paste your code using araneae and saved it in that folder as adlinks.inc

If I'm reading you right. I need to make a few chnages to the code? Or not..


DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
DaleHutch
Silver Supporter
Silver Supporter

Offline Offline
Joined: Sep 05, 2004
Posts: 120
Location: 27°58'N 82°32'W
PostPosted: Mon Dec 06, 2004 7:24 pm
Post subject: Re: How to setup Multi-Forums?

Also,

Where will the second forum appear in the main menu admin section. Right now I only see the first forum.

_________________
A bug in the code is worth two in the documentation.

DaleHutch's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Linux 8.04.1/Apache 2.28/MySQL 5.0.51/ PHP 5/DF 9.2.x
Back to top
View user's profile
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCPG-BB (forum) :: Archives
Page 1 of 9
All times are GMT
Go to page 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