Posted by rene1986 on November 21, 2012 at 5:53am
Hey folks,
I have a pretty tough thing to do. I have a live site. We want to install a module do display different versions each time a new user visits our site. like other backgrounds and other stuff. Meanwhile there should be a statistic been created telling us wich site was most popular based on the applications we had through that page. It would be good, if the domain-name wouldn't change.
Can you tell me there some ways?
Thank you
Comments
Sounds like a fun module to
Sounds like a fun module to make. My first thought is to make use of the switchtheme module to allow users to pick their own theme. then add a database counter to count the number of times each theme was used.
--
Hire me and Follow me on Twitter
so far not bad, but the
so far not bad, but the different versions should appear randomly and not giving the opportunity for the user to choose
Have switchtheme pick the
Have switchtheme pick the theme randomly and set a cookie so it doesn't change on every page load.
--
Hire me and Follow me on Twitter
ok, das werde ich mal
ok, thank you, I will try that
An other possibility would be
An other possibility would be to:
Generate a random global variable in the settings.php but where shall we put the code to enter the value of the global variable into the database?
How can I ask Switchtheme to choose the themes randomly?
It's been a while since I
It's been a while since I have worked with switchtheme but I remember it accepting GET (?switchtheme=) Your module can call on that.
--
Hire me and Follow me on Twitter