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

Need Help With BBCode For Wistia Video Embeds

Discussion in 'XenForo Questions and Support' started by diywm, Apr 28, 2013.

  1. diywm

    diywm New Member

    Wistia provide two types of video embed code. I've set one of them up successfully, by adding an entry at BB Codes Media Sites Options on the Admin CP. But I can't figure out how to do the other one as it contains more than one variable and the options panel only appears to provide for one variable substitution.

    The embed code I want to use has two variables and I can't specify both with just one replacement variable {$id} - I need a {$id1} and a {$id2}

    Is this possible to do via the BB Codes Media Sites Options?
  2. EQnoble

    EQnoble Well-Known Member

    Hi and welcome to the community.

    In answer to your question...Yes and no....you can do it...but you need a callback to do so.

    I don't have access to any of their videos so if you give me the URLs and the embed code for the video's you are testing this with I will make it for you.
    diywm and Tracy Perry like this.
  3. diywm

    diywm New Member

    EQnoble - thank you. My forum was just moved from IPB hosted to xenForo.

    I've made a screenshot of the sample Wistia embed code here to highlight the two substitution variables in colour to make them easier to spot.


    And below is the same Wistia embed code, cut and pasted in :

    <a href="http://fast.wistia.net/embed/iframe/du20aoyd5h?autoPlay=true&controlsVisibleOnLoad=true&playerColor=fa6e03&popover=true&version=v1&videoHeight=720&videoWidth=1280&volumeControl=true" class="wistia-popover[height=720,playerColor=fa6e03,width=1280]"><img src="http://embed-0.wistia.com/deliveries/9c38ff9bb644caf2bbe1ab3a1bbfb473463d5269.jpg?image_play_button=true&image_play_button_color=fa6e03e0&image_crop_resized=350x197" alt="" /></a>
    <script charset="ISO-8859-1" src="http://fast.wistia.com/static/popover-v1.js"></script>
    Thanks very much for your offer of help.

    Attached Files:

  4. EQnoble

    EQnoble Well-Known Member

    Could you also give me a direct url to the page containing that media?
  5. diywm

    diywm New Member

  6. EQnoble

    EQnoble Well-Known Member

    Ok, so I have the overlay player working as a media site but it beckons the question of what method are you using now for the embeds? I ask because what I did allows for the person posting the link to choose if it will get posted as an overlay or directly in the post

    What I have is this bbcode media site set it up so that if you post a link like 'http://account.wistia.com/medias/h87hynbh ' it will embed the full video
    and if you add '+popup' to the link like 'http://account.wistia.com/medias/h87hynbh+popup ' it will display the splash image and upon being clicked will open the video in an overlay. On clicking the second, smaller image, you get the overlay in the bottom image.
    inline.png overlay.png

    I am going to eat in a little bit and think about if I want to add the options in there for player color and a few other things...if I don't do that I will upload the bbcode I have made at this point which will work as I described above.
  7. diywm

    diywm New Member

    EQnoble - this sounds like it is a lot of work - please don't spend more time on it. I prefer the overlay method - popup. I normally pop the video up at 1280x720 and it resizes automatically to fit the person's screen (as in the example I posted the link to).

    My forum users like that as they can see to follow my instructions.

    If the BBCode only does what you said, then that is enough. It's late here (1:30am) so I am going to sleep now. If there is something I can do for you, please ask. Mind you - I am only good at WordPress.
  8. EQnoble

    EQnoble Well-Known Member

    It's a breeze with xenforo, I for one find modifying and customizing Xenforo simpler than WordPress actually.

    Alrighty, I left the other options out for now and uploaded it so you can get going. I have it as is here...It allows for both...inline and overlay display modes as a choice of the user who is posting the video.

    If you like you can simply not share the +popup thing that I added with your members and when pasting a link from wistia their videos will just display inline embeds making yours stand out more as an official thing or whatever. Anyways, good luck and if you have any questions feel free to ask.
    diywm likes this.
  9. diywm

    diywm New Member

    Thanks very much EQnoble. Very kind of you.

Share This Page