Automated site creation

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by tuxberg on February 19, 2011 at 1:06am

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.

Categories:

Comments

Caution

Posted by jct on February 21, 2011 at 5:09pm

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

Posted by tuxberg on February 21, 2011 at 5:14pm

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

Posted by jct on February 21, 2011 at 5:44pm

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

Posted by tuxberg on February 23, 2011 at 6:06pm

It works! (c) Apache

Thank you!

Thank you

Posted by bremskraft on March 15, 2011 at 1:39am

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

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:

AltStyle によって変換されたページ (->オリジナル) /