Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   asking for a cookie and placing it in the admin-panel (http://forum.bytesforall.com/showthread.php?t=5785)

drongo Feb 9, 2010 03:01 AM

asking for a cookie and placing it in the admin-panel

I have two qestions on integrating the statistic-software slimstat into atahualpa.

1) I installed slimstat. Now I want to prevent counting me when I visit my wordpress-page. They told me to add this
PHP Code:

if (!isset($_COOKIE['dontCountMe'])) {
$_SERVER['DOCUMENT_ROOT'] . '/slimstat/
); } 

to the header-area. This asks for a cookie and starts slimstat only if there is no cookie like this one.
But I can't add php to the header in atahualpa and I don't want to use the php-way of adding slimstat. I added this java script
HTML Code:

<script type="text/javascript" src="/wordpress/slimstat/?js"></script>
to the header, which is working.
Is there a html/javascript-way to ask for a cookie before starting this code?

2) How can I add a cookie to the browser, so that every time someone is starting the admin-panel, this cookie is set? They are using this cookie: setcookie('dontCountMe', '1', time() + 365 * 24 * 60 * 60, '/'). I dont know what these numbers are all about and how to add it to the admin-panel. Or maybe at least manually?

Of course, I asked the slimstat group in first place, but they dont answer.


All times are GMT -6. The time now is 08:20 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.