|
View previous topic
::
View next topic
|
| Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 253 Location: A'dam/Diemen, The Netherlands
|
Posted: Mon Mar 09, 2009 2:36 pm Post subject: [phpbb2] Moving servers and you dont' want to completely disable your board? |
|
|
Are you moving servers and you don't want any new posts in your database?
You can use the "disable" board option in your ACP.
However ... this has a great disadvantage, namely your whole board is invisible unless you're an admin.
Apply this mod and only you ( user_id = 2 ) will be able to post. All others cannot post/reply/edit/quote and will see a general notice.
OPEN
FIND
| Code: | //
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_POSTING);
init_userprefs($userdata);
//
// End session management
// |
AFTER, ADD
| Code: |
// MOD by Ramon Fincken (http://www.ramonfincken.com) Disable posting except for main admin, because you want to move (database-)servers.
// http://www.ramonfincken.com/permalink/topic131.html
if($userdata['user_id'] != 2)
{
message_die(GENERAL_MESSAGE, 'We are moving servers, posting is temporary disabled to keep our database up to date.<br>Please come back later');
}
|
|
|
| Back to top |
|
 |
Google adsense Advertisement
|
Posted: Mon Mar 09, 2009 2:36 pm Post subject: [phpbb2] Moving servers and you dont' want to completely disable your board? |
|
|
Advertisement
|
|
| Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|