15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Master Class miniBB Support Forums / Master Class /   

What happens with vars during templates parsing?

Author terex
#1 | Posted: 26 Apr 2003 17:51 | Edited by: terex 
Sorry for my english first

piece of templates/user_logn_form:

piece of bb_fucn_vthread.php:
if (!$user_usr) $user_usr=$l_anonymous;

Why value of $user_usr does not appear in the input box in the login form?

It interest me because when users sees blank textbox, they left it as is. After, i see messages only from Anonymous =)

But if $l_anonymous wrote in "login" field, probably users will change whis name to another.

Author mmx
#2 | Posted: 26 Apr 2003 18:07 | Edited by: mmx 
if you try a username that exists - without the correct password (because you mistyped or it is not your account) you will see an error message; if you click back there the template will fill in the account you tried.
of course the very first time a user comes in the template cannot "smell" who is trying to get in :-)

Author terex
#3 | Posted: 26 Apr 2003 18:55 | Edited by: terex 
Oops.. I didn't think about this :)
Ok, no questions.

Master Class miniBB Support Forums / Master Class / What happens with vars during templates parsing? Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB