eberger3
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Analytics Dashboard] Google's new oauth?@supertrooper2 . The Top Posts Widget got updated to work with the Google Analytics for WordPress plugin by the same developer.
Forum: Plugins
In reply to: [Google Analytics Dashboard] Google's new oauth?Same problem. And I’m using the Top Posts Widget which is reliant on this plugin to display most viewed posts in a prominent area of a large site.
It would be really cool if the
$excluded_field_ids
array could be populated by the admin via a the plugins settings page with checkboxes like:
Select which fields you do not want to be linked.
Available fields:
[ ] Field 1
[x] Field 2
[ ] Field 3
[x] Field 4
[x] Field 5[SUBMIT]
would trigger your new function above with:
$excluded_field_ids = array(2,4,5);
I think a lot of people would find this type of flexibility useful.
Thoughts?
Forum: Plugins
In reply to: [Reusable Text Blocks] Get array of all text block titlesHey, I figured this out.
$textblocks = $wpdb->get_col( “SELECT post_name FROM $wpdb->posts WHERE post_type = ‘text-blocks’ AND post_status = ‘publish'” );
worked for me so now I can do something like this:
// check if user is on a tag page or category page
if (is_tag() || is_category() ){// get tag or category segment from url
$r = $_SERVER[‘REQUEST_URI’];
$r = explode(‘/’, $r);
$r = array_filter($r);
$r = array_merge($r, array()); //reset keys
$URLseg= strtolower($r[1]);// get all text block titles
$textblocks = $wpdb->get_col( “SELECT post_name FROM $wpdb->posts WHERE post_type = ‘text-blocks’ AND post_status = ‘publish'” );// if page url matches an existing text block…
if(in_array($URLseg, $textblocks)){// echo text block!
if(function_exists(‘show_text_block’)) { echo show_text_block($URLseg, true); }
}Forum: Plugins
In reply to: [Content Holders] Image path not renderingHey – I was having the same exact issue so I modified the plugin.
In content-holders.php towards the bottom there is the line:
$instance->content = $currentCode[‘content’];
change it to:
$instance->content = stripslashes($currentCode[‘content’]);
the PHP function stripslashes() seems to do the trick here.
Hope that helps!
Erik
Forum: Themes and Templates
In reply to: [The Bootstrap] Can't toggle sub-menu items on collapsed navWow, thanks for all of that. I will try a fresh install but I have a feeling it will work fine. I’ll take a look at the javascript and see if I can figure it out. If you or anyone else out there can debug in the console go for it, I’m still learning a lot of this stuff. The “#” vs real link doesn’t seem to make a difference.
Thanks for the tips on the other stuff too. It is all really good advice. Just have to figure out how to implement it.
Forum: Plugins
In reply to: [Instapress] [Plugin: Instapress] Link Back to users photo on Instagram?Yeah, the issue is that the plugin uses the
title=
attribute in the thumbnail anchor tag to determine the title of the Fancybox image. When an anchor tag has atitle
most browsers will display the yellow tooltip or helper on hover which in our case includes the ugly html. According to Fancybox’s documentation you should be able to use the thumbnail images alt tag to populate the title but I haven’t gotten this to work.Forum: Plugins
In reply to: [Instapress] [Plugin: Instapress] Link Back to users photo on Instagram?and on instapress/widget.php it is on line #120
Forum: Plugins
In reply to: [Instapress] [Plugin: Instapress] Link Back to users photo on Instagram?On my code editor it is line #340 in the instapress/instagram.php file. I did find an error on my earlier post. You need use the html codes for your special characters in some spots. Try:
$result .= '<a href="'.$obj->images->standard_resolution->url.'" rel="instagram-sc-images" title="<a href="'.$obj->link.'" target="_blank">'.$title.'</a >"">';
Let me know how you make out.
Forum: Plugins
In reply to: [Instapress] [Plugin: Instapress] Link Back to users photo on Instagram?I had some luck linking the photo’s title back to Instagram by changing this line on instagram.php (short code use) and widget.php (side bar widget)
// jQuery Fancybox case 'fancybox': $result .= '<a>images->standard_resolution->url.'" rel="instagram-sc-images" title="'.$title.'">';
to:
// jQuery Fancybox case 'fancybox': // Custom code to link title to Instagram $result .= '<a href="'.$obj->images->standard_resolution->url.'" rel="instagram-sc-images" title="<a href="'.$obj->link.'" target="_blank">'.$title.'</a >"">';
This assumes that all of your Instagram photos will have a title.
Just keep in mind that if the developer issues an update that this change will get overwritten.
Try setting “Show all categories in calendar” to “Only Show Events” in the Event Calendar Settings. This removed post dates from the calendar for me and only left the actual future event dates.