s9e Media BBCodes pack

s9e Media BBCodes pack 20231102

No permission to download
appear.in has added embeddable video chat rooms today to their platform. details here:
appear.in - Developer API

URL:
HTML:
https://appear.in/your-room-name

Code:
HTML:
<iframe src="https://appear.in/your-room-name" width="800" height="640" frameborder="0"></iframe>
 
Is there any way that I may hide all of the supported websites
feT8IfR.png

and make it simple as such as the image button? (possibly say instead "We support wide range of websites")
CGnTUQf.png
 
When I created this add-on, I had configured it so that none of its sites would appear in this list because I knew it would get crowded pretty fast. However, feedback from the early users indicated that they preferred to display the sites to let their users know about which sites are allowed. That's why they are displayed by default. You could edit each site in the Admin CP and toggle the option "Show this site on the list of 'supported' sites shown to visitors" but that would take a long time and you'd have to do that after every update.

If want to hide the whole list at once, I think the easiest way is to create a template modification for it. Go to your Admin CP in Appearance > Template Modifications > Create Template Modification and create a new modification with those settings:
Code:
        Template: editor_dialog_media
Modification Key: remove_list_of_supported_media_sites
     Description: Removes the list of supported media sites from the editor dialog
     Search Type: Regular expression
            Find: (\s*<div.*</div>)s
         Replace: We support a wide range of websites
 
Make sure that "Automatically apply template modification" is checked. You may need to empty your browser's cache to see the new version of the page. I don't know why but when I tested the modification on my local test board it took a minute for it to appear.
 
Make sure that "Automatically apply template modification" is checked. You may need to empty your browser's cache to see the new version of the page. I don't know why but when I tested the modification on my local test board it took a minute for it to appear.
I opened it on a different browser, and you sir are correct.
Cache needed to be cleared :ROFLMAO:
Thanks josh (y)
 
If you have the pack installed the link shows on the options page for the addon, it's under the categories list.
 
If you have the pack installed the link shows on the options page for the addon, it's under the categories list.

So it is. I completely missed that.

Still wouldn't hurt to add the link to the FAQ/github readme, as those were the first places I thought to check
 
Catching up on this week's posts.

appear.in has added embeddable video chat rooms today to their platform.
That seems like pretty niche service so I'll hold off until it becomes popular.

Hi dude!
How ca I bind the Videos from epic.tv like this one: http://www.epictv.com/pages/sport/mountain-biking
THX for your help!!
That seems pretty niche too. I don't think I'm going to add it to this add-on but you can create the media site for yourself with the following settings.
Code:
              Media Site ID: epictv
                 Site Title: EpicTV
                   Site URL: http://www.epictv.com/
                 Match URLs: !epictv\.com/(?:media/[^/]+|playlist)/[^/]+/(?'id'\d+)!
                 Embed HTML: <iframe src="http://www.epictv.com/player/embed-player/{$id}" width="600" height="335" frameborder="0" scrolling="no" allowfullscreen></iframe>
Regular Expression Matching: ☑ Use 'Match URLs' as PCRE regular expressions
For turning site embeds on/off, is there a listing of which sites go with which categories?
Below the list of checkboxes there's a link displayed as "List of optional sites enabled by each category" -- it will take you there. A site can belong to multiple categories, that's why the lists are simply listed in alphabetical order on the front page. Otherwise some sites would appear multiple times and it would be harder to read. The list is already pretty long and unwieldy.
 
Catching up on this week's posts.
Code:
              Media Site ID: epictv
                 Site Title: EpicTV
                   Site URL: http://www.epictv.com/
                 Match URLs: !epictv\.com/(?:media/[^/]+|playlist)/[^/]+/(?'id'\d+)!
                 Embed HTML: <iframe src="http://www.epictv.com/player/embed-player/{$id}" width="600" height="335" frameborder="0" scrolling="no" allowfullscreen></iframe>
Regular Expression Matching: ☑ Use 'Match URLs' as PCRE regular expressions

Hi!
Thank u so much for ur work!! The Playlist works now perfectly!!
but I see that epic.tv has more links to their vieos. The normal expression is like that:
http://www.epictv.com/media/podcast...e-black-hills-of-france-|-jawsome-ep-2/600738
or like that:
http://www.epictv.com/media/podcast/the-samson-bros-catalan-mtb-adventure-|-live-to-ride-ep-4/600294

Is it possible to expand ur Code ??

Greetz from Germany!! ;)
 
@Kai Kreye Both of those links work on my local board. Make sure that you have created the media site with the exact same configuration.
Hi!
both of the links works fine in my Forum, but if I try to embed the links in xenGallery I get allways the same error message from server:
"Invalid URI supplied Vor 2 Minuten - library/Zend/Uri/Http.php:156"
Code:
Zend_Uri_Exception: Invalid URI supplied - library/Zend/Uri/Http.php:156


#0 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Uri.php(143): Zend_Uri_Http->__construct('http', '//www.epictv.co...')
#1 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Http/Client.php(270): Zend_Uri::factory('http://www.epic...')
#2 /homepages/32/d399530394/htdocs/mtb4free/library/Zend/Http/Client.php(253): Zend_Http_Client->setUri('http://www.epic...')
#3 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/Helper/Http.php(21): Zend_Http_Client->__construct('http://www.epic...', Array)
#4 /homepages/32/d399530394/htdocs/mtb4free/library/XenGallery/ViewPublic/Media/PreviewVideo.php(72): XenForo_Helper_Http::getClient('http://www.epic...', Array)
#5 /homepages/32/d399530394/htdocs/mtb4free/library/XenGallery/ViewPublic/Media/PreviewVideo.php(24): XenGallery_ViewPublic_Media_PreviewVideo->_getTitleAndDescription('http://www.epic...')
#6 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/ViewRenderer/Abstract.php(227): XenGallery_ViewPublic_Media_PreviewVideo->renderJson()
#7 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('XenGallery_View...', 'Json', Array, 'xengallery_medi...')
#8 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/FrontController.php(586): XenForo_ViewRenderer_Json->renderView('XenGallery_View...', Array, 'xengallery_medi...', NULL)
#9 /homepages/32/d399530394/htdocs/mtb4free/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#10 /homepages/32/d399530394/htdocs/mtb4free/index.php(13): XenForo_FrontController->run()
#11 {main}


array(3) {
  ["url"] => string(93) "http://mtb4free.de/index.php?xengallery/preview-video&_xfResponseType=json&media_id=undefined"
  ["_GET"] => array(3) {
    ["xengallery/preview-video"] => string(0) ""
    ["_xfResponseType"] => string(4) "json"
    ["media_id"] => string(9) "undefined"
  }
  ["_POST"] => array(5) {
    ["embed_url"] => string(101) "http://www.epictv.com/media/podcast/forrest-riesco-tears-up-the-north-shore-|-in-the-dirt-ep-5/600582"
    ["_xfRequestUri"] => string(20) "/index.php?media/add"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

Yesterday I was able to embed the first Link I postet here for you. Since that, It does not works :(
 
and that is the line 156 of http.php

PHP:
// Validate the URI
        if ($this->valid() === false) {
            require_once 'Zend/Uri/Exception.php';
            throw new Zend_Uri_Exception('Invalid URI supplied');   <----- 156
        }
    }
 
It's not related to media sites. The library used by XenForo to access this URL rejects it because it does not recognize it. It has something to do with the character "|". It will work if you remove it from the URL.
 
Top Bottom