1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Twitter embeds in posts

Discussion in 'XenForo Pre-Sales Questions' started by tcmw, Nov 11, 2013.

  1. tcmw

    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?
  2. EQnoble

    EQnoble Well-Known Member

  3. tcmw

    tcmw Member

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

    EQnoble Well-Known Member

    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.


    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.
    Shelley likes this.
  5. tcmw

    tcmw Member

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

    EQnoble Well-Known Member

    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: Nov 12, 2013
  7. tcmw

    tcmw Member

    Excellent. Thanks for explaining this for me. :)
  8. EQnoble

    EQnoble Well-Known Member

    No problem, good luck on your conversion :)
    Last edited: Nov 12, 2013
    Shelley likes this.
  9. jadeynicon

    jadeynicon New Member

    This can really save me time. :)
  10. tcmw

    tcmw Member

    Hey EQnoble!

    I bought a copy of Xenforo and have set up a test forum and would like to try this out! Can you provide me with that expression which would reformat my old twitter embeds?
    eddy mhando likes this.
  11. Tracy Perry

    Tracy Perry Well-Known Member

    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.
    eddy mhando likes this.
  12. tcmw

    tcmw Member

    Ah yep. That makes sense. I will try and contact this person via PM.
    eddy mhando likes this.
  13. Pinn

    Pinn Active Member

    eddy mhando likes this.

Share This Page