Support » Plugin: Keyring Social Importers » Customising how Tweets display in posts other queries

  • Resolved rjt1985

    (@rjt1985)


    Hi Beau,

    Thanks for fixing the issues I was having. All works great now.

    I have some additional questions of how to edit the code to change the appearance of the posts that are created by Tweets. I would like to:

    – display the full tweet in the title of the post as well.
    – after the main content I’d like to display a “Follow Me On Twitter” link.
    – I’d like to possibly display the Tweets in Standard post format rather than Aside.
    – is there a way to actually pull images into the post, when a tweet has an image associated with it?

    Finally, I’m looking to do very similar things with Facebook (pull page updates in as posts), Pinterest (pull new pins in as posts), and YouTube (pull new videos in as posts). Is this all possible, and do you have any tips on how to achieve this – preferably a simple way to do it… I don’t have the greatest knowledge of php and coding?

    Many thanks,

    R

    http://wordpress.org/extend/plugins/keyring-social-importers/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Beau Lebens

    (@beaulebens)

    For most of those things, that’s going to be up to your theme as to how to display things, not really the plugins (although they’re pulling in the content).

    You might want to just look at https://dev.twitter.com/docs/embedded-tweets which shows how you can use a specific format (you’d have to do all of this in your theme) to render tweets, which will also load images etc, as if it was on twitter.com

    I haven’t worked with importing things from Facebook, because their privacy framework is pretty complex. I don’t really plan to do that either, although there is a Facebook Service definition within Keyring, so if someone else wanted to write an importer there, that’d be up to them.

    If you want to change the format of imported tweets then currently the only way to do that would be to modify the file in the Keyring Social Importers plugin that handles tweets. The next time the plugin is updated though, that change is going to get overwritten. You’d change the file importers/keyring-importer-twitter.php, and remove line 255 entirely.

    I might look at adding some filters so that this could be done without modifying the main plugin files.

    Thread Starter rjt1985

    (@rjt1985)

    Yeah that would be great, if you did add some filters. If you look at a plugin called Instagrate, they allow you to choose what you want your posts to look like, where you want the instagram image to appear, what you want the title to say etc. Something like that would be great for your plugin.

    Thread Starter rjt1985

    (@rjt1985)

    ps. are you planning on doing anything with Pinterest or YouTube?

    Plugin Author Beau Lebens

    (@beaulebens)

    I probably won’t be adding a full UI to select these things, but having a template file to allow you to format imported content is something I’ve been looking at.

    Pinterest doesn’t have an API, so there’s no officially-supported way of importing content from them. I hadn’t looked at Youtube because I don’t really publish anything there — if someone else wanted to write one though, the framework is all there.

    Thread Starter rjt1985

    (@rjt1985)

    Do you know anyone who might be interested in putting together something for YouTube?

    It would be really useful to me (so I don’t have to update my website everytime I post a new video), but I’m not a coder at all. I can understand very basic php and html, but actually coding something is beyond me at the minute.

    Plugin Author Beau Lebens

    (@beaulebens)

    Not specifically I’m afraid. Someone who’s reasonably familiar with WordPress and web services/APIs should be able to follow all the examples/existing code in Keyring+the importers though. Best of luck, and glad it’s working with the latest updates!

    Thread Starter rjt1985

    (@rjt1985)

    Yeah, I’m figuring it out thanks. Really appreciate the help.

    On a final, seperate note, do you know what I need to look at in the code to set a featured image for the Twitter posts (the same featured image for each post)?

    Many thanks,

    R

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Customising how Tweets display in posts other queries’ is closed to new replies.