[vBulletin]How to Create a Testing Forum Based on a Forum Snapshot

Brook

Devotee
Joined
Feb 2, 2005
Messages
2,316
Brook submitted a new Article:

[vBulletin]How to Create a Testing Forum Based on a Forum Snapshot

#
# -------------------------------------------------------------
# How to create a testing forum based on a 'snapshot' of your live forum.
# -------------------------------------------------------------
# Date : 24 April 2005
# vBulletin : 3.0.7
# Requirments : Ssh Access / ftp / spare Mysql database / valid vB licence
# : Make sure you have a back up of all your files/databases before starting.
# Author : TAZ member BROOK
#
# In this tutorial we will:
#
# First turn off your 'live' forum so that the database can be copied as safely as possible
# We'll change a cookie setting in Admin CP so that the new test forum will work ok
# We'll take a snapshot of the database (a mysql dump)
# We'll change the cookie setting back so that the live forum is back to normal
# We'll then turn the live forum back on.
# We'll copy ALL files that are in your current forum directory onto your PC via FTP
#
# We'll create a new mysql database for the test forum
# We'll copy the mysqldump we took earlier into this new database
# We'll amend the config.php file to reflect the new database
# We'll upload all files that were in you forum directory into a new directory via ftp
# We'll login and change the cookie settings to reflect the new test directory.
# -------------------------------------------------------------
#




#-------------
# STEP ONE:
#-------------


In your vB Admin Control Panel (ACP)

vBulletin Options > Turn Your vBulletin On and Off

> Forum Active

> Click on: NO

> Reason For Turning Forum Off

Enter a reason such as:

HTML:
<p>Hi All - We're just carrying out a back-up.</p>
<p>The forum will be offline for around 10 minutes or so - will be as fast as we can!.  Sorry for any inconvenience. </p>

> click on SAVE


#------------
# STEP TWO:
#------------


In your vB Admin Control Panel (ACP)

vBulletin Options > Cookies and HTTP Header Options > Path to Save Cookies

Make a note of the existing setting (for example mine is set to: /myforums/ )

Then change the setting to:

/

> click on SAVE


#------------
# STEP THREE:
#------------


Log in to your server via SSH

Type the following:

mysqldump --opt -u databaseuser -p databasename > /path/to/backupname.sql

Replace databaseuser with the Username for that database
Replace databasename with the Database Name
Replace...

Read more about this article here...
 
Last edited by a moderator:

ImportPassion.com

CEO ImportPassion.com
Joined
Feb 21, 2004
Messages
108
Before everyone starts doing this, I would just like to state this from the vBulletin Licenseing FAQ.

If you have a valid licence, you may set up an additional test forum in order to test code, template and database modifications. To make this clear to us and our licence verification procedures, place it in a directory called 'testvb' and be sure to password protect it. It must not be accessible by the general public.
 

Kall

Devotee
Joined
Apr 26, 2004
Messages
2,992
Brook said:
- You can also let your members help you test - just remember to turn the test forum off after testing (or password protect the directory and change it from on test phase to another).

As per 7thgencivic: Doing this would be in violation of your license agreement.
 

Brook

Devotee
Joined
Feb 2, 2005
Messages
2,316
Kall said:
As per 7thgencivic: Doing this would be in violation of your license agreement.

lol Kall I wouldn't class five or ten or even more hand picked 'testers' as the general public :bouncy: can see your point tho and perhaps I should have made that clearer.

---

7thgencivic - hopefully people reading this thread will take note of what you said. I didn't realise vB was so stringent!

Anyway - people can easily change the directory by first setting the cookie back to:

/

then ftp'ing to their site and changing the directory name to 'testvb'

then changing the cookie setting to reflect that.

In all honesty tho, I don't think the staff will mind so long as the word 'test' is present in the directory.

If I can update the inital post (permissions) I will :)

Thanks for posting.

[edited to add: nope, no edit button on the post]
 
Top