Is it possible for the slider to appear in a random order? thanks
]]>The BannerSpace slides stopped working in Chrome (I’ve replicated this on a couple of computers using Chrome). The plug in worked fine for the last few years. The first slide loads and doesn’t change. The arrows and the dots along the bottom of the slides do not load.
They are working correctly in Internet Explorer and Safari. They also load on my mobile device web browser (Android). BroadneckPTSO.com
]]>After updating to WP 4.4 I am now getting errors displayed on my website. The slideshow still works, but the errors are showing above it and breaking the layout.( I verified that debug is set to false in wpconfig). Errors disappear if I deactivate this plugin, so can’t think it would be due to anything else. There is one error listed for each of my 7 images in the slideshow:
Warning: Illegal string offset ‘width’ in /home/…/wp-includes/media.php on line 1053
Warning: Illegal string offset ‘width’ in /home/…/wp-includes/media.php on line 1058
Any idea how to fix?
]]>I placed the bannerspace via shortcode in my footer, however it only displays the first post I have posted within the banner upload. Not really sure why. I’m posting new banners with all of the same details as the first. I’m new to coding, so it might just be something I messed up in the code.
Here’s a link to my site:
https://www.ccimreplay.com
Thanks
I had an issue on a site where your plugin broke other plugins. I fixed it by added noconflict() in bannerspace.php
function bannerspace_wp_footers() {
$options = get_option('bs_options');
echo "<script src='//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
<script>$.noConflict();</script>
on another note.. why did you force the code here instead of registering/enqueuing it?
]]>Hi, we have a problem.. we can’t put ‘ (single quote) on the content
see screenshot: https://screencast.com/t/Qiu4Ib21qC
I’m getting the warning below because my dev server error reporting is set to E_ALL, but this sometimes helps with feedback to the developers of the plugins I use.
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method bannerspace_plugin_options::update() should not be called statically in /media/DriveD/sdb1/www/www.website.dev/wp-includes/plugin.php on line 470
Strict Standards: Non-static method bannerspace_plugin_options::BS_getOptions() should not be called statically in /media/DriveD/sdb1/www/www.website.dev/wp-content/plugins/bannerspace/bannerspace.php on line 124
You may need to update the function call from the class.
I.E.
class myClass {
public function helloWorld() {
echo "Hello, World!";
}
}
$example = new myClass();
call_user_func(array($example, 'helloWorld'));
Not sure, I believe the issue may actually occur on line 315
// register functions
add_action('admin_menu', array('bannerspace_plugin_options', 'update'));
You are calling the function directly in the add action without creating the class? But then the add_action should be also declared in the construct method of the class:
Please see here about this:
https://codex.www.ads-software.com/Function_Reference/add_action
public function __construct() {
//add your actions to the constructor!
add_action( 'admin_menu', array( $this, 'update' ) );
}
As I say this is not a problem on as is a warning but you may want to consider fixing it.
thanks
Andi
]]>I believe I have narrowed my slider issue down to my version of wp. Can you help please? It won’t slide.
See ScottFriedman.net for the issue
]]>Hi,
I have placed slideshow on a page with shortcode. The Slideshow has 22 slides. When I see that in front end the bottom dotted navigation comes left aligned. I want to make it center aligned. How can I do that?
Thanks,
Deb
Hi Dean Oakley,
I have created an new functionality that you might like. I needed an user interface to add the link post meta for my users. This is what I came up with. View a screenshot (Dutch!).
The text says:
The following URL makes the full slide clickable.
Enter the URL manually or select a page below. Leave the field empty to disable the link.
Selecting a page will overwrite the manually entered URL when post is updated.
Users can type the URL themselves, or select a page from the drop down.
Instruction:
At the very end of “bannerspace.php” add:
// If in administrator back-end, load the post meta box
if (is_admin()) {
require_once('bm_admin_meta_box.php');
}
Create a new file, named “bm_admin_meta_box.php” and paste the following code:
<?php
/* Define the custom box */
add_action( 'add_meta_boxes', 'bm_bs_add_post_meta_box' );
/* Do something with the data entered */
add_action( 'save_post', 'bm_bs_post_meta_box_save' );
/* Adds a box to the main column on the Post and Page edit screens */
function bm_bs_add_post_meta_box() {
add_meta_box(
'bm_bs_add_post_meta_box_id',
__('Bannerspace full slide hyperlink'),
'bm_bs_post_meta_box_html',
'bannerspace_post'
);
}
/* Prints the box content */
function bm_bs_post_meta_box_html( $post ) {
// Use nonce for verification
wp_nonce_field( plugin_basename( __FILE__ ), 'bm_bs_post_meta_nonce' );
// The actual fields for data entry
// Use get_post_meta to retrieve an existing value from the database and use the value for the form
$value = get_post_meta( $post->ID, 'link', true );
?>
<p>
<label for="bm_bs_post_meta_box_link">
<?php _e('The following URL makes the full slide clickable.<br />Enter the URL manually or select a page below. Leave the field empty to disable the link.'); ?>
</label><br />
<input type="text" id="bm_bs_post_meta_box_link" name="bm_bs_post_meta_box_link" value="<?php echo esc_attr($value) ?>" style="width:100%" />
</p>
<p>
<label for="bm_bs_post_meta_box_page">
<?php _e('Selecting a page will overwrite the manually entered URL when post is updated.', 'bannerspace'); ?>
</label><br />
<?php
// Prepare the arguments
$args = array (
'name' => 'bm_bs_post_meta_box_page',
'show_option_none' => __('Select a page', 'bannerspace'),
'option_none_value' => '0',
);
// Get the pages from the content site
wp_dropdown_pages( $args );
?>
</p>
<?php
}
/* When the post is saved, saves our custom data */
function bm_bs_post_meta_box_save( $post_id ) {
// First we need to check if the current user is authorised to do this action.
if ( 'bannerspace_post' != $_REQUEST['post_type'] ) {
// Only edit post_type "bannerspace_post"
return;
} else {
if ( ! current_user_can( 'edit_post', $post_id ) )
return;
}
// Secondly we need to check if the user intended to change this value.
if ( ! isset( $_POST['bm_bs_post_meta_nonce'] ) || ! wp_verify_nonce( $_POST['bm_bs_post_meta_nonce'], plugin_basename( __FILE__ ) ) )
return;
// Thirdly we can save the value to the database
//if saving in a custom table, get post_ID
$post_ID = $_POST['post_ID'];
//sanitize user input
$post_meta_page_id = (int)$_POST['bm_bs_post_meta_box_page'];
if ($post_meta_page_id > 0) {
$post_meta_link = get_permalink( $post_meta_page_id );
// Replace to real domain, if needed
// Used with WP Multi-site and WordPress MU Domain Mapping plugin.
if (function_exists('domain_mapping_post_content')) {
$post_meta_link = domain_mapping_post_content($post_meta_link);
}
} else {
$post_meta_link = sanitize_text_field( $_POST['bm_bs_post_meta_box_link'] );
}
// Update post meta
add_post_meta($post_ID, 'link', $post_meta_link, true) or
update_post_meta($post_ID, 'link', $post_meta_link);
}
]]>
My banners appear fine on the homepage of my site, but they do not auto play. Users have to manually click through to scroll through the banners. I’ve selected the “Auto-Play” options several times without any luck. Help.
website: https://www.grnpaper.com
]]>I have tried the banner on a few sites and the banners fit and work perfectly until a url is added for click through – once this has is configured it then moves the banner down and does not fit as it should.
I have set up an example here : https://brightskiessolutions.com/?page_id=430
]]>