• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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.

Peggy

Well-known member
#1
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.
 

Onimua

Well-known member
#2
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?
 

Onimua

Well-known member
#6
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.
 

Peggy

Well-known member
#9
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. :)
 

Peggy

Well-known member
#12
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. :)
 

OperaManiac

Well-known member
#13
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.
 

Onimua

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

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
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.
 

Onimua

Well-known member
#17
well the only thing of importance is this line:

HTML:
<a href="http://twitter.com/share?url=URL" target="_blank">Tweet</a>
Test
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.
 

Peggy

Well-known member
#18
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.