I've installed the timeaccess plugin that you coded but there's a small bug in the redirect.
Blog is installed in root domain.
So when user tries to access 'protected page' at [url removed, login to view], the redirect goes to
[url removed, login to view];redirect_to=http%3A%2F%[url removed, login to view]%2Fmembers%2Freseller%2F
There are two problem with the URL above:
- the [url removed, login to view] location is not correct (it should be [url removed, login to view])
- the redirect_to argument is [url removed, login to view] eventhough the intial request was made at [url removed, login to view]
So the first task is to fix the redirect. FYI I didn't use the custom login.php.
The second task is that I want to be able to insert custom tags that will display user-specific information
<!--fname--> = user first name
<!--lname--> = user last name
<!--email--> = user email
<!--referer_id--> = referer id
<!--id--> = user id
<!--points--> = user points
fname,lname,email,id should be queried from WP database. The referer_id and points needs to be extracted from external XML query as before.
The custom tags will only be displayed to logged in users.
I will pm you the live URL once project is accepted.