Gents (Ladies too),
while trying out a number of different things in EE, I came across a puzzle I have, so far, been unable to solve:
Every user in my DB has a number of custom profile fields, one of them being a key, shortname {custom_keycode}.
I would like to allow users to view a certain template (named ‘dump’) if the key is present, even if they are not present e.g:
http://www.domain.com/tools/c89a1852a0df083485c997e0d148ccb73a2a97ff/dump/
legend:
‘tools’ is a template group
‘c89a1852a0df083485c997e0d148ccb73a2a97ff’ is the user’s custom_keycode
‘dump’ is the actual template
the ‘dump’ template should carry out an action (packing up, sending file to user) when the key is present
How do I tell EE and the ‘dump’ template to loop through all custom_keycode fields and check to see if the presented key is actually listed in the database?
This would be easy if the user would be logged in, but I want it to work without requiring the user to be logged in.
Any thoughts or pointers are greatly welcome!