Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Multiple forums, One database, Shared PM, Points..

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
ILLHILL Posted - 09 December 2005 : 15:58:35
I did a search on this and found a start, posted by Richard:

quote:
to have 2 forums share a database, you just need to change 2 lines in the config.asp file of the second forum:

forum #1's config.asp:

strTablePrefix = "FORUM_"
strMemberTablePrefix = "FORUM_"

forum #2's config.asp:

strTablePrefix = "FORUM2_"
strMemberTablePrefix = "FORUM2_"

Doing it this way, you can use the same database for both forums. No data will be shared between each of them.

If you want to share the Members table then:

forum #2's config.asp:

strTablePrefix = "FORUM2_"
strMemberTablePrefix = "FORUM_"



I applied this, only to bump into this:

Microsoft JET Database Engine error '80040e37'

The Microsoft Jet database engine cannot find the input table or query 'FORUM2_PM'. Make sure it exists and that its name is spelled correctly.

inc_header.asp, line 183


So, basically the forum is checking for the Forum2_PM field,
which doesn't exist. I want things like Users, PM's, amount of posts,
points and active users all loaded from Forum 1's database, then
have things as categories and in-forumposts load from Forum2 fields.

Anyway I can trick the forum/database into believing that some of the
Forum2 fields are Forum_ fields? So, in that way you can send a PM
in forum1, which will also be readable in Forum2, 3, 4, etc and with
that turning a one-time registration into some sort of "Forum Passport" ?

Any help would be appreciated cause I expect to bump into this
error a couple of times with different fields, so any solution is
welcome, maybe a Config2.asp file in which fields are specified to
be shared fields or forum only fields?

*help*

Thanks in advance!



D<
5   L A T E S T    R E P L I E S    (Newest First)
laser Posted - 10 December 2005 : 16:55:22
np's, glad it worked for you <
ILLHILL Posted - 10 December 2005 : 16:17:31
Seems to work perfectly, updating the last bits and had to download the dbase to add some
tables.

Thanks very much for the help Laser!

Greets & thanks,

Dominic<
laser Posted - 10 December 2005 : 00:29:45
No example, but if you want to share the PM's, I would add the strSharedTablePrefix value and then search for :

strTablePrefix & "PM

and change to

strSharedTablePrefix & "PM

or maybe just search for "PM

Basically what you're doing is a lot like the sharing members option, but naming the variable something more generic.
<
ILLHILL Posted - 09 December 2005 : 18:20:06
Any example on how that would look and what I have to look for in the files?

Appreciate it!

Dominic<
laser Posted - 09 December 2005 : 16:24:55
So you're using this option ?

quote:

If you want to share the Members table then:

forum #2's config.asp:

strTablePrefix = "FORUM2_"
strMemberTablePrefix = "FORUM_"



If so, you could use strMemberTablePrefix as the prefix on your PM table (and other mod tables that you want to share, but it might be easier to create this in both config.asp files :

strSharedTablePrefix = "FORUM_"

Then go through all your mod's that you want to share and make sure they reference the SharedTable prefix instead of the Table prefix.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07