Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

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


  #1  
Old Feb 9, 2010, 04:01 AM
drongo
 
27 posts · Sep 2009
Hi,

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'])) {
        @include_once( 
$_SERVER['DOCUMENT_ROOT'] . '/slimstat/
inc.stats.php' 
); } 
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.

Greetings,
Drongo

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Archived posts only appear when the admin panel has been opened in the same browser aethervision Atahualpa 3 Wordpress theme 3 Nov 4, 2009 12:16 PM
Backpage Access Problems....Cookie Related? pizzablogger Atahualpa 3 Wordpress theme 0 Sep 9, 2009 02:21 PM
sliding panel plugin and ie page placement bushtool Plugins & Atahualpa 9 Jul 27, 2009 07:01 PM
sliding panel plugin and ie css issue bushtool Header configuration & styling 2 Jul 6, 2009 10:52 AM
Removing Page Title from centre panel mynot Atahualpa 3 Wordpress theme 1 Jun 25, 2009 08:39 PM


All times are GMT -6. The time now is 12:29 PM.


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