Forum Moderators: coopster
I am new to PHP, but learning fast, and would appreciate comments/help from more expert readers. My aims are:
1) To totally hide the banner from readers who have made a donation.
2) To show the banner on increasing frequency depending upon usage of the site (starting at, say, every 5th page and increasing to every page for heavy usage).
I accepting the constraints of cookies, but envisage that the frequency with which the banner is shown will be controlled by both the number of page impressions in the current session and with previous sessions (assuming cookies enabled on the readers site).
Thanks in anticipation of any help.
In a sense, I envisage it being a sort of Shareware site.
No, the users won't be logged on. However, I would be happy to provide a log-on facilitiy for readers who HAVE made a donation and who therefore should not be shown the reminder banner. That would just mean that non-members get the banner. The tricky bit, I guess, would be controlling the the usage. I guess a cookie would be the answer and that could count the number of page impressions during the current session. OK, so those with cookies disabled will just get the default, but if I can get it right for 90% of users, I'll be happy.
a randomly generated number that they can enter on the donation page if they have already donated, this would then give you the ability to see, how much one person has donated (if they donate multiple times) how often they donate (if you have a different record for each date)
You can also have it so they can enter their donation ID should their cookie disapears.
The one tricky bit is for those who haven't made donations. I want to increase the frequency with which the banner is shown depending upon their usage of the site. So, a new visitor only gets the banner every five pages. However, somebody who's been there a lot and who hasn't donated should receive the banner more and more frequently, up to a maximum of every page.