Brian KD
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Simple Galleries] Simple Galleries doesn't show up in menu-barIt’s because of this line of code in the options-framework.php file
$wpsg_of_page = add_menu_page(WPSG_OPTIONS_FRAMEWORK_NAME, WPSG_OPTIONS_FRAMEWORK_NAME, 'edit_plugins', WPSG_OPTIONS_FRAMEWORK_TAG, 'wpsg_optionsframework_page', WPSG_OPTIONS_FRAMEWORK_URL . 'images/image.png');
Changing the ‘edit_plugins’ to ‘manage_options’ has the same effects in that only users at the administrative level can see the menu on the dashboard. If you change it to ‘manage_options’, then you can still have
define('DISALLOW_FILE_EDIT', true);
on at the same time. However, it’s not generally a good idea to edit plugin code so lets just send a note to the author and hope they change it in the next release.
Forum: Plugins
In reply to: [WP Simple Galleries] how to shoe this in custom post type for lisitngA little late on the answer but I needed to know too, so this is how you do it (version 1.34):
There is a setting to specify which post types WP Simple Galleries appears on.
Dashboard -> WP Simple Gallery
Make sure you’re on the “Basic Settings” tab. About 3/4 of the way down you will see a “Post Types” section. If your post type is registered correctly then it will appear there. Checking the checkbox enables it!
Warm regards,
-BForum: Plugins
In reply to: [Subscribe Me] Only Adds One ButtonHi Mike,
I like this plugin. In scripts.js I had to change line 2:
jQuery("div.subscribe_me, li.subscribe_me").hover(function() {
to
jQuery("section.subscribe_me, div.subscribe_me, li.subscribe_me").hover(function() {
Because my theme uses a lot of HTML5 markup. Also the box was not expanding until I changed the “width” attribute of .subscribe_me_extra and gave it a z-index of 10:
.subscribe_me_extra { width: auto; z-index: 10; }
Maybe a max-width would have been better… oh well it’s working ??
Hopefully that helps someone else.
Warm regards,
-BrianResolved.
Nevermind. It has since ceased to work without any version of All in One installed. It looks to be a theme issue. Regards,
-Brian
Forum: Plugins
In reply to: [Yahoo! Weather Forecasts] Yahoo! Weather change Caching TimeThank you Zourbuth! This is a great plugin – and that feature will make it my favorite weather plugin!! Kind regards,
-Brian
Forum: Fixing WordPress
In reply to: **Nivo Slider Plugin Help***I did find a fix for this. I went to the nivo website and downloaded the free “jQuery Plugin” files found here:
https://nivo.dev7studios.com/pricing/
I then uploaded these files to replace what was in my plugin:
jquery.nivo.slider.js
jquery.nivo.slider.pack.js
nivo-slider.cssI read through their terms and don’t believe I am in violation either (if so I’d just buy it if I had to). Good luck!
-Brian
Forum: Fixing WordPress
In reply to: **Nivo Slider Plugin Help***How did you fix this? Thanks,
-Brian
Forum: Plugins
In reply to: [Easy Nivo Slider] Use Image Caption Instead of Image TitleResolved.
Forum: Plugins
In reply to: [AVH Extended Categories Widgets] Missing argument 2 for wpdb::prepare()Thanks! ?? Worked for me too. Bests,
-BrianThanks Chad,
I use the functions plugin exactly for the ease of using on multiple sites, but with a little effort a Child Theme would probably be just as easy. I’ll have to look into the Child Themes. Regards,
-Brian
Theme’s function.php, or you could do this:
https://justintadlock.com/archives/2011/02/02/creating-a-custom-functions-plugin-for-end-users
which is better so it won’t get updated over by Theme/Plugin updates.
Regards,
-BrianThanks for posting. I’m guessing this will save me a bundle of time ??
I wrapped it in an if statement looking for the WPML constant to be defined. If it’s undefined (plugin is turned off, damaged, or deleted) then the original code would kick in:
if (defined(ICL_LANGUAGE_CODE)) {
wp_enqueue_script( 'simplemap-master-js', site_url() . '/'.ICL_LANGUAGE_CODE. '/?simplemap-master-js', array( 'jquery' ) );
} else {
wp_enqueue_script( 'simplemap-master-js', site_url() . '?simplemap-master-js=1&smpid=' . $post->ID, array( 'jquery' ) );
}Cheers,
Brian Peterson
kismetwebdesign.comWe fixed this issue by consulting the youtube api:
https://developers.google.com/youtube/player_parameters#rel
And then editing line 224 of the youtube-channel-gallery.php file. Original Code:
<iframe id="ytcplayer<?php echo $plugincount; ?>" class="ytcplayer" type="text/html" width="<?php echo $ytchag_video_width; ?>" height="<?php echo $ytchag_video_heigh; ?>" src="https://www.youtube.com/embed/<?php echo $youtubeid; ?>?&autoplay=0&theme=<?php echo $ytchag_theme; ?>&enablejsapi=1&origin=<?php echo site_url(); ?>" frameborder="0"></iframe>
We added the &rel=0 parameter between these parameters: &autoplay=0&theme=
For the final code of:
<iframe id="ytcplayer<?php echo $plugincount; ?>" class="ytcplayer" type="text/html" width="<?php echo $ytchag_video_width; ?>" height="<?php echo $ytchag_video_heigh; ?>" src="https://www.youtube.com/embed/<?php echo $youtubeid; ?>?&autoplay=0&rel=0&theme=<?php echo $ytchag_theme; ?>&enablejsapi=1&origin=<?php echo site_url(); ?>" frameborder="0"></iframe>
For a future update to the plugin you may consider creating a shortcode_atts to hold the youtube player’s parameters and then write up some directions/direct people to the link I posted above/on your admin page make a bunch of metadata boxes to grab the info. Warm regards,
-Brian Peterson
KD