Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How To Re-install SimplePress
Avatar
john wilkins
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2014 - 8:03 am

Site crashed to have had to re-install everything.

I had back up of data base , what do I edit to connect a new install of SP to the data base ?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2014 - 9:07 am

Nit sure of the answer as I am unclear as to the circumstances... but... if you are reverting to a backup of the database then there should be nothing you need to change as long as the same version of the plugin code is installed as it was when the backup was made....

andy-signature.png
YELLOW
SWORDFISH
Avatar
john wilkins
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2014 - 9:40 am

OK first thing I did was to 'export' the data base. 

Installed a fresh version of Wordpress then 'imported' the saved data base.

 Now if for instance if I go into PHP My Admin I find bp2_sfforums  lists all the forums, go to bp2_sfmembers it lists all members.

Now I know the wordpress config.php  connects to the wp data base is there a similiar file for simplepress ?

Found sp-config.php but not sure how to edit it

<?php
/*
Simple:Press
sp-config.php - location support for WP 2.6 and later
$LastChangedDate: 2012-12-26 12:42:34 -0800 (Wed, 26 Dec 2012) $
$Rev: 9582 $
*/

if (preg_match('#'.basename(__FILE__).'#', $_SERVER['PHP_SELF'])) die('Access denied - you cannot directly call this file');

# ==========================================================================================
#
# CORE
# This is the first file to be included and contains some base settings that can be
# overridden by the user
#
# ==========================================================================================

global $wpdb;

# ------------------------------------------------------------------------------------------
# After WP 2.6 it is possible to relocate the wp-config.php file. Simple:Press should be
# able to find it. However, if it does not, then you will need to change the SF_BASEPATH
# constant below to point to the path of:
#
# your wp-load.php file
#
# This must be a 'path' NOT 'URL' and necessary if you have moved your wp-content folder.

define('SF_BASEPATH', dirname(dirname(dirname(dirname(__FILE__)))));
# ------------------------------------------------------------------------------------------

# ------------------------------------------------------------------------------------------
# Normally, Simple:Press tables are given the same table prefix as all of your other
# WordPress tables. You can change this by specifying an alternative below.

define('SF_PREFIX', $wpdb->prefix);
# ------------------------------------------------------------------------------------------

# ------------------------------------------------------------------------------------------
# A small javascript program has been used to replace checkboxes and radio buttons with
# more appealing graphics. A small number of users have experienced a conflict with this
# js library. If you have this problem please set SP_USE_PRETTY_CBOX_ADMIN to false.
# Note this applies to the admin only. For the forum itself this is defined in the theme

define('SP_USE_PRETTY_CBOX_ADMIN', true);
# ------------------------------------------------------------------------------------------

# Script concatenation is introduced in WP version 2.8. Sadly, out if the box, some of
# the jQuery code throws an error so this is turned off for the forum.

define('CONCATENATE_SCRIPTS', false);
?>

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2014 - 9:57 am

No. Nothing. As I said - if the database tables are in place and the software (plugin codfe files etc - and WP itself) are all in the right place then there should be nothing needed.

So - do you have the WordPress side of things working?

andy-signature.png
YELLOW
SWORDFISH
Avatar
john wilkins
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2014 - 10:02 am

Yes Wordpress working OK

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2014 - 10:30 am

OK - so what isn't working OK?

And is the Simple:Press plugin installed in the WP plugins? folder as needed?

andy-signature.png
YELLOW
SWORDFISH
Avatar
john wilkins
Member
Free Members
sp_UserOfflineSmall Offline
Jan 21, 2014 - 10:52 am

OK  Simple:Press is working but it isn't showing the members for instance but they show in the imported data base. 

 If I go into PHP My Admin the database at the top is - john1943_wp217

Now if I open the database the prefix is bp2_    and if I go to bp2_sfforums and click on it it shows all the forums I previously created.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2014 - 12:55 pm

I can't help you with database names - they should be whatever you named them. Obviously you need to be using the correct database and that is the one you will be pointing to in your wp-config.php file.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625