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

Smugmug media support.

Discussion in 'XenForo Questions and Support' started by Dean, Dec 28, 2010.

  1. Dean

    Dean Well-Known Member

    Here is how things are setup in vb3.8, and it works splendidly. Lets say someone wanted to post this sample video, as an embedded video on my vb3.8 forum:
    http://vincentlaforet.smugmug.com/gallery/6042742_wZKiA#377930419_dgxvY
    They would go to that url, click on 'share' in the upper right hand corner, 'get a link', embeddable links tab in the popup, click on the 'Copy' to the right of the iPod/DVD tab, then past into a post. Here is the code for reference:
    Code:
    <object width="640" height="360" ><param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2010102501.swf" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="s=ZT0xJmk9Mzc3OTMwNDE5Jms9ZGd4dlkmYT02MDQyNzQyX3daS2lBJnU9dmluY2VudGxhZm9yZXQ=" /><embed src="http://cdn.smugmug.com/ria/ShizVidz-2010102501.swf" flashVars="s=ZT0xJmk9Mzc3OTMwNDE5Jms9ZGd4dlkmYT02MDQyNzQyX3daS2lBJnU9dmluY2VudGxhZm9yZXQ=" width="640" height="360" type="application/x-shockwave-flash" allowFullScreen="true"></embed></object>
    Then delete everything except one of the 2 ids starting with the "s= up until the next quote. Which for that sample video would be this code:
    ZT0xJmk9Mzc3OTMwNDE5Jms9ZGd4dlkmYT02MDQyNzQyX3daS2lBJnU9dmluY2VudGxhZm9yZXQ=

    Then they would wrap smugmug tags around it like this, and it shows up beautifully as an embedded video:
    [smugmug]ZT0xJmk9Mzc3OTMwNDE5Jms9ZGd4dlkmYT02MDQyNzQyX3daS2lBJnU9dmluY2VudGxhZm9yZXQ=[/smugmug]

    Here is the BB Code manager in the vb3.8 admin control panel
    BB Code Manager - vBulletin Admin Control Panel_1293577301379.jpg

    Here is the code in the Replacement box:
    Code:
    <object width="800" height="600"><param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="s={param}" /><embed src="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" flashVars="s={param}" width="800" height="600" type="application/x-shockwave-flash" allowFullScreen="true"></embed></object>
    Here is the Example:
    [smugmug]ZT0xJmk9NTg0OTg4MzUxJms9YUFQSkQmYT04OTAzMTkyXzlSVWZUJnU9Y2FmZWh1c2t5[/smugmug]
    (I removed the code tags because that was inserting an extra space for some reason)

    Here is the code from the description box:
    Code:
    Use the movie code from the Smugmug URL in your browser. For example: ZT0xJmk9NTg0OTg4MzUxJms9YUFQSkQmYT04OTAzMTkyXzlSVWZUJnU9Y2FmZWh1c2t5



    Obviously the goal is to get embedded video in xf, not vb. This is what I have at the time being, which of course does not work, or there would be no need for this thread..

    Edit BB Code Media Site- SmugMug - Admin CP - XenForoB5_1293577851146.jpg
    In the matching URLs this is what I have now:
    Code:
    <object width="800" height="600"><param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="s={$id}" /><embed src="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" flashVars="s={$id}" width="800" height="600" type="application/x-shockwave-flash" allowFullScreen="true"></embed></object>
    And this is in the Embed HTML, which is the same as the matching URLs code:
    Code:
    <object width="800" height="600"><param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="s={$id}" /><embed src="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" flashVars="s={$id}" width="800" height="600" type="application/x-shockwave-flash" allowFullScreen="true"></embed></object>
    I am well aware that embedding smugmug is horribly convoluted and not very friendly. But there are historical reasons for using smugmug.

    Ironically I could not find any way to embed smugmug on vb3.8, until I sat down for a long time and did it myself, but I cannot seem to figure out how to do it on xf, although I've not spent as much time on it.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It works for me. Two things:

    1) In xenForo you need to use this code in your post:

    Code:
    [media=smugmug]ZT0xJmk9Mzc3OTMwNDE5Jms9ZGd4dlkmYT02MDQyNzQyX3daS2lBJnU9dmluY2VudGxhZm9yZXQ=[/media]
    
    2) The Match URLs section is for the actual URL of the video, not the embed code. You can see examples of this if you edit the other media sites in the Admin CP. But this is only used for the editor shortcut. If you are manually entering the BB code into your post then Match URLs doesn't matter.
     
    Dean likes this.
  3. Dean

    Dean Well-Known Member

    Thanks Jake!! [​IMG]

    I thought I'd tried the [edia=smugmug] weeks ago, but apparently I'd not tried the correct combination! Works great!!!
    (I left the 'm' out of media in case it caused parsing problems in the post)

    This was a source of much confusion. I had no idea it was only for use with the shortcut. Because there is absolutely no correlation between the Match URLs and the $id I do not think an editor shortcut is possible.

    Is it possible?
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not unless there is embed code which uses some identifying portion of the URL.
     
  5. Dean

    Dean Well-Known Member

    That is the trouble, there is no correlation between the embed code and the url.

    Long term I will leave the BBCode for smugmug in, but hope to host our own video at some point. I usually only have special video such as the 'Have you Seen' videos. The video issue is intertwined with where we are hosting our pictures.
     

Share This Page