Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - 1 Database for my forums
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

1 Database for my forums

 Post Reply Post Reply Page  12>
Author
FARSHAD View Drop Down
Groupie
Groupie


Joined: 21 September 2003
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote FARSHAD Quote  Post ReplyReply Direct Link To This Post Topic: 1 Database for my forums
    Posted: 28 September 2003 at 11:06pm

hello

I have 2 forums

and 1 database 

database name   is   test34.mdb

and my first forum folder name is  > forum0

and second is  > forum1

and they are in a folder with this name   > forum

and database is in a folder with this name  >  test00

and this folder is in the ( forum ) folder

this is

============

Forum ----   > the main folder

       ----forum0        &g t;>>    and subfolders

       ----forum1

       ----test00 ---- test34.mdb

==============

what i must to write exactly  in the 2 common.asp files

until my 2 forum use 1 database

i don`t know anything about ASP and database

pls write for me what i must to do

===========

Thank you

 



Edited by FARSHAD
Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 11:18pm

In common.asp

'Set up the database table name prefix and stored procedure prefix
'(This is useful if you are running multiple forums from one database)
' - make sure you also change this in the msSQL_server_setup.asp file if setting up an ms SQL server database)

Const strDbTable = "tbl"
Const strDbProc = "wwfSp"

Change strDbTable to the new table prefix you use in your access database. You will need to make new tables with the new prefix.

Also change
strDbPathAndName = Server.MapPath("path_to_your_database")

I have never done this before so i am guessing a bit but that seams like what you have to do.

James


 

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 12:25am
Do you have any reason for wanting to share the same access database for two forums? I don't think that's a good idea...
Back to Top
DragonFist View Drop Down
Groupie
Groupie
Avatar

Joined: 22 June 2003
Location: Israel
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote DragonFist Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 2:46am

he might do this for "Skins"

one Dark Forum and one Bright Forum....just guessing =\



Edited by DragonFist

Legends Live Forever
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 7:31pm

ohh ok, i thought he was talking about running two different forums of the same access database...

In that case all you need to do is change the database path on commo.asp.

Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 7:48pm
This thread makes no sense.
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 7:54pm

Originally posted by MadDog MadDog wrote:

This thread makes no sense.

may I ask why?

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: 29 September 2003 at 8:43pm

I am not sure what he is doing, but one possible use for this type of configuration is to allow multiple websites to share the same forum, yet have their own look and feel.  That way, when people post in one website, their post appears on the other, and vice versa.  As a result, the forum builds more users and more posts than it would otherwise.  And more users and more posts attracts more users and more posts.  It speeds growth.

Actually, I have seen this done before with a forum, and it worked quite well for them.  Within a year, their forum has become quite busy.  They currently have about a dozen websites who have their own skinned version of the forums all sharing the same database.

I liked the idea so much, that I am going to do the same with one of my forums. We are already putting together a package that will allow websites that complement ours to have our forums on their website.  This arrangement is great for smaller sites who want the stickiness that a forum creates, yet does not have enough traffic to generate enough posts to sustain an active forum, yet has enough traffic to bring new members and posts.

Plus, as an added bonus, our website, which we are developing into a portal, will get recognition and advertising on other websites.  It's a win-win situation.

(Wow! This is my 100th post!)



Edited by wistex
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.