Hi gang,
Two questions…
1. I’m implementing a user login area with the "WebLogin" snippet, and I’m trying to set the page that is returned once a user logs in. I’d like it to be set to whatever page a person is viewing at the time they decide to login. For example, if they’re viewing a blog post, and decide to login to add comments to it, they’ll be returned to that SAME page. So the returned page will always be whatever page they were on when they login. So it’s never a default, but varies. Does that make sense?
I think I have to modify something in one of the following files, but I’m not sure exactly what.
…snippets/weblogin/weblogin.inc.php
…snippets/weblogin/weblogin.processor.inc.php
or modify this line of code
[!WebLogin? &tpl=`FormLogin` &loginhomeid=`--what goes here?--`!]
For this code, I probably want something other than "&loginhomeid", right?
2. Also, I’d like to show the username once s/he logs in. Which value do I use? I’ve tried "[+username+]", "[+userid+]", and "[+uid+]". None of them work. This may be related to above files as well.
Here’s the code I’ve been using:
<p>Hi [+username+].<br />
You're logged in.</p>
<p><a href="[+action+]" title="[+logouttext+]">[+logouttext+]</a></p>
Everything but "[+username+]" is displayed.
Any ideas?