The INN Nerds
Forum Replies Created
-
Forum: Plugins
In reply to: [Super Cool Ad Manager Plugin] Echo in PHPThere’s two ways to do it.
The first way:
- Register a widget area with the register_sidebar function in your theme
- In your template, display the sidebar by calling dynamic_sidebar using the name of the widget area you registered.
- Add a DoubleClick for WordPress widget to the sidebar through the Dashboard or the Customizer.
For more about this method, see the WordPress Codex article on sidebars.
The other way, which is not recommended or supported by INN, is to call
the_widget( $widget, $instance, $args )
and pass the following arguments:$widget
:DoubleClick_Widget
$instance
= array(
‘identifier’ => ‘your ad code from DFP’,
‘sizes’ => array(
// an array of strings with breakpoint identifier => a string containing a comma-separated list of ad sizes valid between that breakpoint and the next-largest
// get valid versions of this array by examining the widget when the plugin is configured
),
‘lazyLoad’ => true,
‘title’ => ‘Optional widget title’
)$args
: see https://codex.www.ads-software.com/Function_Reference/the_widget- This reply was modified 7 years, 10 months ago by The INN Nerds. Reason: formatting
- This reply was modified 7 years, 10 months ago by The INN Nerds. Reason: formatting
- This reply was modified 7 years, 10 months ago by The INN Nerds. Reason: formatting
Forum: Reviews
In reply to: [Google Analytics Popular Posts] Great plugin, but needs improvementsHi Martin –
Thanks for those suggestions!
On all the Google API stuff, we think there was a change at some point that broke a bunch of that so we just need to take some time to revisit that and see what needs to be tweaked to work with whatever the new version of the API requires.
The URL not mapping to post ID issue is a new one (to us). Can you give us a little more detail on that or maybe open a github issue so we can track and hopefully resolve that? https://github.com/INN/Google-Analytics-Popular-Posts
Re: only storing data for two days, we were originally keeping the data around forever but found that for even medium-sized sites the db got huge very quickly so we decided to limit it to just the past couple days because that’s really all that’s used for the calculation of which posts are the most popular in a given time period. If you wanted to do other things with that data, then yeah, you’d definitely want to keep it around longer and we could probably make that option filterable in the plugin, just with the caveat that you’d want to keep a close eye on the size of that table to make sure you don’t run into major performance issues.
Not sure if you have the time/energy to contribute to the plugin directly, but we’d definitely welcome that if you’re willing/able to hack away at any of these issues.
Thanks again for the review and the suggestions!
Best,
Adam- This reply was modified 8 years, 2 months ago by The INN Nerds.