Forum Replies Created

Viewing 8 replies - 31 through 38 (of 38 total)
  • Thread Starter rjt1985

    (@rjt1985)

    Any ideas Beau?

    Thread Starter rjt1985

    (@rjt1985)

    I’ll give it a go later. If you could be more specific on how exactly to do these things it would be very helpful (I don’t really know php).

    Thread Starter rjt1985

    (@rjt1985)

    I shouldn’t really change that because it is all linked into the theme I’m using. It could open a massive can of worms!

    Is there nothing I can add/alter with your code?

    Thread Starter rjt1985

    (@rjt1985)

    ps. Yeah I know I didn’t need to create an access token, I just did this time in case that was the problem. I still entered the correct details into Keyring.

    Thread Starter rjt1985

    (@rjt1985)

    Yeah, it still says I need to connect to Twitter, but when I try to connect (on Import –> Twitter) that’s where it’s just going to that error page above (I.e. “there was a problem connecting to Twitter…”)

    So I’ve input all of the API details (as you specified above) into Tools –> Keyring –> Twitter, clicked Save, it says it has saved but if you go back to Tools –> Keyring it still says I haven’t made any connections (even though I just have).

    I then go to Import –> Twitter, click connect to Twiiter and it comes up with a white screen with the “There was a problem connecting to twitter…” message. It never actually takes me through to Twitter to make a connection.

    Sorry for the lack of screenshots. I’m on my phone. However, I’ve described it exactly how it is above.

    Thread Starter rjt1985

    (@rjt1985)

    Thanks for the reply.

    So I’ve gone to dev.twitter.com, logged in, created a new app. Then ive created an access token aswell just in case.

    Then I logged into wordpress, went to Tools, Keyring, Twitter and entered the correct codes as you specify above, clicked save, and it says “your credentials are saved”. Then I go back to the manage connections page on Keyring and it still says that I have no connections!

    And of course, because of this, the Twitter importer comes up with the error in the original post.

    I don’t THINK I’m doing anything wrong. Is this a bug, or maybe a problem with the new twitter API rules?

    Thread Starter rjt1985

    (@rjt1985)

    Hi there,

    Thanks for the swift reply. I had actually deactivated the plugin temporarily while I searched for a solution.

    If you look now, you will see the problem I was referring to in the OP.

    The code that displays the thumbnail on the homepage sidebar is:

    // Get posts
    		$posts = get_posts($args);
    
    		// Check if we have posts
    		if ( !$posts ) return '';
    
    		// Start posts list
    		$output = sprintf('<ul id="tab-recent-%s" class="list-recent wpb-tab">', $wid);
    
    		// Loop through posts
    		foreach ( $posts as $post ) {
    			// Set post id, date, format, link, thumbnail, title
    			$id = $post->ID;
    			$date = get_the_time(get_option('date_format'), $id);
    			$format = 'format-'.get_post_format($id);
    			$link = get_permalink($id);
    			$title = get_the_title($id);
    			$thumb = get_the_post_thumbnail($id, 'size-thumbnail-tabs');
    
    			// Set placeholder thumbnail, if none set
    			if ( !$thumb && $opts['recent-thumb'] ) {
    				$thumb = sprintf('<img src="%s/img/widgets/tabs-thumb.jpg">',
    					get_template_directory_uri());
    			}
    
    			// Set classes
    			$classes = $format;
    			if ( $thumb && $opts['recent-thumb'] ) $classes .= ' wpb-thumb-enabled';
    
    			// Build post list item
    			$output .= sprintf('<li class="%s group">', $classes);
    			$output .= sprintf('<a title="%1$s" href="%2$s">', $title, $link);
    
    			// Check for post thumbnail
    			if ( $thumb && $opts['recent-thumb'] ) {
    				$output .= '<span class="wpb-thumb">';
    				$output .= $thumb;
    				if ( in_array($format, array('format-audio','format-video')) )
    					$output .= '<i class="icon-thumb"></i>';
    				$output .= '</span>';
    			}
    
    			$output .= '<span class="wpb-text">';
    			$output .= sprintf('<i class="title">%s</i>', $title);
    			$output .= sprintf('<i class="meta">%s</i>', $date);
    			$output .= '</span></a></li>';
    		}
    
    		// End posts list

    Also, for some reason, where your plugin is enabled, I’m getting the default image with some completely unrelated text over it displaying on static pages at the top… see here: https://dev.rjthompsonmusic.com/tour/

    Any idea why that would be too?

    Many thanks for the quick reply.

    R

    Thread Starter rjt1985

    (@rjt1985)

    Hi Beau,

    I haven’t tried to debug yet, but I had already tried to set up my API keys for Twitter, but some reason no matter how many times I input them (on the Add New Connection screen), I click save, go back to Managed Connections and it says “You haven’t added any connections yet”.

    Any idea why this would be?

    I’ve tried various browsers just in case that was an issue, but it still isn’t working.

    Thanks for the swift reply.

    If I did the DEBUG thing, would you mind taking a look at the results because I have literally no idea what I’m looking for.

    Many thanks,

    R

Viewing 8 replies - 31 through 38 (of 38 total)