Advertisement:

Author Topic: Simple Audio Video Embedder  (Read 849610 times)

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #360 on: December 12, 2010, 10:28:08 AM »
1. First time seen that one occur not sure what casues that.

2. You place it manually in the root of your forum then run it via browser.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline fullmetalgirl

  • Semi-Newbie
  • *
  • Posts: 57
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #361 on: December 12, 2010, 10:35:40 AM »
1. i simply downloaded your zip file,
extracted it and placed the .php in the correct folder...
so guess im not doing anything wrong so im a bit curious wether anybody else seen it?

Code: [Select]
$mediaProCache = \'' . serialize($mediaProItems)  . '\';
?>';

// Write the cache to the file
$fp = fopen($boarddir . "/cache/mediaprocache.php", 'w');
if ($fp)
{
fwrite($fp, $data);
}

fclose($fp);

// Return the items in the array
return $mediaProItems;

}

function MediaProFetchRemoteData()
{

}

?>

i think here is the problem, 2 slashes are maybe the wrong way?? and { and } are those ok??
(though i don't know how to find line numbers,, so im guessing here.)

2. thnx, ill try that

« Last Edit: December 12, 2010, 10:45:27 AM by fullmetalgirl »

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,072
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #362 on: December 12, 2010, 01:13:32 PM »
On the first line, try changing \'' to '\'

Remove the second line.

Hopefully, that should sort it.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


Offline fullmetalgirl

  • Semi-Newbie
  • *
  • Posts: 57
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #363 on: December 12, 2010, 01:36:36 PM »
On the first line, try changing \'' to '\'

Remove the second line.

Hopefully, that should sort it.

I sorted out the line 166 problem:
Code: [Select]
$mediaProCache = serialize($mediaProItems)  . '\';
?>';

This solves that problem... (simple removing the . \'' thats infront, doing what you suggested didnt work.)

but i can't sort out the line 181 problem:
Code: [Select]

} (this is line 181)

function MediaProFetchRemoteData()
{

}

?>

if i remove it, including function mediaprfetch etc...  i get another error..
saying theres an error in my source/subs.php line 2040

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #364 on: December 12, 2010, 02:08:56 PM »
The quotes are there for a reason to store the serialized data in the cache file without an error.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline fullmetalgirl

  • Semi-Newbie
  • *
  • Posts: 57
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #365 on: December 12, 2010, 02:17:41 PM »
could you post how you think it could be fixed?
simply changing \'' in '\' is not enough...

deleting the } on line 181 resolves in an .source/subs error.

Offline stevemci

  • Semi-Newbie
  • *
  • Posts: 13
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #366 on: December 14, 2010, 01:28:47 PM »
There seems to be a problem with embedding clips from LiveLeak with version 1.0.9 and 1.0.10 of this mod. No matter what video url I try to embed from LiveLeak I get a video of guys skiing. It's always the same video. Youtube embedding works fine so it must be a problem with LiveLeak. Is there some way to resolve this problem?

Thanks!

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #367 on: December 14, 2010, 02:49:09 PM »
Can you post a couple sample urls?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline stevemci

  • Semi-Newbie
  • *
  • Posts: 13
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #368 on: December 14, 2010, 05:34:43 PM »
Climbing Transmission Tower:

http://www.liveleak.com/view?i=0c2_1284851947 [nofollow]

Drunken Midgets Run Amok:
http://www.liveleak.com/view?i=d21_1275957165 [nofollow]


Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #369 on: December 14, 2010, 08:14:31 PM »
There seems to be a problem with embedding clips from LiveLeak with version 1.0.9 and 1.0.10 of this mod. No matter what video url I try to embed from LiveLeak I get a video of guys skiing. It's always the same video. Youtube embedding works fine so it must be a problem with LiveLeak. Is there some way to resolve this problem?

It appears there is a hardcoded link in the embedcode for the LiveLeak entry:

This
Code: [Select]
embed src="http://www.liveleak.com/e/8ee_1281467692"
should be changed to this
Code: [Select]
embed src="http://www.liveleak.com/e/$1"
If you are comfortable with making a change in the database, you can edit the record for LiveLeak in the mediapro_sites table.

Offline stevemci

  • Semi-Newbie
  • *
  • Posts: 13
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #370 on: December 14, 2010, 09:05:51 PM »
I edited the record in the mediapro_sites table and now nothing's embedding at all when I post the url for the drunken midget video. Here's the code as it exists now in the mediapro_sites table:

Code: [Select]
<object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/$1"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.liveleak.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="450" height="370"></embed></object>

Offline DaleM

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #371 on: December 14, 2010, 09:31:53 PM »
I edited the record in the mediapro_sites table and now nothing's embedding at all when I post the url for the drunken midget video. Here's the code as it exists now in the mediapro_sites table:

Code: [Select]
<object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/$1"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.liveleak.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="450" height="370"></embed></object>

Code: [Select]
<object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/$1"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.liveleak.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="450" height="370"></embed></object>
That is mine, and it looks like we match character-for-character - and mine works. Under your forum directory, there should be a folder named cache, and in that folder a file named mediaprocache.php . Delete that file and try again.

Offline stevemci

  • Semi-Newbie
  • *
  • Posts: 13
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #372 on: December 14, 2010, 10:55:18 PM »
That seems to have done the trick. Thanks for your help.

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #373 on: December 15, 2010, 08:05:33 AM »
I cant get this to work :(

I have downloaded and installed the file, is there anything I am missing. I could not get Aeva to work either ?

Any help appreciated.

Thanks

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #374 on: December 15, 2010, 09:55:02 AM »
What's happening?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline david090366

  • Semi-Newbie
  • *
  • Posts: 40
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #375 on: December 18, 2010, 02:25:03 AM »
I'm running a 1.1.12 forum and currently using the old youtube bbc mod. I would like to use this one because it adds a lot more sites, obviously. From what I read I could simply uninstall the old bbc mod and install this one and it should embed the videos that are already in posts ( the old mod used the video's links ), but, I'll wind up with unparsed bbc tags in the posts that way. Can anyone suggest a way to strip those tags out of the posts?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,782
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #376 on: December 18, 2010, 06:28:07 AM »
Use the Aeva Lite mod which should deal with that IIRC.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #377 on: December 18, 2010, 11:45:12 AM »
I'm running a 1.1.12 forum and currently using the old youtube bbc mod. I would like to use this one because it adds a lot more sites, obviously. From what I read I could simply uninstall the old bbc mod and install this one and it should embed the videos that are already in posts ( the old mod used the video's links ), but, I'll wind up with unparsed bbc tags in the posts that way. Can anyone suggest a way to strip those tags out of the posts?
How does the youtube bbc look like I could write a script to remove it.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,782
    • StoryBB/StoryBB on GitHub
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #378 on: December 18, 2010, 12:14:36 PM »
Or you could spend a few minutes bothering to look yourself, seeing how it's on the mod site.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline david090366

  • Semi-Newbie
  • *
  • Posts: 40
  • Gender: Male
Re: Simple Audio Video Embedder 1.0.10 (Dec 7) 50+ Video Sites supported!
« Reply #379 on: December 18, 2010, 03:05:15 PM »
Thank you for the reply vbgamer, you can find the mod here

http://custom.simplemachines.org/mods/index.php?mod=936