Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Matt G] Two User Types? ... (plus misc)

Quote Reply
Re: [Matt G] Two User Types? ... (plus misc) In reply to
Hi,

Yeah, not sure I could fit a description in there (its simply meant to show you what is included in what package :)). I could probably get an AJAX description showing up to the side of it, but afraid I'm a bit busy atm, so don't have spare time to do anything like that just yet.

Quote:
Next, I've been thinking more about this 2 user situation. After contemplation, I don't think the additional enum field (UserType: advertiser/consumer) is going to work for me. In my particular case, while there will the be 2 types of users, it will also be possible (and in fact very likely) for an advertiser to also be a consumer.

One solution that I see is to add two enum fields to the Users table... Advertiser Y/N and Consumer Y/N

Sure, that could work. I would use a SELECT field (no ENUM), and then have text values + the 0/1 values that get stored in trhe DB (just a bit nicer in terms of DB speed, especially if your user DB gets large)

Quote:
Another is to simply create a separate consumer user table. A thought here is that I'll need to collect different info for both user types. For example, I need to allow consumers to let me know what kind of categories of links they might find interesting. (granted this example might involve yet another table or tables, haven't thought through that yet)

Mmm, that could have a couple of issues:

1) you would need to edit the code to add it into the correct table
2) You will have issues with logging in (as you need to check different tables)
3) You may end up with duplicate username/email issues

If it were me - I would just use the standard table

Quote:
This also got me thinking about something relevant... Do you know if anyone has done any kind of "Profile" or "Account Management" plugin (or maybe a set of globals of some sort)? Where a User can view and modify their own data (say if they change their email or street address, which i need to collect/store). I need to do more than that, but would be a good starting point...

So users can edit their profile after signup? My User_Edit_Profile plugin does that:

http://www.ultranerds.co.uk/Detailed/87.html

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Two User Types? ... (plus misc) Matt G 3267 Apr 21, 2012, 2:59 PM
Thread Re: [Matt G] Two User Types? ... (plus misc)
Andy 3310 Apr 21, 2012, 11:58 PM
Thread Re: [Andy] Two User Types? ... (plus misc)
Matt G 3211 Apr 22, 2012, 10:59 AM
Thread Re: [Matt G] Two User Types? ... (plus misc)
Andy 3173 Apr 23, 2012, 4:45 AM
Thread Re: [Andy] Two User Types? ... (plus misc)
Matt G 3113 Apr 25, 2012, 6:56 AM
Thread Re: [Matt G] Two User Types? ... (plus misc)
Andy 3068 Apr 26, 2012, 2:24 AM
Thread Re: [Andy] Two User Types? ... (plus misc)
Matt G 3016 Apr 28, 2012, 2:59 PM
Post Re: [Matt G] Two User Types? ... (plus misc)
Andy 3003 Apr 29, 2012, 12:54 AM