All users of my gallery are assigned a category, and I would spare them the job of sifting through all categories. It would be a good idea to do that after registering, directly entering its own category.
Can you help me?
Thanks a lot
I assume you mean after logging in (on each visit) - and not just after registering (once)...
CPG already does a redirect to new page after login - so adjusting that is rather simple in login.php - just need to know what cat number to direct them to... (at 1.5.26 - line 58 sets the redirect page after login.)
My questions would be:
- How you determine what category a user is 'assigned' to? Is it a category they are allowed to upload to?
- Could they be 'assigned' to more than one category? I would think at least some users (like admin) would - and how would you select between the possible categories?
- Do you want this to 'override' a requested referrer? or only if none/login.php is specified?
(for example, if you attempt to go to admin.php but are not logged in - you are redirected to login - and will be returned to admin.php after successful login. Do you want to change that? Or only if the user clicked on 'Login' or was directed there from index.php?)