Hi,
is it possible to run a snippet just one time? i am using the RandomImage snippet and i want to have a background image that is site wide but changes the next time you visit the page. So each browsering session it only runs once.
thanks,
Gareth
Can you explain a little bit more what you want?
Do you want that when a user enters the site the snippet get’s runned and then set’s a variable that will have the same value until the user leaves the website. Therefore you will have to make a snippet that creates a php session.
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
I agree with MediaGuy, a php snippet using a session var will work throughout the entire site for each visitor. Don’t think anything like this is available so you may need to code something yourself. The good news is that it is not too difficult, may even be possible to modify the randomImage snippet.