1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Tweet Individual Posts.

Discussion in 'Add-on Requests [Archive]' started by Peggy, Apr 5, 2011.

  1. Peggy

    Peggy Well-Known Member

    Has anyone done this yet (searched and can't find one).

    Currently we can tweet threads only. I have asked and Kier said that it is not in his plans to add tweet functionality to individual posts.

    It is important to me, and my site, to be able to tweet individual posts. So if a coder out there is willing to code this, I would be more than happy to make a donation, even tho you'd be free to release it here for everyone.
     
  2. Onimua

    Onimua Well-Known Member

    Do you want something per-post? At the moment I created this, which took a couple of minutes and it's a simple template change, that's all, and it appears below the post.

    Screen shot 2011-04-04 at 8.58.23 PM.png

    Is there somewhere particular you want it? Maybe below the user info on the left?
     
  3. Peggy

    Peggy Well-Known Member

    Yes per post, so that each individual post can be tweeted.
     
  4. Onimua

    Onimua Well-Known Member

    Alright, so where do you want it placed?
     
  5. Peggy

    Peggy Well-Known Member

    ummm where do you think would be best? To the right of Report link?
     
  6. Onimua

    Onimua Well-Known Member

    Bottom right:
    bottom_right.png
    Next to the report link: report_link.png
    Under user box:
    under_avatar.png

    Personally I think under the user box looks best, where it's out of the way of the content but is visibly still part of the post.
     
    Trombones13 likes this.
  7. Peggy

    Peggy Well-Known Member

    Oh yeah, I like that. :)

    Now I'm wondering, would I be able to change that tweet button?
     
  8. Onimua

    Onimua Well-Known Member

    The look of it? Don't think so as that pulls out of Twitter's API.
     
  9. Peggy

    Peggy Well-Known Member

    Yeah was thinking to replace it with a custom button. I use this one on my blog.
    twitthis_grey_72x22.gif

    That's ok. I'm liking being able to do this at all. :)
     
  10. Onimua

    Onimua Well-Known Member

    I'll put up a mini tutorial shortly in the appropriate forum. :)
     
    Peggy likes this.
  11. OperaManiac

    OperaManiac Well-Known Member

    Twitter has extensive documentation related to the tweet button. They have made it very easy to add the Tweet Button functionality to anything. You have simply have a Tweet link providing the same functionality using the documentation provided here: http://dev.twitter.com/pages/tweet_button
     
  12. Peggy

    Peggy Well-Known Member

    OM, I'm familiar with that information, thanks.

    However, it doesn't tell me how to add it to the XF functionality in order to tweet individual posts. I would never have been able to figure out how to do this. Which is why I asked for help. :)
     
  13. OperaManiac

    OperaManiac Well-Known Member

    righto. you just need to find the exact place in the xenforo code to place the link. the link code itself can be generated from the twitter documentation.

    i posted here as a user. the tweet button is well sort of a distraction. a simple text link would be much better alongside the report button.
     
  14. Onimua

    Onimua Well-Known Member

    I've put the guide up here: http://xenforo.com/community/threads/tweet-per-post.14581/

    I may look into that and provide that alternative a bit later, I just personally don't have that much time to read through it and do it at the moment. Of course if someone else want to post it, they can do it in the thread I linked and I'll link to their post. :)

    However, for a quick solution, my guide should be fine.
     
  15. OperaManiac

    OperaManiac Well-Known Member

    well the only thing of importance is this line:

    HTML:
    <a href="http://twitter.com/share?url=URL" target="_blank">Tweet</a>
    Test
     
  16. Onimua

    Onimua Well-Known Member

    Hm... let me run off to play with that for a couple of seconds then. :)
     
  17. Onimua

    Onimua Well-Known Member

    I went back and tried this, but it drops the #postid from the URL, making it not work with what's needed. Seems your link does the same thing.

    I have to get back to working on my stuff, but as I'm almost done I may come back and revisit this approach in-depth soon if no one else has first.
     
  18. Peggy

    Peggy Well-Known Member

    Dave don't worry about this anymore tonight. I'm very happy with it for now, thank you very much.
    However I did post an issue on the other thread.
     

Share This Page