| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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!!!!
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 |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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....
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 |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: 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
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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
DaleHutch Silver Supporter


Offline Joined: Sep 05, 2004 Posts: 120 Location: 27°58'N 82°32'W
|
Posted: 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 |
|
 |
|
|