#1
I have just gone through an involved process of setting up a module and table
of guest users -- linked to trongate_users but separate from trongate_administrators. I learned a great deal about Trongate structure and the API from my coding, but I'm thinking there are probably better and faster ways to do this. Anyone want to share their process or is there a lesson that is out that best shows this?
#2
Hi there,
Could you please show me how you have structured your user table so I can better understand your issues?

DC has designed Trongate's user tables to be easily linked, and it's really up to the developer to expand on it to meet their needs. Levels, groups, scenarios etc...

The Simple Members module is a great place to start and it has a great video -> https://youtu.be/v6Mc3e5SXOM

The _make_sure_allowed in Trongate_security is rather simple to follow

Adding these two lines of code to make a page private is even simpler:
#3
The "Simple Members Module" seems to be what I'm looking for here. Thanks.

That probably answers my question, but here is the MySQL description for my 'guest' table in case it helps you understand what I'm after more:
id int(11) NO PRI
NULL
auto_increment
trongate_user_id int(11) YES MUL
NULL

email varchar(255) YES UNI
NULL

password varchar(60) YES
NULL

fname varchar(25) YES
NULL

lname varchar(25) YES
NULL

middle varchar(25) YES
NULL

nickname varchar(25) YES
NULL

num_logins int(11) YES
NULL

confirmed tinyint(1) YES 0
date_joined date YES
NULL

updated datetime NO CURRENT_TIMESTAMP
email_list_id int(11) NO 0
code varchar(32) YES
NULL

information text YES
NULL
#4
Yeah that Simple Members Market Module and the video showed me what I needed to know.
The tricky part for me was working out the logic for:
Members()::_make_sure_allowed()
and
Members()::_get_member_obj()
#5
Hello
Here is my way.
It not optimized, but it working :D
#6
Nice site quangquoc, the blurred parallax background grabbed my attention ?
Was wondering why the load times are so slow though.

Hi mbrick02, the logic to the members->_make_sure_allowed() method is pretty straight forward:

what part is troubling you?
#7
thanks DaFa,
My App on develop road. Database still at local.
i will try reduce loadtime < 2s.
Because I use front-end template with many animation and social iframe. so < 1s is not possible.
Back to mbrick02, hope you succeed!