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

XF 1.1 What to replace to change Youtube or Video tags

Discussion in 'Troubleshooting and Problems' started by Fredjo, Mar 4, 2013.

  1. Fredjo

    Fredjo Active Member

    Hello peeps !

    I'd like to replace my old PhpBB Youtube tags and don't know where to start.

    I've installed the (very nice) Post Content Find/Replace tool found here : http://xenforo.com/community/threads/post-content-find-replace.6548/

    I've tried to reply in the thread but it seems to be archived and can't reply.

    I need some help on what to put on those find and replace forms.

    At the moment my code look like this :

    Code:
    [youtube]FkszTNID2rs[/youtube]
    What should I fill in ?

    Thanks for the help in advance and sorry if that is a dumb question but this is beyond my knowledge ;)

    Fred
    Happy Xenforo User !
     
  2. MattW

    MattW Well-Known Member

  3. Fredjo

    Fredjo Active Member

    Thanks ! (y)
    I'll have a look..
    But it's not the same code you had.. :unsure:
     
  4. MattW

    MattW Well-Known Member

    So your current code is wrapped with YouTube tags, and you need it to be replaced with media=youtube.

    Give me 10 minutes to get to my laptop.
     
  5. Fredjo

    Fredjo Active Member

    yeah current code after the phpBB import is



    Code:
    [youtube]2IN-lIf_62I[/youtube]
    And I only needs this to make it work in Xenforo right ?

    Code:
    http://www.youtube.com/watch?v=2IN-lIf_62I
     
  6. MattW

    MattW Well-Known Member

    Quick Find:
    Code:
    [youtube]
    RegEx:
    Code:
    #\[youtube\]([\w\-]+?)\[\/youtube\]#siU
    Replacement:
    Code:
    [media=youtube]\1[/media]
    replacement.PNG
     
    Jake Bunce and Fredjo like this.
  7. Fredjo

    Fredjo Active Member

    Seems to be working but it says :

    ?
     
    MattW likes this.
  8. Fredjo

    Fredjo Active Member

  9. MattW

    MattW Well-Known Member

    Admin Control Panel --> Options --> Messages

    Maximum Media Embeds per Message

    Default value is 5. Just change to what ever suits.
     
    Fredjo likes this.
  10. Fredjo

    Fredjo Active Member

    Worked like a charm !!

    Thanks a lot MattW !
     
    MattW likes this.
  11. MattW

    MattW Well-Known Member

    You're welcome (y)
     
  12. Fredjo

    Fredjo Active Member

    To be honest I never found a community like this one ! I'm really happy I've bought the Xenforo cms !
     
    MattW likes this.
  13. Fredjo

    Fredjo Active Member

    Can I ask for help again ? :oops:

    I have some tags that were appearing like this :

    Code:
    [video]http://www.youtube.com/watch?v=uJke44UlVKY&list=UUDKJKKo9gf4-rGtU5CG0oPg&index=3&feature=plcp[/video]
    What should I put in the different fields ?

    Thanks a lot in advance (y)
     
  14. MattW

    MattW Well-Known Member

    Quick Find:
    Code:
    [video]
    Regular Expression:
    Code:
    #\[video\]http:.+youtube.+v=([\w\-]+?).+?#siU
    Replacement String:
    Code:
    [media=youtube]\1[/media]
    Give that a try
     
    Jake Bunce and Fredjo like this.
  15. Fredjo

    Fredjo Active Member

    Your my star for today MattW !! :X3: (y)
     
    MattW likes this.
  16. audiokid

    audiokid Active Member

    how about this?

    [video=youtube_share;kSNYBbPAvKE]
     
  17. EQnoble

    EQnoble Well-Known Member

     
  18. audiokid

    audiokid Active Member

    got it, thank you!

    Rather than asking repeated questions, I also need to replace vb4 vbseo thread links . Is there a thread with this going on? I've done a search but having found what I need so far.
     

Share This Page