This is really two separate issue that are linked in a way:
First, is there a reason / way to control how the avatars are renamed once uploaded? I am using the mysql database and it adds a random number string to the photo.
Second, I am trying to create a page that shows the fullname and avatar images, but due to the fact that the script adds the random number to the filename I can't figure out how to do this automatically. Any suggestions?
Avatar renaming and data retreval
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Re: Avatar renaming and data retreval
1. The reason why this is done is for security, so hackers cannot guess the filename on the server.
If you do not care about security then you can modify the code and remove the random filename.
2. You can display the avatar on the page via de 'Login Name' object.
If you do not care about security then you can modify the code and remove the random filename.
2. You can display the avatar on the page via de 'Login Name' object.
Re: Avatar renaming and data retreval
Thanks for the reply,
1. Do I have to change the form to HTML to edit it or is it in a php code somewhere? Also, I'd love to just have it rename the file with the fullname from the registration form!
2. how do I display all the avatars, not just the currently logged in persons. I would like to create like a member directory!
1. Do I have to change the form to HTML to edit it or is it in a php code somewhere? Also, I'd love to just have it rename the file with the fullname from the registration form!
2. how do I display all the avatars, not just the currently logged in persons. I would like to create like a member directory!
Last edited by HankRock on Tue Feb 12, 2019 2:41 pm, edited 1 time in total.
Re: Avatar renaming and data retreval
1. Right click the login form and select 'Convert to form' then you can customize the PHP code.
2. There is no standard solution for this, this will require a custom script.
2. There is no standard solution for this, this will require a custom script.
Re: Avatar renaming and data retreval
The login form? or the signup form?
- BaconFries
-
- Posts: 5800
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Avatar renaming and data retreval
By the way, when I use the login name object, all I get is a white square, no avatars
Re: Avatar renaming and data retreval
the signup form, the one you want to modify.