PV-Patrick
Forum Replies Created
-
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopYou’re the man!! That did the trick!
Curious, why the… weird change?
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopSure, what is it you need? Here is the code in question:
wp_slimstat_db::$filters = array(); wp_slimstat_db::init('content_type equals cpt:vines|resource contains '.$post->post_name); $views = wp_slimstat_db::count_records('1=1', '*', true, false);If the filters = array() is commented out the page loads but views are all 0. If it’s not commented out, page doesn’t load that section.
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopHi Camu – sorry to bug ya again but I updated to 3.5.5 and still no dice. Whether I have wp_slimstat_db::$filters = array(); or not, still doesn’t show the page views.
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopThanks camu!
Any timeframe on 3.5.5? Just asking since it breaks my site or it doesn’t show page views, haha.
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopHi camu,
When I upgraded slimstat recently, the following line you gave me is breaking the page load:wp_slimstat_db::$filters = array();
If I comment it out, the page loads fine but obviously the view count is off. Running 3.5.4 and it happened when updating to the 3.5 branch I believe. Any suggestions? Thank you!
Forum: Plugins
In reply to: [SlimStat Analytics] Admin Page BlankHi Camu, meant to update this with the fix. I had moved the require statement for the wp-slimstat-db.php in to functions.php and was not seeing the error about it already be declared on my live environment so once I got it going on my dev environment I saw the error and changed it to require_once, all works now!
Forum: Plugins
In reply to: [SlimStat Analytics] Admin Page BlankREMOVED.
Forum: Plugins
In reply to: [SlimStat Analytics] Admin Page BlankI just tried removing SlimStats and re-installing and that didn’t correct the issue. I am thinking it has something to do with the add/remove of W3 total cache…
Forum: Plugins
In reply to: [SlimStat Analytics] Admin Page BlankIs there anything that would maybe stop that page from loading in regards to jquery? ie, when it’s loaded, etc…
Forum: Plugins
In reply to: [SlimStat Analytics] Admin Page BlankNo, I did not. All text areas on the Filters tab are empty.
I didn’t change anything within SlimStats. As I mentioned, the only changes were the upgrade to 3.7.0/1 and install/delete of W3 Total Cache.
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopDefinitely, is vote different than a review?
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopThat worked! Another command you should add to the documentation! I was looking all over for something like that! (I could have missed it too)
Really appreciate the time and help camu!
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopPerfect! haha – At least I know I’m not going insane… spent a ton of hours trying to figure it out before I hoped on here to bother you. I wasn’t aware of that command to print out that stuff for debugging, really helped!
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopWe might be on to something now…
The values are changing, however I think maybe the error resides in the contains portion. The post_name is obviously getting cut off, looks like it’s limited to 15 characters: “avicii-levels-r”
Producing SQL: [sql_where] => AND tci.content_type = ‘cpt:vines’ AND t1.resource LIKE ‘%whenever-my-asi%’ AND tci.content_type = ‘cpt:vines’ AND t1.resource LIKE ‘%avicii-levels-r%’
The full post_name is: avicii–levels-requested-by-many
Do you think this might be the cause?
Forum: Plugins
In reply to: [SlimStat Analytics] API calls in the_loopThat isn’t working either. This is what I have:
wp_slimstat_db::init(‘content_type equals cpt:vines|resource contains ‘.$post->post_name.’|strtotime equals today|interval equals -1000’);I even tried this since I thought maybe the post_name was too long for the API: wp_slimstat_db::init(‘content_type equals cpt:vines|resource contains ‘.substr($post->post_name, 0, 15).’|strtotime equals today|interval equals -1000’);
The count works correctly for the 1st item but still displays 0 for the remainder.