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
Login object
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.
- BaconFries
-
- Posts: 5371
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Login object
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.?
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.?
Re: Login object
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?
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?
- BaconFries
-
- Posts: 5371
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Login object
Would need to use "Group by" and COUNT(*) from your SQL database if using one. See the following
User Per Day
User Per Day
Re: Login object
Not the case, just using a CSV flat file.
Will have to read the record, increment and save back
Thanks
Will have to read the record, increment and save back
Thanks