robgundling
Forum Replies Created
-
Forum: Plugins
In reply to: Google Adwords Conversion Code & Gravity FormsYou might want to take a look at this (using Google Analytics events)
https://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734
Add this below to your functions.php file and change the $form[‘id’] to your form ID #. Obviously, you can change the Event name sent to Google Analytics.
<?php add_action("gform_post_submission", "gf_ga_tracking", 10, 2); function gf_ga_tracking($entry, $form) { if($form['id'] != 4) return; ?> <script type="text/javascript"> jQuery(document).ready(function($) { _gaq.push(['_trackEvent', 'Forms', 'Submission', 'GA Testing Form FINAL']); }); </script> <div class="ga-confirmation">Nice! Your <strong>successful</strong> form submission was recorded by Google Analytics.</div> <?php } ?>
I have been able to implement the hook. The only issue I have is that it is only giving me “square” thumbnails to display. Any hints on how I could do something like 194×63 px?
I see you added a custom hook in there in the Plugin update… awesome!
Thanks for the response! Implementing now…
Forum: Plugins
In reply to: [Ajaxy Instant Search] [Plugin: Ajaxy Live Search] Filter Out CategoriesOk.. it’s a technical solution that involves hardcoding the plugin, but it works until the next revision. I really like the output of this plugin, but HAD to hide a couple categories due to my customized WP categories.
You’ll need to know your category IDs..
Edit the plugin sf.php file and around line 861 you’ll see before that
foreach($results as $result) {
My categories to hide were 10 and 13, so my code that I inserted at that point is:
$catoutofloop = get_the_category($result->ID); $catID = ($catoutofloop[0]->term_id ); if ( ($catID != "10") && ($catID != "13") ) {
You’ll then need to close your if statement, so find around line 950 at this point
$posts[] = $pst; }
And add one more closing backet after that, so the updated code will end:
$posts[] = $pst; } } } } return $posts;
I hope this helps someone. The developer told me this will be in the next release.
Luke! Awesome addition to the community, man. Confirming that this fix works great in WP3.2/3.3.
Thanks for posting…
Forum: Plugins
In reply to: [Meteor Slides] Easing and Meteor SlidesFound this forum post while looking for the same thing…
Got it working and thought it could help someone in the future…
When inserting into a custom theme template theme, use metadata like so:
<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "", "fx: 'scrollLeft', easing: 'easeInOutBack'" ); } ?>
Looks like you could do it with shortcode as well with something like this (haven’t tried this, but should be equivalent):
[meteor_slideshow metadata="fx: 'scrollLeft', easing: 'easeInOutBack'"]
This will kill the slideshow animation completely if you did not load an easing js file. Be sure you add something to your header that loads jquery easing… my phrase looks like this:
<script src="<?php bloginfo('template_url'); ?>/js/jquery.easing.1.3.js" type="text/javascript"></script>
Josh.. thanks for a great plugin!