Login object

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
User avatar
alex4orly
 
 
Posts: 557
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Login object

Post by alex4orly » Fri Dec 01, 2017 8:56 pm

I am using the Login object, but want to add a counter to record each time a visitor logs into the site.
I am storing the data in the .csv file
Any suggestions?

Cheers

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

Re: Login object

Post by BaconFries » Fri Dec 01, 2017 9:22 pm

It could be done by grabbing/collecting the IP of the visitor. Now not sure if this would be possible for you to do, as I remember the visitors are mainly from your community (village) and the IP address is the same for all. If you looking to catch external visitors then maybe the following:
PHP Counter If you are then wanting to catch and save to a CSV then if may need a custom script for this. On another note isn't the visitors login details saved to the CSV? and can't it then be simply counted to see who and how many times they have.?

User avatar
alex4orly
 
 
Posts: 557
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Login object

Post by alex4orly » Fri Dec 01, 2017 10:09 pm

Good memory Baconfries...

When a visitor logs in, it gives me their villa number as "User name" so I already capture who they are, no need for their IP address which in my case as you said is usless. I want the individual count for each, not the global number of visitors.

I can redirect the person once his / her login is succesful to the "Success page" and in there write some PHP script to do the counting. BUT
1) I have no idea how to capture the user name / villa number from the original WWB Login object to pass it ont the success page
2) Once I can do that, I will have to open the saved visitors.csv and seek that particula record
3) Once found, read the latest counter and increment it by 1

Any suggestions?

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

Re: Login object

Post by BaconFries » Fri Dec 01, 2017 11:37 pm

Would need to use "Group by" and COUNT(*) from your SQL database if using one. See the following
User Per Day

User avatar
alex4orly
 
 
Posts: 557
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Login object

Post by alex4orly » Sat Dec 02, 2017 3:58 am

Not the case, just using a CSV flat file.
Will have to read the record, increment and save back

Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests