[Plugin: WP Splash Image] BUG – not displaying ONLY ONCE when traffic not through homepage – HOW TO
-
Great plugin but with a quite big bug. If you want to display the splash image just once then it works fine when user comes to first page of the blog. It doesn’t work when he comes directly to one of your subsections and you use seo urls (that looks like folders for example https://www.xyz.com/products/). Then jumping to different menu (except below current tree) for example https://www.xyz.com/contact/ will cause another display of splash.
This is due to a way how cookies are used in plugin. Browsers allow to access cookies only if PATH in cookie is same or parent (tree) folder.
Fix is easy. WsiFront.class.php file, line 81, code:
setCookie('last_display',time(),time()+24*3600);
use with path parameter (see php setcookie() function). So either generally as:
setCookie('last_display',time(),time()+24*3600,SITECOOKIEPATH);
or you can hardcode it like
setCookie('last_display',time(),time()+24*3600,'/');
depending on your site structure.Hope it will be fixed in next version.
- The topic ‘[Plugin: WP Splash Image] BUG – not displaying ONLY ONCE when traffic not through homepage – HOW TO’ is closed to new replies.