amnesiak
Member
Posted 6 years ago #
I had a couple of questions.
I wanted to do it so that a person needed to tick a box or click a link on my blog that would display the adult related humour on the site as well as certain ads.
So you go to the site, you see a normal site, clicking "I'm over 18" shows the adult category and ads.
Is this possible? If so, can somebody advise me?
If you want to show two different versions of one page (some content, second version some added content) there are three different ways:
-Send whole page, use javascript to show elements on request (part of web2.0). Use cookies to remember preferences from page to page
-use php to serve out different versions (via session or cookie)
-make two pages, with the content (you have to update two different versions) and link in between.
amnesiak
Member
Posted 6 years ago #
thank you for explaining the three methods.
Could you point me in the direction of a tutorial of how I could implement this? (talking about point 1 or 2)
Many thanks,
Kei
amnesiak
Member
Posted 6 years ago #
pizdin_dim
Member
Posted 6 years ago #
Try this tutorial first. Then try this one. After that, read this excellent article from Zend.
amnesiak
Member
Posted 6 years ago #
will do! Thanks very much!