• Hey guys,

    I am having a problem getting the Twitter Tools to display correctly on my blog’s sidebar.

    here is the code I have so far

    <?php if (function_exists('aktt_sidebar_tweets')) : ?>
                    <div class="dbx-box">
                            <h3 class="dbx-handle" title="Latest Tweets">Latest Tweets</h3>
                            <ul class="dbx-content">
                                <?php aktt_sidebar_tweets(); ?>
                            </ul>
                    </div>
                    <?php endif; ?>

    The problem I am having, as you can see, is there are ul li /ul tags inside the aktt_sidebar_tweets function, and the dbx_content. I have tried changing the ul li tags to div tags, that didn’t work. The problem is the ul li tags that are in the aktt_sidebar_tweets function, are pushing the twitter text too far over to the right, so I was wondering if there was a CSS tag, that would prevent the text from pushing too far over to the right side?

    because I tried removing the ul li tags from within the plungin itself, but the plugin breaks ?? so I don’t know how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bubazoo

    (@bubazoo)

    erra, what I mean is, I tried changing

    <ul class=”dbx-content”> </ ul >
    to

    <div class=”dbx-content”> </div>

    that didn’t work, its still pushing the twitter text too far over to the right insde dbx-content, in the sidebar.

    its because there are ul li tags inside the ‘aktt_sidebar_tweets’ function, I know that much.

    I tried removing the ul li tags from the aktt_sidebar_tweets function from within the plugin, and that broke the plugin for some reason, so I thought maybe I could put a CSS code in there to make it not push the text over to the right when it encounters a ul li tags, but I don’t know how to code that in CSS? Does anyone know how to do that?

    Thread Starter bubazoo

    (@bubazoo)

    first I tried changing

    $output = '<div class="aktt_tweets">'."\n"
    		.'	<ul>'."\n";
    	if (count($tweets) > 0) {
    		foreach ($tweets as $tweet) {
    			$output .= '		<li>'.aktt_make_clickable(wp_specialchars($tweet->tw_text)).' <a href="https://twitter.com/'.$aktt->twitter_username.'/statuses/'.$tweet->tw_id.'">'.aktt_relativeTime($tweet->tw_created_at, 3).'</a></li>'."\n";
    		}
    	}
    	else {
    		$output .= '		<li>'.__('No tweets available at the moment.', 'twitter-tools').'</li>'."\n";
    	}
    	$output .= '		<li class="aktt_more_updates"><a href="https://twitter.com/'.$aktt->twitter_username.'">More updates...</a></li>'."\n"
    		.'</ul>';

    to

    $output = "\n";
    	if (count($tweets) > 0) {
    		foreach ($tweets as $tweet) {
    			$output .= aktt_make_clickable(wp_specialchars($tweet->tw_text)).' <a href="https://twitter.com/'.$aktt->twitter_username.'/statuses/'.$tweet->tw_id.'">'.aktt_relativeTime($tweet->tw_created_at, 3).'</a>'."\n";
    		}
    	}
    	else {
    		$output .= __('No tweets available at the moment.', 'twitter-tools'). "\n";
    	}
    	$output .= '		<a href="https://twitter.com/'.$aktt->twitter_username.'">More updates...</a>'."\n";

    to get the div, ul, li tags out of the plugin causing the problem,
    but that ended up breaking the plugin, so I don’t know what else to try?

    and unfortunately I haven’t found another twitter plugin that replaces this yet that will work instead, except for twitt-twoo, which isn’t PHP 4 compatible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twitter Tools 1.0 problems’ is closed to new replies.