Twitter embeds in posts

tcmw

Member
Hey guys... I've posted once here before... still doing research on a possible future switch from vB 3.8.x series.

One of the mods I use is this twitter embed add on. http://www.vbulletin.org/forum/showthread.php?t=289282

In short, when you copy the 18 digit twitter ID code into the post, it will display that tweet in a nicely layed out look.

My question...

1) Is there a mod like this that I can use?

2) I have a lot of posts that have the tweet tags [tweet]18digitcodehere[/tweet] that display the tweets. It would be very important, that if I switch and install the new mod here at xenforo, that all existing posts will continue to display these tweets in their posts.

I am not much of a programmer but this doesn't seem to be a difficult script to write (and very well could be duplicated here.)

Can this be done?
 
Thanks for the reply.

So in the script you provided I will be able to post the tweet ID and/or be able to just post the link to the tweet?

My guess is that the script write up has to be the same since it needs to match what's on my current forum.

My concern is losing tweets in threads after I move and because I have a lot of threads/posts with tweets in them it would be a major annoyance to have empty posts.
 
Thanks for the reply.

So in the script you provided I will be able to post the tweet ID and/or be able to just post the link to the tweet?

My guess is that the script write up has to be the same since it needs to match what's on my current forum.

My concern is losing tweets in threads after I move and because I have a lot of threads/posts with tweets in them it would be a major annoyance to have empty posts.
Not a problem...and yes you can do either though if you have the tweet id you probably have the tweet open in a browser tab so it is usually easier to just paste the link.

http://xenforo.com/community/threads/post-content-find-replace.6548/

If you install that after you install the bbcode I can give you an expression to run in that addon which will reformat all existing twitter embed bbcode instances.
 
Just to help me understand...

Obviously I would need to migrate over to XF first....

After that is complete, I would need to install the mod you provided: http://xenforo.com/community/resources/twitter-mediasite-bbcode.1390/

Then I need to install this.... http://xenforo.com/community/threads/post-content-find-replace.6548/ for which you would give me an expression to reformat my old twitter embed details?

-- I agree with you that just copying & pasting the twitter URL would be much simpler and ultimately that is how I would choose to carry on. I just really want to make sure that I could reformat my old twitter details so that the old posts will show up and work correctly with this new addon.
 
Just to help me understand...

Obviously I would need to migrate over to XF first....

After that is complete, I would need to install the mod you provided: http://xenforo.com/community/resources/twitter-mediasite-bbcode.1390/

Then I need to install this.... http://xenforo.com/community/threads/post-content-find-replace.6548/ for which you would give me an expression to reformat my old twitter embed details?

-- I agree with you that just copying & pasting the twitter URL would be much simpler and ultimately that is how I would choose to carry on. I just really want to make sure that I could reformat my old twitter details so that the old posts will show up and work correctly with this new addon.

Yes exactly.

The first addon is the bbcode itself which will allow for twitter embeds...and since you will have tweets embedded already from before importing you would run a regular expression in the replace in posts addon which will find all instances of stings matching the expression and replace them with another string which I will give you with the expression that will update all of your old tweet embeds

[tweet]18digitcodehere[/tweet] -> becomes -> [media=twitter]18digitcodehere[/media]
 
Last edited:
Best thing is once you have associated your username then to send a PM or ask in the appropriate resource discussion area. Detailed support is not encouraged for the open areas since it IS support and should only be provided to license holders.
 
Top Bottom