Print Page | Close Window

2 forum - 1 user database

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18323
Printed Date: 11 April 2026 at 1:20pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: 2 forum - 1 user database
Posted By: Bubaz
Subject: 2 forum - 1 user database
Date Posted: 08 February 2006 at 5:59pm
Hi,

I have 2 questions :
- I would like create 2 forum (not sub forum) with 2 different database but with only 1 user database (for login / registration).
Do you have a solution for that under SQL server
- Is it possible to attribute a specific layout (header / footer) for a subforum?

Thanks,

Bubaz



Replies:
Posted By: wmeyers
Date Posted: 13 February 2006 at 9:51pm
I am also interested in Question 1.
 
I will have multiple subdomains, i.e. subdomain1.domain.org, subdomain2.domain.org, etc.
 
Can I use the same SQL database for multiple sites as long as I change the table names? If so, in what file that runs the SQL script would I need to change the names?
 
In doing so, it would be great if I could leave the members table alone and let people across multiple sites share it. Is this possible?
 
Can the subdomains be virtual, or do they have to be real? I am worried about conflicting ASP sessions between the multiple forums.
 
Any advice would be greatly appreciated!
 
Thanks.


Posted By: WebWiz-Bruce
Date Posted: 14 February 2006 at 11:41am
To use the same SQL Server database you need to change the database table prefix in the common.asp files and the SQL Server setup file.

For multiple forums using the same members table would be allot harder and would require substantial code re-writing within many files of the forum.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: wmeyers
Date Posted: 14 February 2006 at 6:46pm
Understood, thanks for your prompt response!


Posted By: MarcusJS
Date Posted: 15 February 2006 at 4:25pm
Just done this and it all seemed pretty easy (I'm using the SQL version) but hit a little glitch - the admin area seems to be pointing to the config table of my original forum.

Have I missed something, can anyone help?

Thanks in anticipation


Posted By: WebWiz-Bruce
Date Posted: 16 February 2006 at 10:31am
There is also a common.asp file in the admin area, you need to update the table prefix, etc. in that file as well.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: MarcusJS
Date Posted: 20 February 2006 at 9:43am
I admit I missed that one at first (between posting my question & getting the response) but I've also updated it and I've got a new problem now...

Although I can get into the correct admin areas for each forum when I change the settings in one - like the logo - it applies the change to both forums. I'm guessing it's a connection string problem again or something similar.


Posted By: WebWiz-Bruce
Date Posted: 20 February 2006 at 10:16am
For performance reasons Web Wiz Forums uses application level variables to cut down on database hits, these will effect other web wiz forums running in the same application.

There are two ways to get around this, if you have access to the server you could place each forum in it's own application. If you don't have access to the server you will need to set the variable 'Const blnUseApplicationVariables = true' to false in one or both your forums in the common.asp file


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: MarcusJS
Date Posted: 20 February 2006 at 10:52am
Thanks, this has worked a treat. I don't have access to the server so I changed the variable to false.


Posted By: wmeyers
Date Posted: 25 March 2006 at 10:58pm
What is the downside to changing blnUseApplicationVariables to false?
 
Will this only work with 2 forums, or technically could I add 3 or 4 if I get to that point?


Posted By: WebWiz-Bruce
Date Posted: 27 March 2006 at 12:43pm
The performance will not be as good as you will need more database hits and you can not use the active users feature.

However, in version 8 you can set the a prefix for the application variables which means you simply edit the setup_options.asp file for each forum to give them different prefixes for application variables and cookies.


Posted By: wmeyers
Date Posted: 27 March 2006 at 8:38pm
With version 8 is it still difficult to share the same member table using multiple forums on the same server?
 
I have created a 2nd forum modifying the values in setup_options only - I couldn't find anything to change in the sql setup file, though the comments in setup_options says to change something there as well. Seems to work ok, at least so far. One file to modify is a nice feature!
 
Does anyone have a way to export and import forum settings so I don't have to recreate everything by hand again? I'm not good at SQL and using the export tool didn't work.
 
Edit - On further review it appears that the forum table that was upgraded to version 8 contains more fields than the new cleanly installed v8 forum.
 
Can I safely delete the fields that are no longer needed, and if so, do you think that will help with copying the data over?
 
I was able to go into SQL 2003 tables and do a copy and paste of the category table, worked very smoothly. Would love to do the same with the forums so I don't have to recreate all of them.


Posted By: WebWiz-Bruce
Date Posted: 28 March 2006 at 11:25am
At the moment you can not use the same member table, but it is something I have considered, just not had time to implement and test.

Yes, you can delete fields that are no-longer required when upgrading to version 8, I would have made it so the upgrade tool did this, but as many are linked to indexes which have unique reference numbers I didn't find away to be able to delete these old fields so just left them.

If you can, start with a version 8 database, not an upgraded one as it will perform much better.


Posted By: wmeyers
Date Posted: 28 March 2006 at 9:02pm
Thanks, borg. My two cents, having a common membership table would be a huge help to anyone who plans to portal with multiple forums.
 
I was able to delete the extra fields in the first forum and successfully copy data to the new forum, which saved me from typing all my topics and forums over. The threads I don't want anyway. I did run into some permissions issues and had to reapply them group by group, but that is most likely from monkeying around with the SQL data.
 
I think it would be a lot smoother going from v8 to v8, which is how I will try it when I am ready to create another new forum. It may even make sense to create a set of template tables in SQL and use the export function to kick off a new forum in the future, something I will think about trying maybe. To be successful I need to be have the key fields retain their source data, and I'm not sure that is possible.
 
Oh well, I probably spent as much time trying this as it would have taken me to just type the darn things over again!
 
I really like the permissions grid, my only suggestion would be if its possible add a button that allows you to select and deselect an entire column or row at a time.


Posted By: wistex
Date Posted: 19 May 2006 at 9:52am
I have a similar need.   I have the main website which is for the general public and has public forums, and then I also want to have a website that for other businesses and webmasters who work with us in various ways.  I'd like so have one membership base, but completely different forums.




-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: Landlord-Forum
Date Posted: 05 June 2006 at 5:01pm
Hi,
 
i think i am looking to do something similar but a bit different from the above. sorry if this has been answered b4 but i have searched high and low.
 
i have a forum running on my domain and i want to share that forum with another website (not owned by me) i actually want the forum to be the same, same users, same posts etc so users can login from either site.
 
the only difference i want is the look at feel around the forum, i have done that on my site by modifying the header and footer files to include the bits of my site top and bottom. on the other site i would like it to look as if it is a part of that site, (the forum/posts/members all the same.) i am thinking this is probably easiest done by copying the forum folder into a 2nd floder called forum2 for example, (so it speakes to the same databse.) framing a page from my new folder in the other site and just changing the header and footer files. am i right is i this simple or am i opening a can of worms?
 
any help much appreciated
 
JP


Posted By: WebWiz-Bruce
Date Posted: 06 June 2006 at 9:18am
You are along the right lines.

All you should need to do is make a second copy of Web Wiz Forums in another folder on the site, but have it linked to the same database. You can then change the header.asp and footer.asp as well as the CSS files for both forums to give them both different looks.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: wistex
Date Posted: 06 June 2006 at 2:04pm
I used the same technique that Borg described and it worked like a charm.  Exactly what you need, Landlord-Forum. :)
 
For me, I'd actually like two different forums with one userbase.  I've seen this done on other forums, and one way to accomplish this is to modify one or both forum installations to point to the same member tables, but still have the rest of each forum point to different tables.  Both forums would need to use the same database, just with a different table prefix... except for the members tables which would have the same prefix.
 
If most of the membership / login / logout code is in one place, then this would actually be pretty easy to implement.  It will be a nightmare if the code is spread out throughout the forum code.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: Landlord-Forum
Date Posted: 06 June 2006 at 3:23pm
many thanks, it seems to work a treat, did just that, a folder called forum2, i am now going to change the 3 files you mention.
 
great forum code this, very simple to use/change etc
 
well done wwf and thanks to you all on the forum here!
 
** update-- eek, i can't login. say the capthcha code is wrong,
 
is this something to do with the forum running in an inline frame on another site? easy fix? or do i have to reverse the way i have the site framed i.e., frame the bits for the other site on my pages?? and host from my server?
 
thanks
 
JP
 
 


Posted By: WebWiz-Bruce
Date Posted: 06 June 2006 at 5:38pm
Try connecting to the forum without the Iframe and see if it works, if it does you know it's the Iframe coursing issues.

I would recommend staying clear of frames as they can course issues with browsers.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Landlord-Forum
Date Posted: 06 June 2006 at 6:03pm
Hi Borg,
 
not sure how to do that.
 
basically the forum is on my site (site1) and i want to share it on another site not owned by me (site2) (i have ftp access to both sites and am modifying pages in both).
 
so, i am using an inline frame on the other site to call up the forum in the middle of the page, keeping the other sites look and feel top/side/bottom banner/ads in place.
 
i get the feeling this is a cookie issue with the forum trying to do a cookie while technically in another site (address bar reads for the other site.)
 
i would like ideaaly that users feel thay have not left site 2 but have access to the forum form there without coming to the forum site. i could take the pages from site 2 and host them on site1, just makes updating them a pain, or i suppose i could frame them up form my site, still got the address bar showng site1 though...


Posted By: WebWiz-Bruce
Date Posted: 06 June 2006 at 6:15pm
If you use mySQL or SQL Server you should be able to connect to the same database from 2 completely different sites.

Also as you are setting up a new forum you should consider using version 8 as it is a vast improvement over version 7 and uses a different login system that doesn't require cookies.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net