by axew3 » Fri Jul 07, 2017 3:20 pm
hey thank you, but i was refer to a WP plugin. I've write already a pseudo code yesterday, that aim to use pure php/css solution.
It work fine, as posted into php.net in bad way also (i'm really shamed of myself often), the starting easy pseudo php code, that is may obvious for many, was this:
Code: Select all
if( !session_id() ){
session_start();
}
if(isset($_SESSION['w3_count'])){
$count = $_SESSION['w3_count'];
$count++;
$count = $_SESSION['w3_count'] = $count;
} else {
$count = $_SESSION['w3_count'] = 0;
//... load popup in some way
}
//unset($_SESSION['w3_count']);
//unset($count);
//session_destroy();
//exit;
I need pure css/php because (it now is very rare that happen) maybe the user could have js disabled on browser.
But in this site i'm doing, in any case, for various reasons, the warning need to show up in any case, for reasons of laws ...
The plugin will be published for free. Very light and with custom message that is possible to format with easy as you like due to a ... not common, but smarty solution (almost it appear to me!)
hey thank you, but i was refer to a WP plugin. I've write already a pseudo code yesterday, that aim to use pure php/css solution.
It work fine, as posted into php.net in bad way also (i'm really shamed of myself often), the starting easy pseudo php code, that is may obvious for many, was this:
[code]
if( !session_id() ){
session_start();
}
if(isset($_SESSION['w3_count'])){
$count = $_SESSION['w3_count'];
$count++;
$count = $_SESSION['w3_count'] = $count;
} else {
$count = $_SESSION['w3_count'] = 0;
//... load popup in some way
}
//unset($_SESSION['w3_count']);
//unset($count);
//session_destroy();
//exit;[/code]
I need pure css/php because (it now is very rare that happen) maybe the user could have js disabled on browser.
But in this site i'm doing, in any case, for various reasons, the warning need to show up in any case, for reasons of laws ...
The plugin will be published for free. Very light and with custom message that is possible to format with easy as you like due to a ... not common, but smarty solution (almost it appear to me!)