You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 73 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - HOWTO: Run Multiple bbtoNuke (Forums) Modules in phpNuke [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sat Sep 06, 2003 12:16 pm Reply with quoteBack to top

I've not found anyone that's shown how to do this, so I'm doing it myself. Hopefully I can get some feedback and help squash the errors.

This is basically a mod guide, so I'm assuming you already know how to at least follow directions, copy & paste code into the files, and upload them.

Assumptions: phpNuke 6.5 or higher running bbtoNuke 2.0.4 or higher.
(I'm running phpNuke 6.7 with the latest bbtoNuke 2.0.6, but I believe this should work for all above. Can I get confirmation on this?)

I know this is hardcoded stuff, and there probably is a better way to do this using tables, but I'm too lazy to rewrite all the files to do this Smile

So here we go:

Code:

Assuming your second forum is named 'Forums2'... go ahead and replace it with whatever name you feel like.

--- [ COPY FOLDER ] ---
/modules/Forums to /modules/Forums2

--- [COPY DATABASE ] ---
This will create a second database for the forum with the '_bb2' prefix

Either:
  take the nuke.sql install file, copy the nuke_bb* forum instructions, replace all '_bb' strings with '_bb2' (WARNING: one exception: 'enable_bbcode' field in the _bbposts table)
Or
  Just copy each _bb* table directly, assuming a fresh install

--- [EDIT includes/constants.php] ---
     AFTER   
   //Table names

     ADD
  if ($module_name == 'Forums2'){
    $bbprefix = 'bb2';
  }
  else {
    $bbprefix = 'bb';
  }

 
    REPLACE in all table definitions
  bb
   
    WITH
  '.$bbprefix.'

--- [EDIT modules/Forums2/nukebb.php] ---
    SET
    $modulename = 'Forums2';

--- [EDIT modules/Forums2/admin/common.php] ---
     BEFORE
     include($root_path . 'includes/constants.'.$phpEx);

     ADD
     $module_name = 'Forums2';

--- [EDIT modules/Forums2/admin/pagestart.php] ---
     BEFORE
     include("../../../mainfile.php");

     ADD
     $module_name = 'Forums2';

--- [EDIT modules/Forums2/common.php] ---
     BEFORE

     if ($forum_admin == 1) {

     ADD

     $module_name = 'Forums2';

--- [EDIT (original forums) modules/Forums/admin/common.php] ---
     BEFORE
     include($root_path . 'includes/constants.'.$phpEx);

     ADD
     $module_name = 'Forums';

--- [EDIT (original forums) modules/Forums/admin/pagestart.php] ---
     BEFORE
     include("../../../mainfile.php");

     ADD
     $module_name = 'Forums';

--- [EDIT includes/page_tail.php] ---
    FIND
    append_sid("modules/Forums/admin/index.$phpEx?admin=1") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

    REPLACE WITH
    append_sid("modules/".$module_name."/admin/index.$phpEx?admin=1") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';

--- [EDIT includes/sessions.php] ---
    FIND
    function append_sid($url, $non_html_amp = false)

    In this function
    REPLACE
    global $SID, $admin;
   
    WITH
    global $SID, $admin, $module_name;

    REPLACE
    All instances of 'Forums'
   
    WITH
    ".$module_name."

--- [EDIT includes/page_header.php] ---
    (If you don't want the stupid title bar to be $sitename: Forums2)

    COMMENT OUT OR EDIT THIS LINE:
     title("$sitename: $mod_name");



ADMIN LINKS for 7.5 and higher
Code:

---IN  Forums2/admin/forums.php


FIND
case "Forums":
Header("Location: modules/Forums/admin/index.php");


Replace with

case "Forums2":
Header("Location: module/".$module_name."/admin/index.php


--- IN Forums2/admin/case.php

FIND

case "Forums":
include("modules/Forums/admin/forums.php

REPLACE

case "Forums2":
include("modules/".$module_name."/admin/forums.php");


--- IN Forums2/admin/links.php

FIND

adminmenu("".$admin_file.".php?op=forums", "Forums", "forums.gif");


REPLACE

adminmenu("".$admin_file.".php?op=forums2", "Forums2", "forums.gif");


Here's my list of problems so far:
Since certain things are shared with the nuke tables, obviously there will not be independent things for each forum: post count, signatures, private messages, profiles, avatars.
Some configurations need to be sync'd like Avatars: (ie if you have linked avatars on one forum, it won't show on the other forum unless you enable it there too)

I hope this helps somebody. And eventually I want to make this easier to install, but a few hard-coded areas isn't so bad.

Tell me what you think.


Last edited by Evaders99 on Sat Oct 29, 2005 8:07 pm; edited 4 times in total
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sat Sep 06, 2003 12:20 pm Reply with quoteBack to top

Oh, I hope to go through the Google Tap changes too, unless someone else posts it.

Too tired to do it right now Smile
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Mon Sep 08, 2003 1:56 pm Reply with quoteBack to top

And here we go.. assuming you already have Google Tap in-place and working:

Code:
--- [EDIT header.php] ---

    REPLACE
"'(?<!/)modules.php\?name=Web_Links'"

    WITH
"'(?<!/)modules.php\?name=Web_Links'",
"'(?<!/)modules.php\?name=Forums2&file=viewtopic&t=([0-9]+)&amp;postdays=([0-9]+)&amp;postorder=asc&amp;start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums2&file=viewforum&f=([0-9]+)&amp;topicdays=([0-9]+)&amp;start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums2&file=viewforum&f=([0-9]*)&amp;mark=topics'",
"'(?<!/)modules.php\?name=Forums2&file=viewforum&f=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums2&file=viewtopic&t=([0-9]*)&amp;view=newest'",
"'(?<!/)modules.php\?name=Forums2&file=viewtopic&t=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums2&file=viewtopic&t=([0-9]*)&amp;highlight=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Forums2&file=viewtopic&(p|t)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums2&file=posting&t=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums2&file=index&c=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums2&file=index'"

     REPLACE
"links.html"

     WITH

"links.html",
"f2-postx\\1-\\2-\\3.html",
"f2-forumx\\1-\\2-\\3.html",
"f2-markread\\1.html",
"f2-forum\\1.html",
"f2-newposts\\1.html",
"f2-posts\\1-\\2.html",
"f2-postlite\\1-\\2.html",
"f2-post\\1\\2.html",
"f2-fvote\\1.html",
"f2-forum-cat\\1.html",
"f2-forums.html"

--- [EDIT .htaccess] ---
    ADD AT THE END

#Forums2
RewriteRule ^f2-forums.html modules.php?name=Forums2
RewriteRule ^f2-forums.* modules.php?name=Forums2&file=index
RewriteRule ^f2-forumx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums2&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^f2-postlite([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html

modules.php?name=Forums2&file=viewtopic&t=$1&highlight=$2
RewriteRule ^f2-forum([1-9][0-9]*).* modules.php?name=Forums2&file=viewforum&f=$1
RewriteRule ^f2-posts([0-9]*)-([0-9]*).html  modules.php?name=Forums2&file=viewtopic&t=$1&start=$2
RewriteRule ^f2-postx([0-9]+)-([0-9]+)-([0-9]+).html

modules.php?name=Forums2&file=viewtopic&t=$1&postdays=$2&postorder=asc&start=$3
RewriteRule ^f2-post(p|t)([1-9][0-9]*).* modules.php?name=Forums2&file=viewtopic&$1=$2
RewriteRule ^f2-markread([0-9]*).html modules.php?name=Forums2&file=viewforum&f=$1&mark=topics
RewriteRule ^f2-newposts([0-9]*).html modules.php?name=Forums2&file=viewtopic&t=$1&view=newest
RewriteRule ^f2-fvote([0-9]*).html modules.php?name=Forums2&file=posting&mode=vote&t=$1


I assume this should work for further duplicates of the Forums module.

Everywhere, replacing 'Forums2' and 'f2' with whatever you've named them.

Hope someone here can find this useful, and help me squash the bugs.
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Fri Sep 12, 2003 10:34 pm Reply with quoteBack to top

Fix for the post reviews:

--- [EDIT modules/Forums2/common.php] ---
BEFORE

if ($forum_admin == 1) {

ADD

$module_name = 'Forums2';
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
WhiteWisperX
Nuke Cadet
Nuke Cadet


Joined: Dec 05, 2003
Posts: 3


PostPosted: Fri Dec 05, 2003 6:58 am Reply with quoteBack to top

Hi. I tryed what you said with the phpnuke 6.9 and got this error under the forums2

phpBB : Critical Error

Could not query config information

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '.config' at line 2

SELECT * FROM nuke_.$bbprefix.config

Line : 214
File : D:\Software Files\Apache Group\Apache2\htdocs\modules\Family_Forums\common.php


i checked everything 3 or 4 times and it is all correct. And just for me to know do you HAVE to have a second database or can the bb2 tables be created in the same db?

Thanks in advance,
Whitey
Find all posts by WhiteWisperXView user's profileSend private message
GPaX
Nuke Cadet
Nuke Cadet


Joined: Jan 08, 2004
Posts: 1


PostPosted: Thu Jan 08, 2004 3:37 am Reply with quoteBack to top

Big kudo's Evaders99 - I've been beating my head against this one for a while, and just found this - what a godsend!!!! Very Happy

I have done some stuff and packaged it up - it's proly not what everyone needs, but it worked for me a treat, so I'll share..... Cool

Grab it here. Modify if you can improve Razz and post it back - would like it a little cleaner, but don't have the time right now......

Thanks again Evaders99!
Find all posts by GPaXView user's profileSend private message
JoJoMoJo
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2004
Posts: 8


PostPosted: Fri Apr 02, 2004 9:01 pm Reply with quoteBack to top

Is this all and good or is there an update for this?

_________________
www.xtreme-area.com
Find all posts by JoJoMoJoView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Fri Apr 02, 2004 11:39 pm Reply with quoteBack to top

There seems to be no real difference from the BBToNuke 2.0.x core and the phpNuke 6.5+/7+ core that would really affect it.

I have it running on the BBToNuke 2.08 and phpNuke 6.9, modding the original files everytime they are updated. There shouldn't be any problem following the above steps.

(If you've noticed, this thread is old. So don't trust that download for the latest files. Better if you mod them yourself using the latest BBToNuke core)
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
JoJoMoJo
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2004
Posts: 8


PostPosted: Fri Apr 02, 2004 11:53 pm Reply with quoteBack to top

it worked like a charm.............so much thanks.... www.xtreme-area.com you can see a sep. game and overclockers forums up now.

_________________
www.xtreme-area.com
Find all posts by JoJoMoJoView user's profileSend private messageSend e-mailVisit poster's website
JoJoMoJo
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2004
Posts: 8


PostPosted: Sat Apr 03, 2004 12:41 am Reply with quoteBack to top

Well works perfectly except when you make a reply in the topic review box the following errors show. any help fixing would indeed be greatly appreciated.......... but again would like to thankyou for getting me this far. the name of my second forums is xtremeoverclockers incase it was not obvious hee hee.

Warning: main(modules/Tavern/extension.inc): failed to open stream: No such file or directory in W:\www\modules\XtremeOverClockers\posting.php on line 72

Warning: main(): Failed opening 'modules/Tavern/extension.inc' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear') in W:\www\modules\XtremeOverClockers\posting.php on line 72

Warning: main(modules/Tavern/common.): failed to open stream: No such file or directory in W:\www\modules\XtremeOverClockers\posting.php on line 73

Warning: main(): Failed opening 'modules/Tavern/common.' for inclusion (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear') in W:\www\modules\XtremeOverClockers\posting.php on line 73

Fatal error: Call to undefined function: message_die() in W:\www\includes\topic_review.php on line 84

_________________
www.xtreme-area.com
Find all posts by JoJoMoJoView user's profileSend private messageSend e-mailVisit poster's website
JoJoMoJo
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2004
Posts: 8


PostPosted: Sat Apr 03, 2004 2:10 am Reply with quoteBack to top

nevermind i found it refering to line posting.php i didnt change the name great mod! its gold! Now just need to create more for each game type ect heehee Laughing

_________________
www.xtreme-area.com
Find all posts by JoJoMoJoView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sun Apr 04, 2004 7:44 pm Reply with quoteBack to top

Excellant - looks good!
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
MatreX
Nuke Soldier
Nuke Soldier


Joined: Apr 30, 2004
Posts: 30

Location: U.s.A

PostPosted: Tue Jun 08, 2004 11:41 am Reply with quoteBack to top

Ok this is really pisen me off that i cant do this...
i downloaded the .zip file and fallowed directions exactly and i changed the name to DarkenedRealms and im on nuke 7.2 when i got to edit the forums it edits both forums.. so when i add a fourm on Forums it show in both Forums and DarkenedRealms... ive tryed evrything and ive done it over thousands of times someone please help

_________________
ThaRealms Network
---------
Http://www.ThaRealms.com/ - Comming Soon
Http://ThaRealms.cjb.net/
Image
Find all posts by MatreXView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Tue Jun 08, 2004 12:29 pm Reply with quoteBack to top

Again, I don't recommend the Zip file. You want your latest files modified, so do it yourself.

I will do this for your installation, if you PM me the relevant info to access your files.

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
MatreX
Nuke Soldier
Nuke Soldier


Joined: Apr 30, 2004
Posts: 30

Location: U.s.A

PostPosted: Tue Jun 08, 2004 12:48 pm Reply with quoteBack to top

ok what? :/

_________________
ThaRealms Network
---------
Http://www.ThaRealms.com/ - Comming Soon
Http://ThaRealms.cjb.net/
Image
Find all posts by MatreXView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.304 Seconds - 361 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::