kendojoe
Forum Replies Created
-
Forum: Plugins
In reply to: [Very Simple Splash Page] Splash Page Load Every TimeGreat plug-in, but I was suffering with the same limitation as mentioned by all above – Only works once.
So I started looking into the code….. and I found a simple solution!
It seems that the developer has this option in mind but maybe hasn’t quite got it working perfectly – so please proceed with this fix with caution! I have not noticed any issues yet, but there must be a reason that it has been left out.
Edit two files:
admin.php remove ‘//’ from the start of lines 89 & 91
should leave you with this:
dc_number('Days until splash page appear', array('name'=>'vssp_options[cookie_expiration]', 'hint'=>'If 0, it will appear every session.', 'min' => 0, 'max' => 60), $options['cookie_expiration']);
echo '<p>Clear Cookies</p>';splash-page.php remove ‘//’ from the start of line 41
should leave you with this:
$this->cookie_expiration = ($this->settings['cookie_expiration'] != 0 ? time() + ( $this->settings['cookie_expiration'] * 24 * 3600 ) : 0 );You will then notice new options on the settings page. Set the number of days to expire the cookie.
When set to 0 days the cookie expires once the browser session is ended (so you will have to close your browser to test the effects)Hope that helps!