Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 170

Forum Replies Created

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • in reply to: Getting Blog Masonry page to show posts of just one category #4331

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    I replaced the old file with the one you provided… and it still is not working. Attached is a screenshot of my Recent Posts, showing category 23 posts still showing up with category 17 posts.

    I then fully deleted the recent-posts.php file from the server… and did a clean upload of your new file just to make sure it wasn’t user error… and the problem persists.

    in reply to: Getting Blog Masonry page to show posts of just one category #4328

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi,

    I’ve made that fix. Still no luck. The Recent Posts widget still shows all categories of posts. Here is the full widget code (of which, I have only changed the line you recommended.) Thx.

    <?php
    /*
    Plugin Name: Recent Posts Widget
    Plugin URI: https://skat.tf/
    Description: A simple widget to display the recent posts.
    Version: 1.00
    Author: Skat
    Author URI: https://skat.tf/
    */

    // The widget class
    class sd_recent_posts_widget extends WP_Widget {

    // Widget Settings
    function sd_recent_posts_widget() {

    $widget_ops = array( ‘classname’ => ‘sd_recent_posts_widget’, ‘description’ => __(‘A widget to display the recent posts.’, ‘sd-framework’) );
    $control_ops = “”;
    $this->WP_Widget( ‘sd_recent_posts_widget’, __(‘Recent Posts’, ‘sd-framework’), $widget_ops, $control_ops );
    }

    // Widget Output
    function widget($args, $instance) {
    extract($args);
    $title = apply_filters(‘widget_title’, $instance[‘title’]);

    // Before the widget
    echo $before_widget;

    // Display the widget title if one was input
    if ( $title )
    echo $before_title . $title . $after_title;

    // Display the Feedburner subscribe form
    ?>

    <div class=”popular-posts”>

      <?php
      $recent_posts = new WP_Query();
      $recent_posts->query(‘cat=17&showposts=’.$instance[‘postcount’].”);
      while ($recent_posts->have_posts()) : $recent_posts->the_post(); ?>
      <li class=”clearfix”>
      <?php if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ) : /* if post has post thumbnail */ ?>
      <div class=”popular-post-thumb”>
      <figure>
      <?php the_post_thumbnail(‘recent-blog’); ?>
      </figure>
      </div>
      <!–image–>
      <?php endif; ?>
      <div class=”popular-posts-content”>
      <h4>” title=”<?php the_title(); ?>”>
      <?php the_title(); ?>

      </h4>
      <p><?php echo substr(get_the_excerpt(), 0, 55); ?></p>
      <span class=”popular-date”> <?php echo get_the_date( get_option(‘date_format’) ); ?> </span> <span class=”popular-comments”>,
      <?php comments_popup_link( ‘0 comments’, ‘1 comment’, ‘% comments’, ‘comments-link’, ‘comments closed’); ?>
      </span> </div>
      <!–details–>

      <?php endwhile; ?>
      <?php wp_reset_query(); ?>

    </div>
    <?php
    // After the widget
    echo $after_widget;
    }
    // Update the widget
    function update( $new_instance, $old_instance ) {
    $instance = $old_instance;
    $instance[‘title’] = strip_tags( $new_instance[‘title’] );
    $instance[‘postcount’] = strip_tags( $new_instance[‘postcount’] );

    return $instance;
    }

    // Widget panel settings
    function form( $instance ) {

    // Default widgets settings
    $defaults = array(
    ‘title’ => ‘Recent Posts’,
    ‘postcount’ => ‘3’
    );
    $instance = wp_parse_args( (array) $instance, $defaults ); ?>

    <!– Widget Title: Text Input –>
    <p>
    <label for=”<?php echo $this->get_field_id( ‘title’ ); ?>”>
    <?php _e(‘Title:’, ‘sd-framework’) ?>
    </label>
    <input class=”widefat” type=”text” id=”<?php echo $this->get_field_id( ‘title’ ); ?>” name=”<?php echo $this->get_field_name( ‘title’ ); ?>” value=”<?php echo $instance[‘title’]; ?>” />
    </p>

    <!– Post Count: Text Input –>
    <p>
    <label for=”<?php echo $this->get_field_id( ‘postcount’ ); ?>”>
    <?php _e(‘Post Count’, ‘sd-framework’) ?>
    </label>
    <input class=”widefat” type=”text” id=”<?php echo $this->get_field_id( ‘postcount’ ); ?>” name=”<?php echo $this->get_field_name( ‘postcount’ ); ?>” value=”<?php echo $instance[‘postcount’]; ?>” />
    </p>
    <?php
    }
    }
    // Register and load the widget
    function sd_recent_posts_widget() {
    register_widget( ‘sd_recent_posts_widget’ );
    }
    add_action( ‘widgets_init’, ‘sd_recent_posts_widget’ );
    ?>

    in reply to: Getting Blog Masonry page to show posts of just one category #4308

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi,

    Sadly, that didn’t do it. Here is what my code looks like:

    <?php
    $recent_posts = new WP_Query();
    $recent_posts->query(‘cat=17&showposts=’.$instance[‘postcount’].”);
    while ($recent_posts->have_posts()) : $recent_posts->the_post(); ?>

    Any suggestions on how to just get the Recent Posts widget to only show posts from category 17? Thanks!

    Brian

    in reply to: Changing the yellow "Donate Now" button #4273

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Good to know that I can’t use the default one. I know ho to create another custom link for the menu nav, but I want it to have the yellow “button” effect. How do I do that?

    Thanks!

    in reply to: Getting Blog Masonry page to show posts of just one category #4255

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    That worked, thanks. Is there a way to get the “Recent Posts” widget to also only show posts from one category? Thanks.

    in reply to: Header and Footer margins, white space #3704

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Thank you – that worked!

    in reply to: Header and Footer margins, white space #3691

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Hi Chris,

    I added the CSS code, but it had no effect on the white space (see attachment.) I also double checked my code and there doesn’t seem to be any space nested below that. Here is the code at the bottom of the HOME page:

    [/sd_full_bg]

    [sd_full_bg bg=”#e3e2e2″]
    [sd_centered]
    [divider margintop=”0″]
    <h2 class=”sd-center sd-size1″>LOCAL CAMPAIGNS</h2>
    [divider]
    [one_fourth][sd_person name=”Smoke-Free Austin” subtitle=”More Detail” photo=”http://smokefreetexas.org/content/wp-content/uploads/2014/08/Austin.jpg&#8221; facebook=”facebook url” twitter=”twitter url”][/one_fourth]

    [one_fourth][sd_person name=”Smoke-Free Austin” subtitle=”More Detail” photo=”http://smokefreetexas.org/content/wp-content/uploads/2014/08/Austin.jpg&#8221; facebook=”facebook url” twitter=”twitter url”][/one_fourth]

    [one_fourth][sd_person name=”Smoke-Free Austin” subtitle=”More Detail” photo=”http://smokefreetexas.org/content/wp-content/uploads/2014/08/Austin.jpg&#8221; facebook=”facebook url” twitter=”twitter url”][/one_fourth]

    [one_fourth_last][sd_person name=”Smoke-Free Austin” subtitle=”More Detail” photo=”http://smokefreetexas.org/content/wp-content/uploads/2014/08/Austin.jpg&#8221; facebook=”facebook url” twitter=”twitter url”][/one_fourth_last]
    [/sd_centered]
    [/sd_full_bg]

    Any other ideas why that white space is there?

    Thanks,

    Brian

    in reply to: Header and Footer margins, white space #3652

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    Thanks – that worked for the slider. Can you send a fix for the same margin issue at the bottom of the page. Screenshot attached. Thx Chris.

    in reply to: Header and Footer margins, white space #3636

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109
    This reply has been marked as private.
    in reply to: Install issue with plugins #3601

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 657

    Warning: range(): Argument #1 ($start) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658

    Warning: range(): Argument #2 ($end) must be a single byte, subsequent bytes are ignored in /home/skattf/public_html/wp-content/plugins/buddypress-first-letter-avatar/buddypress-first-letter-avatar.php on line 658
    getmebrian
    Warning: Attempt to read property "supported_until" on string in /home/skattf/public_html/wp-content/themes/helpdesk/core/libraries/vendors/bbpress/init.php on line 109

    I’ve resolved this. For anyone else with this issue, you have to manually install the plugins, which are located in Charity folder > framework > plugins.

Viewing 10 posts - 16 through 25 (of 25 total)