Support Forum

Importing Users

MB Myles Bartlett
Myles Bartlett
Member

Hello,

 

Is it possible to import a list of usernames/passwords so that they will work with Simple:Press?

 

We want our forum to be invite only, and we’ll setup the accounts for our customers. The initial set of accounts however would ideally be imported from a spreadsheet/csv. Is this possible?

 

I’ve tried to manually create a user in wp_users to test the process, however that user doesn’t get picked up as a user by Simple:Press (it isn’t listed under the Members Information menu).

 

Any help would be kindly appreciated.

 

Thank you

22 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Well let’s say straight out that registerig users is the domain of the WordPress side of things and not within the province of SP. So any import would have to be addressed at the WP level.

As long as the correct WP action hooks get fired, then SP will pick these up – which brings us to the more worrisome part of your question – the one you set up in the WP New Users panel and why did this not get recognised by SP.

So – in the forum admin > Options > Members you can set up the default user groups that new registrants will be automatically assigned to. Can you check that this data is set up correctly for your user groups?

You should also go to the forum admin > User Groups and at the bottom of the main page is a button that will display any users NOT in an SP user group. Is your new user in that list?

MB Myles Bartlett
Myles Bartlett
Member

Thanks for the quick response.

 

I’ve tried using a WP import utility (CSV) and that works a treat with Simple:Press. The only thing that isn’t work…and doesn’t work on my initial users too is the Profile tab. It looks like its pointing to an old installation path:

 

Profile form could not be found [C:/Forum/wp-content/plugins/simple-press/forum/profile/forms/sp-form-overview.php]

 

Is there anywhere I can change where SP is looking for the Profile Form to reflect its new location?

YS Yellow Swordfish
Yellow Swordfish
Member

Go to the forum admin ? Toolbox > Housekeeping and click on the option to reset the profile tabs and menus. That will correct the issue.

MB Myles Bartlett
Myles Bartlett
Member

Thanks again for the quick reply! 😀

I’ve done this, and it has updated the path but still getting an error. Is the profile section able to use a UNC? The error we’re getting now is:

Profile form could not be found [/fileserver/WEBSITES/Forums/wp-content/plugins/simple-press/forum/profile/forms/sp-form-overview.php]

I’d have thought the path should be \fileserverwebstiesforums….

YS Yellow Swordfish
Yellow Swordfish
Member

Before answering that one what about other paths the forum needs? Does SP find all the storage location correctly for example? And the themes and plugins?

MB Myles Bartlett
Myles Bartlett
Member

Hi,

 

Yes everything else looks fine, all the Storage Locations under Integration look fine. Everything is working fine apart from trying to view profiles. How does that path get generated? Is that something I can set manually to properly work with a UNC?

 

Cheers

 

Myles

MP Mr Papa
Mr Papa
Member

just back from a business trip… will look into this tonight or tomorrow…  if the other storage locations are fine, and you are able to upload smileys, ranks, etc then we should be able to get this working on your set up too… at least that is the theory…

tens of thousands of downloads and the first to try this I guess wink

MP Mr Papa
Mr Papa
Member

Myles, I dont really have any kind of system I can test this one… but can you try a small code change for me?

find the file simple-press/forum/profile/ahah/sp-ahah-profile.php and around line 142, find this code:

            if (!empty($thisForm) && file_exists($thisForm)) {
                include_once ($thisForm);
            } else {

and try changing it to:

            if (!empty($thisForm) && file_exists($thisForm)) {
                $thisForm = str_replace('\','/',$thisForm); # sanitize for Win32 installs
                $thisForm = preg_replace('|/+|','/', $thisForm); # remove any duplicate slash
                $thisForm = trim($thisForm, '/');
                include_once ($thisForm);
            } else {

and see if that helps..

MB Myles Bartlett
Myles Bartlett
Member

Sorry to be an awkward one! Although seems odd that no one else has their WP install on shared storage.

 

I’ve tried the code change but the error still looks the same (tried clearing browser caches)

 

Profile form could not be found [/fileserver/WEBSITES/Forums/wp-content/plugins/simple-press/forum/profile/forms/sp-form-overview.php]

 

Should that attempt to replace the forward slashes with back slashes? I imagine the path should read:

 

\fileserverWEBSITESForumswp-contentpluginssimple-pressforumprofileformssp-form-overview.php]

MP Mr Papa
Mr Papa
Member

shouldnt matter…  windows server at least understand both types of slashes… 

and the key is that you said all your other storage locations work on the is shared server… so this code is how they do it…  frankly surprised they would work given the \ start of network shares…  and yes, first time anyone has brought this up…

so you are able to upload ranks, smileys or avatars to the network share? or any of the other storage locations??  I know you said they looked fine…   just they generate the path the same way…

will have to dig in a bit further and see if I missed something last night…

MB Myles Bartlett
Myles Bartlett
Member

Yep everything else works fine, I’ve been changing the default avatars on the shared storage, which is then reflected in the forums. So SP is definitely able to use the shared storage, just seems really really odd that it’s not working for this file. Please let me know if I can provide any further information to assist with this. 

MP Mr Papa
Mr Papa
Member

so the entire wp install is on the shared storage?

well, at this point, I really need a closer look and throw out some debug stuff… Is there any chance of getting ftp access to the server so I can try some code modifications and see what is up?

MB Myles Bartlett
Myles Bartlett
Member

Yes, all on shared storage with the directory structure retained.

 

Sure, I’ll PM you some details.