EllisLab text mark
Advanced Search
     
Plugin: Anonymous Member
Posted: 17 September 2009 10:38 PM   [ Ignore ]
Avatar
Joined: 2007-02-16
408 posts

Download: http://www.brianlitzinger.com/ee/

This plugin lets you create an anonymous member, and immediately signs them in as that member so they can take advantage of certain functionality without registering with the site, which can be a barrier for user interaction.
     
      This was originally written to be used with Solspace’s Favorites module.
     
      Require Parameters:
     
      • group_id - Which member group do you want to assign the member to? Would be best to create a new group with no privileges.</li>
     
      Optional Parameters:
     
      • salt - If you want to salt the passwords.
      • screen_name - Screen Name you want to give anonymous users. If screen_name=“ip”, their IP address will be used instead. Default value is “Anonymous User”.
 
      Example:

{exp:anonymous_member:create group_id="6" salt="mysecret" screen_name="Freeloader"

      Log a user in again if their cookie is present: 

{exp:anonymous_member:login} 

     
      To use with the Favorites module, simply include this tag on the page before the “save” method:

{exp:anonymous_member:create group_id="6"}
        {exp
:favorites:save} 
 Signature 

@litzinger
Bold Minded add-ons

 
Posted: 19 September 2009 09:31 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-13
3806 posts

Very nice…

 Signature 

web: Caffeine Creations twitter @CS_sean

 
Posted: 20 September 2009 04:19 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2008-12-09
227 posts

This is great, working on a site right now where it might come in very handy.

 Signature 

Montreal web design | twitter

 
Posted: 17 November 2009 04:14 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2007-10-12
58 posts

Seems that http://www.brianlitzinger.com/ is down, you mind posting this extension here in the forum?

 Signature 

———————————————
Elevated Works > Design & Development

 
Posted: 17 November 2009 05:23 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-16
408 posts

It’s back up now.

I’d rather keep the most up to date file on my server. I don’t use Github b/c I use Subversion at work… too much for me to keep straight. Just easier for me to package it up as a zip file.

 Signature 

@litzinger
Bold Minded add-ons

 
Posted: 18 November 2009 01:04 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2007-10-12
58 posts

So I’ve got this, and trying to use it to add someone to the default “Members” group (id 5).

{exp:anonymous_member:create group_id="5" salt="mysecret" screen_name="Freeloader"

And/or

{exp:anonymous_member:create group_id="5"

Nothing seems to be happening. No new member is showing up in the control panel. I turned off the Member Group Security Lock (the one that says only Super Admins can add new members to the group), but that didn’t seem to have an effect either. Any ideas for debugging?

 Signature 

———————————————
Elevated Works > Design & Development

 
Posted: 18 November 2009 01:11 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2007-10-12
58 posts

Ah my fault, I was still logged in as the control panel admin when I checked the frontend. Now I see it.

Awesome! Thanks for the plugin.

 Signature 

———————————————
Elevated Works > Design & Development

 
Posted: 30 December 2009 10:35 AM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-16
408 posts

Updated to 1.0.1

Found a small bug in the login method that I hadn’t seen before even though I’ve used this on 3 sites already.

Download from the link in the OP.

 Signature 

@litzinger
Bold Minded add-ons

 
Posted: 08 February 2010 05:13 AM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2008-04-23
532 posts

Has anybody tried the LogMeIn plugin from PutYourLightsOn? They seem pretty similar in function, was wondering if anybody had some more insight on the two? I’m working on an SAEF form to act as a guestbook of sorts.

Upon looking at further documentation, am I correct in saying that I do not create this member first, as in the LogMeIn plugin? Rather the parameters auto-generate the user?

 
Posted: 08 February 2010 11:52 AM   [ Ignore ]   [ # 9 ]   [ Rating: 0 ]
Avatar
Joined: 2007-02-16
408 posts

They are similar in a way, but LogMeIn uses a predefined user that your guests will be logged in as. Mine actually creates a completely new user for each guest, but they don’t really know it.

If you look at the source code you’ll see where I’ve noted that I’d like to add the option to take that anonymous account and allow the guest to turn that account into a real user in which they can actually use.

So yeah, it’s two different approaches to essentially the same thing.

 Signature 

@litzinger
Bold Minded add-ons

 
Posted: 10 February 2010 11:28 AM   [ Ignore ]   [ # 10 ]   [ Rating: 0 ]
Avatar
Joined: 2006-11-22
375 posts

I’m looking at solutions to people not having to register before placing items in a shopping cart.
I looked at the plugin code and saw this example:

{exp:anonymous_member:create group_id="6" salt="mysecret" screen_name="Freeloader"

I wondered if it would be possible to insert dynamic data from a form, so something like:

{exp:anonymous_member:create group_id="6" salt="mysecret" screen_name="{name_from_form}" location="{address_from_form}" email="{email_from_from}"

So they filled in a form about themselves hit submit and then go on to the purchase item page.

I realise this is not anonymous data but it seems like a way round the potential blockage in needing to register before ordering. Ideally I would like to collect other things like a telephone number in a custom profile field.

 Signature 

pfweb.co.uk