Automated site creation

Events happening in the community are now at Drupal community events on www.drupal.org.
tuxberg's picture

Hi all!

Is there any way of making OpenScholar create a new user's website right after adding a new user? I'm talking about admin-only registration mode.

Comments

Caution

jct's picture

I've had problems with new users and sites added by the usual Drupal means. I'd highly recommend going to /site/register (while logged in as an admin) to create the user and space. Lucky for you it will create both at the same time :)

The problem is that I don't

tuxberg's picture

The problem is that I don't want to open registration for any unauthenticated user.
I'd be glad if there was a way of admin-only user-and-site creation.

Registration is handled

jct's picture

Registration is handled through the scholarregister module (in openscholar_sitewide). I protected site registration from unauthenticated users by making a small tweak on line 46 of scholarregister.module

Replace:
if (user_access('access content')){

With:
if (node_access('create', variable_get('scholar_content_type', 'vsite'))){

Sorry that's not a proper patch, but hope it helps.

It works! (c) Apache Thank

tuxberg's picture

It works! (c) Apache

Thank you!

Thank you

bremskraft's picture

That works! I'm trying to allow "managers" to register new users, but not unauthenticated users or just "users." Anyone have any advice?

eljay's picture

Hi all,

I have built/ am building a community site aimed at a specific target audience with two options for membership. First one is free, i.e. the authenticated user and the second one is paid for. I would like to make use of OpenScholar for the paying members to create their own web site with bio, resume, publications, etcetera, and am wondering whether it is possible to share the user tables and other relevant tables between both sites, so that the paying members automatically are granted access to the OpenScholar site.

Anyone any suggestions?

Thx in advance,

Eljay

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: