Avatar renaming and data retreval

Issues related to the Login tools of WYSIWYG Web Builder.
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.
Post Reply
HankRock
 
 
Posts: 10
Joined: Tue Jan 22, 2019 9:05 pm

Avatar renaming and data retreval

Post by HankRock » Mon Feb 11, 2019 8:56 pm

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?

User avatar
Pablo
 
Posts: 17620
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Avatar renaming and data retreval

Post by Pablo » Mon Feb 11, 2019 9:35 pm

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.

HankRock
 
 
Posts: 10
Joined: Tue Jan 22, 2019 9:05 pm

Re: Avatar renaming and data retreval

Post by HankRock » Tue Feb 12, 2019 2:07 pm

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!
Last edited by HankRock on Tue Feb 12, 2019 2:41 pm, edited 1 time in total.

User avatar
Pablo
 
Posts: 17620
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Avatar renaming and data retreval

Post by Pablo » Tue Feb 12, 2019 2:10 pm

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.

HankRock
 
 
Posts: 10
Joined: Tue Jan 22, 2019 9:05 pm

Re: Avatar renaming and data retreval

Post by HankRock » Tue Feb 12, 2019 2:50 pm

The login form? or the signup form?

User avatar
BaconFries
 
 
Posts: 4635
Joined: Thu Aug 16, 2007 7:32 pm

Re: Avatar renaming and data retreval

Post by BaconFries » Tue Feb 12, 2019 2:53 pm

Pablo wrote:
Tue Feb 12, 2019 2:10 pm
1. Right click the login form and select 'Convert to form' then you can customize the PHP code.

HankRock
 
 
Posts: 10
Joined: Tue Jan 22, 2019 9:05 pm

Re: Avatar renaming and data retreval

Post by HankRock » Tue Feb 12, 2019 2:54 pm

By the way, when I use the login name object, all I get is a white square, no avatars

User avatar
Pablo
 
Posts: 17620
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Avatar renaming and data retreval

Post by Pablo » Tue Feb 12, 2019 3:08 pm

the signup form, the one you want to modify.

Post Reply