Reply To: Footer is being cut.

Homepage Community Forums Optimal Theme Support Footer is being cut. Reply To: Footer is being cut.

#3295
gregorypessa
Customer

    I’ve narrowed it down to the twitter plugin. Which I really like :/. I can’t seem to locate the error. Is there something specific I should be looking for besides closed tags?

    /*
    Plugin Name: Ultimate Twitter Profile Widget
    Plugin URI: http://www.myplugincollections.wordpress.com/
    Description: Ultimate Twitter Profile Widget plugin will show your tweets under Sidebar Area (Widget). Tweets will REFRESH AUTOMATICALLY. Also it has reply option inside widget. Go to admin panel option

    (Settings -> Ultimate Twitter Profile Widget)

    to set different color combination.
    Version: 1.0
    Author: Jenn
    Author URI: http://wordpress.org/support/profile/dyiosah
    */
    /*
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */
    // Some default options
    add_option(‘utwp_widget_title’, ‘Ultimate Twitter Profile Widget’);
    add_option(‘utwp_username’, ‘wordpress’);
    add_option(‘utwp_height’, ‘290’);
    add_option(‘utwp_width’, ‘300’);
    add_option(‘utwp_scrollbar’, ‘-1’);
    add_option(‘utwp_shell_bg’, ‘424242’);
    add_option(‘utwp_shell_text’, ‘FFFFFF’);
    add_option(‘utwp_tweet_bg’, ‘000000’);
    add_option(‘utwp_tweet_text’, ‘0D0D0D’);
    add_option(‘utwp_links’, ‘0E24ED’);
    add_option(‘utwp_behavior’, ‘-1’);
    add_option(‘utwp_credits’, ‘-1’);

    function filter_utwp_profile($content)
    {
    if (strpos($content, ““) !== FALSE)
    {
    $content = preg_replace(‘/

    \s*\s*<\/p>/i’, ““, $content);
    $content = str_replace(‘‘, utwp_profile(), $content);
    }
    return $content;
    }
    function filter_utwp_search($content)
    {
    if (strpos($content, ““) !== FALSE)
    {
    $content = preg_replace(‘/

    \s*\s*<\/p>/i’, ““, $content);
    $content = str_replace(‘‘, utwp_search(), $content);
    }
    return $content;
    }

    function utwp_profile()
    {
    $account = get_option(‘utwp_username’);
    $height = get_option(‘utwp_height’);
    $width = get_option(‘utwp_width’);
    $show_sponser = get_option(‘utwp_show_sponser_link’);
    if ($show_sponser == 1)
    {
    $sponserlink_profile = “”;
    }
    else
    {
    }
    if (get_option(‘utwp_scrollbar’) == 1){
    $scrollbar = “true”;
    }else
    {
    $scrollbar = “false”;
    }
    if (get_option(‘utwp_credits’) == 1){
    $credits = “true”;
    }else
    {
    $credits = “false”;
    }
    if (get_option(‘utwp_behavior’) == 1){
    $loop1 = “false”;
    $behavior1 = “all”;
    }else
    {
    $loop1 = “true”;
    $behavior1 = “default”;
    }
    $shell_bg = get_option(‘utwp_shell_bg’);
    $shell_text = get_option(‘utwp_shell_text’);
    $tweet_bg = get_option(‘utwp_tweet_bg’);
    $tweet_text = get_option(‘utwp_tweet_text’);
    $links = get_option(‘utwp_links’);

    $T1 = “new TWTR.Widget({ version: 2, type: ‘profile’, rpp: 30, interval: 5000, width: “;
    $v1 = $width;
    $T2 = “, height: “;
    $v2 = $height;
    $T3 = “, theme: { shell: { background: ‘#”;
    $v3 = $shell_bg;
    $T4 = “‘, color: ‘#”;
    $v4 = $shell_text;
    $T5 = “‘ }, tweets: { background: ‘#”;
    $v5 = $tweet_bg;
    $T6 = “‘, color: ‘#”;
    $v6 = $tweet_text;
    $T7 = “‘, links: ‘#”;
    $v7 = $links;
    $T8 = “‘ } }, features: { scrollbar: “;
    $v8 = $scrollbar;
    $T0 = “‘ } }, features: { credits: “;
    $v0 = $credits;
    $T9 = “, loop: “;
    $v9 = $loop1;
    $T10 = “, live: true, hashtags: true, timestamp: true, avatars: false, behavior: ‘”;
    $v10 = $behavior1;
    $T11 = “‘ }}).render().setUser(‘”;
    $v11 = $account;
    $T12 = “‘).start();”;

    $output = ‘// ‘;

    $output_profile = $output;
    return $output_profile;
    }
    function filter_utwp_tweet_button_show($related_content)
    {
    $tweet_btn_allow = get_option(‘utwp_allow_tweet_button’);
    $tweet_btn_display_page = get_option(‘utwp_tweet_button_display_page’);
    $tweet_btn_display_home = get_option(‘utwp_tweet_button_display_home’);
    $tweet_btn_display_rss = get_option(‘utwp_tweet_button_display_rss’);
    $tweet_btn_place = get_option(‘utwp_tweet_button_place’);
    $tweet_btn_style = get_option(‘utwp_tweet_button_style’);
    $tweet_btn_float = get_option(‘utwp_tweet_button_container’);
    $tweet_btn_twt_username = get_option(‘utwp_tweet_button_twitter_username’);
    $tweet_btn_reco_username = get_option(‘utwp_tweet_button_reco_username’);
    $tweet_btn_reco_desc = get_option(‘utwp_tweet_button_reco_desc’);
    global $post;
    $p = $post;
    $title1 = $p->post_title ;
    $link1 = get_permalink($p);
    $blog_url = get_bloginfo(‘wpurl’);
    $blog_title = get_bloginfo(‘wp_title’);
    $final_url2 = ‘Tweet‘; $final_url2 = ‘

    ‘ . $final_url2 . ‘

    ‘; if($tweet_btn_allow == 1) { if (is_page() && $tweet_btn_display_page == 1) { if ($tweet_btn_place == “before”) { $related_content = $final_url2 . $related_content; } if ($tweet_btn_place == “after”) { $related_content = $related_content . $final_url2; } if ($tweet_btn_place == “manual”) { utwp_add_option_page(); } } if (is_single() || is_search() || is_archive()) { if ($tweet_btn_place == “before”) { $related_content = $final_url2 . $related_content; } if ($tweet_btn_place == “after”) { $related_content = $related_content . $final_url2; } if ($tweet_btn_place == “manual”) { utwp_add_option_page(); } } if (is_home() && $tweet_btn_display_home == 1) { if ($tweet_btn_place == “before”) { $related_content = $final_url2 . $related_content; } if ($tweet_btn_place == “after”) { $related_content = $related_content . $final_url2; } if ($tweet_btn_place == “manual”) { utwp_add_option_page(); } } if (is_feed() && $tweet_btn_display_rss == 1) { if ($tweet_btn_place == “before”) { $related_content = $final_url2 . $related_content; } if ($tweet_btn_place == “after”) { $related_content = $related_content . $final_url2; } if ($tweet_btn_place == “manual”) { utwp_add_option_page(); } } } $post = $p; return $related_content; } function twitter_goodies_tweet_button() { $tweet_btn_allow = get_option(‘utwp_allow_tweet_button’); $tweet_btn_display_page = get_option(‘utwp_tweet_button_display_page’); $tweet_btn_display_home = get_option(‘utwp_tweet_button_display_home’); $tweet_btn_display_rss = get_option(‘utwp_tweet_button_display_rss’); $tweet_btn_place = get_option(‘utwp_tweet_button_place’); $tweet_btn_style = get_option(‘utwp_tweet_button_style’); $tweet_btn_float = get_option(‘utwp_tweet_button_container’); $tweet_btn_twt_username = get_option(‘utwp_tweet_button_twitter_username’); $tweet_btn_reco_username = get_option(‘utwp_tweet_button_reco_username’); $tweet_btn_reco_desc = get_option(‘utwp_tweet_button_reco_desc’); $final_url2 = ‘Tweet‘;

    echo $final_url2;
    }
    function utwp_search()
    {
    $search_query = get_option(‘utwp_widget_search_query’);
    $search_title = get_option(‘utwp_widget_search_title’);
    $search_caption = get_option(‘utwp_widget_search_caption’);
    $account = get_option(‘utwp_username’);
    $search_sidebar_title = get_option(‘utwp_search_widget_sidebar_title’);
    $search_height = get_option(‘utwp_search_height’);
    $search_width = get_option(‘utwp_search_width’);
    $show_sponser = get_option(‘utwp_show_sponser_link’);
    if ($show_sponser == 1)
    {
    $sponserlink_search = “”;
    }
    else
    {
    }
    if (get_option(‘utwp_search_scrollbar’) == 1){
    $search_scrollbar = “true”;
    }
    else
    {
    $search_scrollbar = “false”;
    }
    $search_shell_bg = get_option(‘utwp_search_shell_bg’);
    $search_shell_text = get_option(‘utwp_search_shell_text’);
    $search_tweet_bg = get_option(‘utwp_search_tweet_bg’);
    $search_tweet_text = get_option(‘utwp_search_tweet_text’);
    $search_links = get_option(‘utwp_search_links’);
    $T11 = “new TWTR.Widget({ version: 2, type: ‘search’, search: ‘”;

    $S1 = $search_query;
    $T12 = “‘, interval:6000, title: ‘”;
    $S2 = $search_title;
    $T13 = “‘, subject: ‘”;
    $S3 = $search_caption;
    $T14 = “‘, width: “;
    $v1 = $search_width;
    $T2 = “, height: “;
    $v2 = $search_height;
    $T3 = “, theme: { shell: { background: ‘#”;
    $v3 = $search_shell_bg;
    $T4 = “‘, color: ‘#”;
    $v4 = $search_shell_text;
    $T5 = “‘ }, tweets: { background: ‘#”;
    $v5 = $search_tweet_bg;
    $T6 = “‘, color: ‘#”;
    $v6 = $search_tweet_text;
    $T7 = “‘, links: ‘#”;
    $v7 = $search_links;
    $T8 = “‘ } }, features: { scrollbar: “;
    $v8 = $search_scrollbar;
    $T9 = “, loop: “;
    $v9 = “true”;
    $T10 = “, live: true, hashtags: true, timestamp: true, avatars: true, behavior: ‘default’ }}).render().start();”;

    $output1 = ‘// ‘;

    $output_search = $output1 . $sponserlink_search;
    return $output_search;
    }
    // Displays WordPress Blog Ultimate Twitter Profile Widget Options menu
    function utwp_add_option_page() {
    if (function_exists(‘add_options_page’)) {
    add_options_page(‘Ultimate Twitter Profile Widget’, ‘Ultimate Twitter Profile Widget’, 8, __FILE__, ‘utwp_options_page’);
    }
    }
    function utwp_options_page() {

    $utwp_tweet_button_place = $_POST[‘utwp_tweet_button_place’];
    $utwp_tweet_button_style = $_POST[‘utwp_tweet_button_style’];
    if (isset($_POST[‘info_update’]))
    {
    update_option(‘utwp_widget_title’, stripslashes_deep((string)$_POST[“utwp_widget_title”]));
    update_option(‘utwp_username’, (string)$_POST[“utwp_username”]);
    update_option(‘utwp_height’, (string)$_POST[‘utwp_height’]);
    update_option(‘utwp_width’, (string)$_POST[‘utwp_width’]);
    update_option(‘utwp_scrollbar’, ($_POST[‘utwp_scrollbar’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_credits’, ($_POST[‘utwp_credits’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_behavior’, ($_POST[‘utwp_behavior’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_shell_bg’, (string)$_POST[‘utwp_shell_bg’]);
    update_option(‘utwp_shell_text’, (string)$_POST[‘utwp_shell_text’]);
    update_option(‘utwp_tweet_bg’, (string)$_POST[‘utwp_tweet_bg’]);
    update_option(‘utwp_tweet_text’, (string)$_POST[‘utwp_tweet_text’]);
    update_option(‘utwp_links’, (string)$_POST[‘utwp_links’]);
    update_option(‘utwp_widget_search_query’, stripslashes_deep((string)$_POST[‘utwp_widget_search_query’]));
    update_option(‘utwp_widget_search_title’, stripslashes_deep((string)$_POST[‘utwp_widget_search_title’]));
    update_option(‘utwp_widget_search_caption’, stripslashes_deep((string)$_POST[‘utwp_widget_search_caption’]));
    update_option(‘utwp_search_height’, (string)$_POST[‘utwp_search_height’]);
    update_option(‘utwp_search_width’, (string)$_POST[‘utwp_search_width’]);
    update_option(‘utwp_search_scrollbar’, ($_POST[‘utwp_search_scrollbar’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_search_shell_bg’, (string)$_POST[‘utwp_search_shell_bg’]);
    update_option(‘utwp_search_shell_text’, (string)$_POST[‘utwp_search_shell_text’]);
    update_option(‘utwp_search_tweet_bg’, (string)$_POST[‘utwp_search_tweet_bg’]);
    update_option(‘utwp_search_tweet_text’, (string)$_POST[‘utwp_search_tweet_text’]);
    update_option(‘utwp_search_links’, (string)$_POST[‘utwp_search_links’]);
    update_option(‘utwp_search_widget_sidebar_title’, (string)$_POST[‘utwp_search_widget_sidebar_title’]);
    update_option(‘utwp_show_sponser_link’, ($_POST[‘utwp_show_sponser_link’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_allow_tweet_button’, ($_POST[‘utwp_allow_tweet_button’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_tweet_button_display_page’, ($_POST[‘utwp_tweet_button_display_page’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_tweet_button_display_home’, ($_POST[‘utwp_tweet_button_display_home’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_tweet_button_display_rss’, ($_POST[‘utwp_tweet_button_display_rss’]==’1′) ? ‘1’:’-1′ );
    update_option(‘utwp_tweet_button_container’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_container’]));
    update_option(‘utwp_tweet_button_twitter_username’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_twitter_username’]));
    update_option(‘utwp_tweet_button_reco_username’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_reco_username’]));
    update_option(‘utwp_tweet_button_reco_desc’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_reco_desc’]));
    update_option(‘utwp_tweet_button_place’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_place’]));
    update_option(‘utwp_tweet_button_style’, stripslashes_deep((string)$_POST[‘utwp_tweet_button_style’]));
    echo ‘

    Settings saved.

    ‘;
    echo ‘

    ‘;
    }
    else
    {
    $utwp_tweet_button_place = get_option(‘utwp_tweet_button_place’);
    $utwp_tweet_button_style = get_option(‘utwp_tweet_button_style’);
    }
    $new_icon = ‘ ‘;
    $tweet_button = ‘ ‘;
    ?>
    “>

    Ultimate Twitter Profile Widget
     

    Ultimate Twitter Profile Widget Options

    Widget Title
    <?php echo get_option(‘utwp_widget_title’); ?>

    Twitter Username
    (for Ultimate Twitter Profile Widget )

    Widget Height

    Widget Width

    Include Scrollbar?
    value=”1″ /> Check to include Scrollbar

    Include Credits?
    value=”1″ /> Check to include Credits

    Load all Tweets? / Time Interval?
    value=”1″ /> Check to Load all Tweets (total 30)

    Widget Shell Background Color

    Widget Shell Text Color

    Widget Tweet Background Color

    Widget Tweet Text Color

    Link Color

    <!–?php

    }
    function show_utwp_profile_widget($args)
    {
    extract($args);
    $utwp_widget_title1 = get_option(‘utwp_widget_title’);
    echo $before_widget;
    echo $before_title . $utwp_widget_title1 . $after_title;
    echo utwp_profile();
    $get_opt = get_option(“utwp_credits”);
    if($get_opt[‘utwp_credits’]==’1′) {
    echo ‘
    Presented by LinkeDrive
    ‘;
    } else
    echo ‘
    UTPW Presented by pcb assembly
    ‘;
    {
    }
    }
    echo $after_widget;
    function show_utwp_search_widget($args)
    {
    extract($args);
    $utwp_widget_title1 = get_option(‘utwp_search_widget_sidebar_title’);
    echo $before_widget;
    echo $before_title . $utwp_widget_title1 . $after_title;
    echo utwp_search();
    echo $after_widget;
    }
    function utwp_profile_widget_control()
    {
    ?>

    <? _e(“Please go to Settings -> Ultimate Twitter Profile Widget for options.

    Available options:
    1) Widget Title
    2) Twitter Username
    3) Widget Height
    4) Widget Width
    5) 5 different Shell and Tweet background and text color options”); ?>

     

    <? _e(“Please go to Settings -> Ultimate Twitter Profile Widget for options.

    Available options:
    1) Search Query
    2) Search Title
    3) Search Caption”); ?>

    ‘widget_utwp_profile’, ‘description’ => __( “Display Ultimate Twitter Profile Widget Profile Widget”) );
    wp_register_sidebar_widget(‘utwp_profile_widgets’, __(‘Twiter – Profile Widget’), ‘show_utwp_profile_widget’, $widget_options);
    wp_register_widget_control(‘utwp_profile_widgets’, __(‘Twiter – Profile Widget’), ‘utwp_profile_widget_control’ );
    }
    add_filter(‘the_content’, ‘filter_utwp_profile’);
    add_filter(‘the_content’, ‘filter_utwp_search’);
    add_filter(‘the_content’, ‘filter_utwp_tweet_button_show’);
    add_action(‘init’, ‘widget_utwp_profile_init’);
    // Insert the utwp_add_option_page in the ‘admin_menu’
    add_action(‘admin_menu’, ‘utwp_add_option_page’);
    ?>”>