• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[Add More Video Sites] BB Code Media

========Update for Facebook=========

Easy though.

Just add the following line in under the existing Match URL
Code:
facebook.com/photo.php?v={$id:digits}

Save and your done.
 
Is anybody pulling in RSS feeds and trying to use the 'media' tags as part of the feed?

For example, I'm using EQNoble's Twitter definition and am trying to use a sample profile feed (eg: http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=coolscifi) but am having no luck getting the {link} value to embed in the post.

I have tried using just {link} in the post (with the auto-embed option turned on) and also tried [noparse][media]{link}[/media][/noparse] both with no luck. If I manually modify the the post after it has been imported then save it then the embedding works fine.
 
The ignorant people in that video should not be allowed to reproduce or work in childcare. Wow...now I understand what Bob Barker was getting at with the notion of please have your pups spayed or neutered.

PerezTv
__________________________________________________
Media Site ID: pereztv
________________________________________
Site Title: PerezTV
________________________________________
Site URL: http://perezhilton.com
________________________________________
Match URLs: #perezhilton\.com/tv/[a-z0-9-_]+/\?id=(?P<id>[a-z0-9-_]+)\&autoplay#si
________________________________________
Embed HTML:
HTML:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://vids.perezhilton.com/videos/{$id}/screenshots/500w.jpg" />
<object type="application/x-shockwave-flash" width="500" data="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=vega4-without-ads-transparent-flp&autoplay=false" height="375" id="embedded_player">
<param name="movie" value="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=vega4-without-ads-transparent-flp&autoplay=false"/>
<param name="bgcolor" value="#000000"/>
<param name="allowfullscreen" value="true"/>
<param name="base" value="http://vids.perezhilton.com"/>
<param name="allowscriptaccess" value="always"/>
</object>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________



- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -


Cocoperez
__________________________________________________
Media Site ID: cocoperez
________________________________________
Site Title: Cocoperez.com
________________________________________
Site URL: http://cocoperez.com
________________________________________
Match URLs: #cocoperez\.com/tv/[a-z0-9-_]+/\?ptvid=(?P<id>[a-z0-9-_]+)#si
________________________________________
Embed HTML:
HTML:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://vids.perezhilton.com/videos/{$id}/screenshots/500w.jpg" />
<object type="application/x-shockwave-flash" width="500" data="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=coco-without-ads-flp&autoplay=&autoplay=false" height="375" id="embedded_player">
<param name="movie" value="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=coco-without-ads-flp&autoplay=&autoplay=false"/>
<param name="bgcolor" value="#000000"/>
<param name="allowfullscreen" value="true"/>
<param name="base" value="http://vids.perezhilton.com"/>
<param name="allowscriptaccess" value="always"/>
</object>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________



- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -


Fitperez
__________________________________________________
Media Site ID: fitperez
________________________________________
Site Title: fitperez.com
________________________________________
Site URL: http://fitperez.com
________________________________________
Match URLs: #fitperez\.com/tv/[a-z0-9-_]+/\?ptvid=(?P<id>[a-z0-9-_]+)&#si
________________________________________
Embed HTML:
HTML:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://vids.perezhilton.com/videos/{$id}/screenshots/500w.jpg" />
<object type="application/x-shockwave-flash" width="500" data="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=fit-without-ads-flp&autoplay=false" height="375" id="embedded_player">
<param name="movie" value="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=fit-without-ads-flp&autoplay=false"/>
<param name="bgcolor" value="#000000"/>
<param name="allowfullscreen" value="true"/>
<param name="base" value="http://vids.perezhilton.com"/>
<param name="allowscriptaccess" value="always"/>
</object>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________



- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -


Perezitos
__________________________________________________
Media Site ID: perezitos
________________________________________
Site Title: perezitos.com
________________________________________
Site URL: http://perezitos.com
________________________________________
Match URLs: #perezitos\.com/tv/[a-z0-9-_]+/\?ptvid=(?P<id>[a-z0-9-_]+)#si
________________________________________
Embed HTML:
HTML:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://vids.perezhilton.com/videos/{$id}/screenshots/500w.jpg" />
<object type="application/x-shockwave-flash" width="500" data="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=perezitos-without-ads-flp&autoplay=false" height="375" id="embedded_player">
<param name="movie" value="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=perezitos-without-ads-flp&autoplay=false"/>
<param name="bgcolor" value="#000000"/>
<param name="allowfullscreen" value="true"/>
<param name="base" value="http://vids.perezhilton.com"/>
<param name="allowscriptaccess" value="always"/>
</object>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________



- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -- - -

Teddyhilton
__________________________________________________
Media Site ID: teddyhilton
________________________________________
Site Title: teddyhilton.com
________________________________________
Site URL: http://teddyhilton.com
________________________________________
Match URLs: #teddyhilton\.com/tv/[a-z0-9-_]+/\?ptvid=(?P<id>[a-z0-9-_]+)&#si
________________________________________
Embed HTML:
HTML:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://vids.perezhilton.com/videos/{$id}/screenshots/500w.jpg" />
<object type="application/x-shockwave-flash" width="500" data="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=teddy-without-ads-flp&autoplay=false" height="375" id="embedded_player">
<param name="movie" value="http://vids.perezhilton.com/plugins/player.swf?v={$id}&p=teddy-without-ads-flp&autoplay=false"/>
<param name="bgcolor" value="#000000"/>
<param name="allowfullscreen" value="true"/>
<param name="base" value="http://vids.perezhilton.com"/>
<param name="allowscriptaccess" value="always"/>
</object>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________



They all could have used the same player and embed code...but...the branding for each sub site of perezhilton.com wouldn't show and only the main site's players branding would. It could have still been one mediasite but it doesn't need a callback so I am not going to do it atm.
 
Always remember to upload the callback file for a site before trying to add it. In this case unzip the attachment and upload the contents to your forum root.



Someone said something about embedding tweets so here yah go.

Media Site ID: twitter
________________________________________
Site Title: Tweets
________________________________________
Site URL: https://twitter.com/
________________________________________
Match URLs: #twitter\.com/(\#\!/[a-z0-9-_]+|[a-z0-9-_]+)/status/(?P<id>[0-9]+)#si
________________________________________
Embed HTML:
HTML:
<none>

________________________________________
___In advanced options___________________________
Regular Expression Matching: Use 'Match URLs' as PCRE regular expressions [ Checked ]
________________________________________
Embed HTML Callback: MediaSites_Twitter :: buildEmbed




Now to adjust the starting point for the tweet, go to appearance/templates in your ACP.

Find template: EXTRA.css

add the following:
Code:
.twp-container {
    top: -120px;
}

View attachment 22959

For reference this is the twitter callback
PHP:
<?php
class MediaSites_Twitter
{
    public static function buildEmbed($mediaKey, array $site)
    {
        // CAPTURE WEB PAGE
        $json = file_get_contents('https://api.twitter.com/1/statuses/oembed.json?id=' . $mediaKey . '&omit_script' ,true); //getting the tweet info
        $decode = json_decode($json, true); //getting the tweet info ready to display in a readble fashion
        $finalHtml = $decode[html];        // decode the embed html part of the array
        return $finalHtml;                  // return the decoded string
    }
}



I will work on making this better...please bear with me.
uh how do i use this?
 
just download the attachment from that post, extract the zip and then upload the extracted content to your forum root...aside from the normal filling out of the info that is pretty much the only other step which include setting the callback on the advanced tab
 
Im not really a twitter user...or any other social network...that's what I have forums for :-)....if I had to take a guess I would venture a guess at individual tweets are viewable by clicking the timestamp of the individual tweet itself and then you copy that url in your browsers url field.
 
Im not really a twitter user...or any other social network...that's what I have forums for :)....if I had to take a guess I would venture a guess at individual tweets are viewable by clicking the timestamp of the individual tweet itself and then you copy that url in your browsers url field.
THANKS BRUH
 
The ignorant people in that video should not be allowed to reproduce or work in childcare. Wow...now I understand what Bob Barker was getting at with the notion of please have your pups spayed or neutered.
I don't see why people would televise themselves saying some negative stuff like that without any regard to their own personal saftey. Them chicks do not look like they could defend themselves if some cholas came up and jacked em up. They probably go to an all-white school and ain't scared of anything. I've known peeps like that. One time I was taking this racist white dude with me somewhere as a favor for someone and when my car broke down we were in the middle of the hood. He was so scared when random people would come up to investigate lol. I hope that happens to them chicks.
 
The thing is...that attitude I have seen before...those girls will never change...it was either a horrible attempt at a parody of the attitude of some locals near them done for attention...or they really are that way and like I said to the effect of earlier...people like them make me think having a license to breed is a good idea sometimes. They probably don't really hate the people they are talking about...they literally are just saying 'cool' things because it probably fits their surroundings and they get attention for it.

I have been there too (scared folk)...I had a car fail while on the block and my boy that was with me literally asked...someone's going to try to rob us huh? Some massive guy in the cut between the two buildings about 130 ft away started flexing hard when he hit what I would guess was what he was hoping for playing some craps and I thought my boy was going to pass out. Was too funny....was almost worth having to try and find someone willing to go there to jump the car...which took hours lol.

But in response to those girls in that situation....they don't strike me as the type to have ever endured any real hardship or real conflict so yeah my bet is they actually would not be scared...they seem so ignorant that they strike me as the type to say what they said on that video directly to the people they are addressing...and proceed to provoke a violent crime. People like them are the problem...there is nothing wrong with being different from someone else...you can even have a bias or a prejudice...as long as no one else has to hear it...it is perfectly ok. People like them are the reason that humankind is a threat to itself.


Forget about them....Back to media codes :)
 
Yup your right Kurt...it is not caught by any of them....it does look like mtv is updating the whole or parts of their media system...I see two new types of url structure and embed code now that I looked again when checking your link. Give it a couple of days...I would like to see if the changes I am seeing propagate through the rest of their system. If it ends up being a change only to certain sections...I may entertain thinking of a different approach.

If you absolutely need that video or ones from that section (the VMAs ) for now you can add this line to the match urls field in the 'mtvmv' media sites bbcode.
#mtv\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/[a-z0-9-_]+\.jhtml#si

this should cover it for now at any rate.
 
Anything for spotify, last.fm, megavideo?
If I remember correctly...Kier demonstrated implementing megavideo in a video in the HYS section for BBcode media site improvements, spotify and last fm I will look into....

If you want to try...watch that video and follow along, that video is how I learned to make a bbcode media site...that and looking at Jakes callbacks :-) ...if not I will add it soon.
Also panicstream.com would be sick.
as well as this one...

must have missed your posts...sorry.
 
Yup your right Kurt...it is not caught by any of them....it does look like mtv is updating the whole or parts of their media system...I see two new types of url structure and embed code now that I looked again when checking your link. Give it a couple of days...I would like to see if the changes I am seeing propagate through the rest of their system. If it ends up being a change only to certain sections...I may entertain thinking of a different approach.

If you absolutely need that video or ones from that section (the VMAs ) for now you can add this line to the match urls field in the 'mtvmv' media sites bbcode.
#mtv\.com/[a-z-0-9-]+/[a-z-0-9-]+/(?P<id>[0-9]+)/[a-z0-9-_]+\.jhtml#si

this should cover it for now at any rate.
The URL works now, but the embed is still failing to load (like it was before with the spinning wheel); is this incorrect?
Code:
<embed src="http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:{$id}/cp~instance%3Dfullepisode%26autoPlay%3Dfalse%26id%3D{$id}%26uri%3Dmgid%3Auma%3Avideolist%3Amtv.com%3A{$id}" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="."></embed>
URL for where I've posted it: http://www.voiceradio.us/threads/beyoncé-and-jay-z-welcome-daughter-ivy-blue-carter.5130/#post-8183
 
It looks like you added it to the mtvtv bbcode...remove that second regex line you added from the mtvtv and add it to the mtvmv (music video code)

Lemme know if that was it....the embed code you posted I assume is from the bbcode you edited?
  • Code:
    <embed src="http://media.mtvnservices.com/mgid:uma:videolist:mtv.com:{$id}/cp~instance%3Dfullepisode%26autoPlay%3Dfalse%26id%3D{$id}%26uri%3Dmgid%3Auma%3Avideolist%3Amtv.com%3A{$id}" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="."></embed>
 
Could someone help with SplicD please?

This is the URL of the video: http://www.splicd.com/4R7fOc0c1kI/361/405

This is the embed code generated.


Code:
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/4R7fOc0c1kI&start=361&end=405">
</param>
<param name="allowFullScreen" value="true">
</param>
<embed src="http://www.youtube.com/v/4R7fOc0c1kI&start=361&end=405" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344">
</embed>
</object>
<div style="text-align: right; margin-top: 3px; width: 425px; height: 344px;">
<a href="http://splicd.com" style="color: rgb(85, 85, 85); font-size: 13px; text-decoration: none; font-family: Helvetica,sans-serif;">powered by
<span style="color: rgb(200, 91, 0);">Splicd.com</span></a></div>

Sorry - but I don't see how to get the match URLs information as well as convert the above to a generic entry for embed HTML.

Thank you for the help.
 
A second request - MSNBC. I have NBC working.

This is the video ID.
http://www.msnbc.msn.com/id/3032608/vp/45918668#45918668

or

http://www.msnbc.msn.com/id/3032608/vp/45918147#45918147

This is the code generated when you click on embed.

HTML:
<object width="420" height="245" id="msnbc860d7a" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0"><param name="movie" value="http://www.msnbc.msn.com/id/32545640" /><param name="FlashVars" value="launch=45918147&amp;width=420&amp;height=245" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /><embed name="msnbc860d7a" src="http://www.msnbc.msn.com/id/32545640" width="420" height="245" FlashVars="launch=45918147&amp;width=420&amp;height=245" allowscriptaccess="always" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object><p style="font-size:11px; font-family:Arial, Helvetica, sans-serif; color: #999; margin-top: 5px; background: transparent; text-align: center; width: 420px;">Visit msnbc.com for <a style="text-decoration:none !important; border-bottom: 1px dotted #999 !important; font-weight:normal !important; height: 13px; color:#5799DB !important;" href="http://www.msnbc.msn.com">breaking news</a>, <a href="http://www.msnbc.msn.com/id/3032507" style="text-decoration:none !important; border-bottom: 1px dotted #999 !important; font-weight:normal !important; height: 13px; color:#5799DB !important;">world news</a>, and <a href="http://www.msnbc.msn.com/id/3032072" style="text-decoration:none !important; border-bottom: 1px dotted #999 !important; font-weight:normal !important; height: 13px; color:#5799DB !important;">news about the economy</a></p>
 
Top Bottom