Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can you install Forum DB into existing DB
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can you install Forum DB into existing DB

 Post Reply Post Reply Page  12>
Author
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Topic: Can you install Forum DB into existing DB
    Posted: 30 August 2003 at 6:03pm

In the set-up instructions, it says to install it in an "empty database you have created for the Forum on the SQL Server."  The only problem is that our web host only gives us one (1) database, and we are already using it.  We have additional space in the database, and have a variety of tables for different things.

My question is this:  Can we install the forum database into the existing database without deleting the existing tables (assuming the existing tables have different names than the tables used by the forum)?

If we need an additional SQL Database just for the forum, I think it would be cheaper if we buy linux/unix webspace for phpBB or Invision Power Board forums, rather than pay for an additional SQL database.

I am more familiar with PHP Forums than ASP, but the rest of our site is in ASP and the server doesn't support PHP.

We are trying to save money by installing ASP forums on our existing ASP server.

So, does the install process nuke all the other tables in the database?



Edited by wistex
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2003 at 6:25pm
You can install the forum into a database with other tables as long as the there are no conflicts in the table and stored procedure names.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2003 at 6:33pm

Originally posted by ljamal ljamal wrote:

You can install the forum into a database with other tables as long as the there are no conflicts in the table and stored procedure names.

Is there a list somewhere that tells us what the tables and procedures are, or do I just need to read the code and hope I don't forget something!

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2003 at 9:23pm
There's a variable that you can set to append a prefix to the tables and another one that will append a prefix to the stored procedures when they are created. This will allow you to keep the tables from conflicting with other tables in your database. By default the variables are tbl and wwfsp.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 12:58am

Originally posted by ljamal ljamal wrote:

There's a variable that you can set to append a prefix to the tables and another one that will append a prefix to the stored procedures when they are created. This will allow you to keep the tables from conflicting with other tables in your database. By default the variables are tbl and wwfsp.

I found it.  I had to change tbl to wwftbl so it wouldn't overwrite my existing tables.  It worked fine.  No lost of data.  Very very pleased.

The only place I goofed up was not changing it in BOTH common.asp files.  The comments in the code said to change it in common.asp also.  I didn't mention that there are two of them!

Well, I figured that out and it works fine.

Also, I am super pleased at how easy it was to integrate my existing asp site with the forum.  I simply modified the header and footer files, and suddenly the forum looks like the rest of my site.

I plan on doing much more integration, but right now I have other things on the burner.

One thing I would like to do is to have every page on my asp site detect visitors and logged in users.  Right now the forum does that when you are on the forum pages only.  I would like to add code to the rest of my asp site that would do the same.  Right now every asp page opens the same database as the forum is in, so adding more calls to the same database would be easy.

If someone has such a mod, that would be great.

The code for accessing the database is already included on every page, so all I would need is the actual code that tracks the users as active.  I don't even need to display anything (even though that would be a nice option).  I just want to count them as an active visitor to increase the count.

It looks much better to see 100 active users than 20.  Counting people on the whole site would increase the number dramatically even if they never come to the forum.  (The site we have is pretty big.)

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 2:51am

The active users is done by a mixture of the main common.asp file and the file active_users_inc.asp.

common.asp loggs in the user and issues a logged in ID number (2 is issued to geusts) the the active_users_inc.asp file places the user in the active users table in the database. It also calls a few functions in the functions_common_fasp file that get the users OS and browser.

Hopefully this should help.

Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 6:39am

Originally posted by -boRg- -boRg- wrote:

The active users is done by a mixture of the main common.asp file and the file active_users_inc.asp.

Seems like a lot of code just to track users.

I guess I will have to spend time figuring out what was done, or get someone who knows asp to look at it.

I am an html coder who can cut and paste and modify existing asp, perl or javascript code.  I'm not proficient enough to write my own or even read complex asp, perl or javascript coding.  I just do the html.

When I looked at the code, I can see kinda what is going on, but am not sure what to cut and what to keep.  If I had more time, I'd probably be able to figure it out.  Just right now other things that are more important need to be updated on the site.

I just need the part that detects the user and adds the user to the active list.  Everything else can go.  Unless it necessary.  Which is where it gets confusing reading the code.  What IS actually needed for the process of detecting active users?

Also, I found an interesting bug/feature (depending how you look at it).  According to the forum, multiple users behind a firewall would be considered one active user.  Apparently it uses IP addresses to detect active users instead of cookies or session variables?  I was logged in as different usernames on two different computers with different operating systems with different browsers, and it still detected me as one active user.  If this is true, then if 100 people from AOL access your site at the same time, it will only show 1 active user.  That's not very accurate.  Plus, I would rather error on having an inflated number instead of a deflated number.  It looks bad when your active user count is low.  Even worse when it's not counting everyone.



Edited by wistex
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 7:18am
There is no acurate way of detecting users, session ID's and cookies are useless if people have cookies disabled so the best way is to use IP addresses, it's very rare that mutiple users will access your site at the same time with the same IP address and AOL users tend to change IP addresses every few minutes.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.