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

Sketchfab BB Code

Discussion in 'XenForo Questions and Support' started by herocus, Aug 13, 2015.

  1. herocus

    herocus Member

    I'm not sure whether here is the right place to post.
    Just wondering, any support for embedded sketchfab in the future?

    this is a very cool to show 3d model...
    Sketchfab - The place to be for 3D
  2. Jake B.

    Jake B. Well-Known Member

    I'm going to go out on a limb and say probably not since that isn't something many people would ever use
  3. Martok

    Martok Well-Known Member

    You could probably do that already with a custom BB Code (there's already a BB Code in the embed options for images on the site). If you can't make it yourself, you could always ask JoshyPHP in his BB Codes media add-on thread.

    s9e Media BBCodes pack
  4. Chris D

    Chris D XenForo Developer Staff Member

    Just had a quick look, without a doubt you could very easily add that yourself as a BB Code Media Site.
  5. herocus

    herocus Member

    @Jake B. err... doesn't hurt to ask ;)
    well I mean if this does not get that complicated to add, it may be useful for others too, perhaps potential customers :)

    @Martok thanks for the info, I will try to have a look that BB Code... I'm not a programmer... I will check it out first
  6. herocus

    herocus Member

    hi @Chris D wow that's a good news! :)
    I will google around first and see what I can get from there... thanks alot
  7. Kevin

    Kevin Well-Known Member

    Their embed code is pretty straight-forward and you can create a simple code with no add-ons, etc.

    Go into your ACP and then on the "Home" tab select "BB Code Media Sites". In the top-right corner click the "Add BB Code Media Site" button. Use the following values on the form...
    • Media Site ID = sketchfab
    • Site Title = Sketchfab
    • (optional) Site URL = https://sketchfab.com
    • Match URLs = https://sketchfab.com/models/{$id}
    • Embed HTML =
      <iframe width="640" height="480" src="https://sketchfab.com/models/{$id}/embed" frameborder="0" allowfullscreen mozallowfullscreen="true" webkitallowfullscreen="true" onmousewheel=""></iframe>
      <p style="font-size: 13px; font-weight: normal; margin: 5px; color: #4A4A4A;">
          via <a href="https://sketchfab.com/models/{$id}?utm_source=oembed&utm_medium=embed&utm_campaign={$id}" target="_blank" style="font-weight: bold; color: #1CAAD9;">Sketchfab</a>
    • Click "Save BB Code Media Site" button at the bottom of the screen.
    That's it. Now when viewing the models on the Sketchfab site, like Low Poly Hero Robot Rigged and Textured by MrBfox - 3D model, just copy & paste the URL (eg: https://sketchfab.com/models/46ebd9c5c2f241ed9894d274b088213a) into your posts (or click the media button in the editor) and the model will be shown (example at Alien Soup).

    If you want a true "sketchfab" BB Code, as opposed to using "media=sketchfab", then you'll need to look at an add-on or alternative method.
  8. herocus

    herocus Member

    @Kevin thanks very much for your help...
    I tried to follow your instruction, It works when I just copy paste the URL like this (Low Poly Hero Robot Rigged and Textured by MrBfox - 3D model)

    When I use the media button, it does not work though... it showing a broken IMG

    but I'm quite happy as what it is for now as a solution for my member... thanks appreciate your help.
  9. Kevin

    Kevin Well-Known Member

    When you use the media button, what exactly are you copying & pasting? I just tried and when I paste the URL https://sketchfab.com/models/46ebd9c5c2f241ed9894d274b088213a into the pop-up box it works as expected.
  10. herocus

    herocus Member

    I just cut and paste the whole URL address like this: Jen by arifcreations - 3D model

    see the picture attachment of pop-up menu when I click the media button and the result preview.

    Attached Files:

  11. Kevin

    Kevin Well-Known Member

    Are you absolutely positive that you're clicking the media button and not the image button? ;)

    Media Button.PNG
    herocus and Rob like this.
  12. herocus

    herocus Member

    lol... my bad, you are right.. :oops:

    it's been 1:00 am here... :p
    everything works perfect... thanks very much for your help (y)(y)(y)
    Kevin likes this.
  13. Yore VR

    Yore VR New Member

    This is awesome, thank you so much.. We heavily rely on Sketchfab and being able to easily embed them into post is incredible.

Share This Page