News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

YouTube BBC Tag (XHTML Compliant)

Started by Daniel Marquard, January 03, 2007, 09:18:19 AM

Previous topic - Next topic

mormam

#400
Thanks Marlon for this mod  :D

I modified the original to read Veoh Videos (in attachment), if you want you could merge the code and create one with the two options.

dark angel dk

I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!

tondelo

When I upgraded to 1.1.3 my settings were  all gone and it didn't show it was installed. I re-installed it and then modified my Subs.php and I was good to go.

Quote from: dark angel dk on August 03, 2007, 02:00:48 PM
I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!
Quote from: dark angel dk on August 03, 2007, 02:00:48 PM
I have a lil prob. with it! I have the 1.1.3. and it wont even say that it has installed it!

dark angel dk

Cannot find those files to change too...! I need someone to help me!!!!

tondelo

subs.php was in my <forumroot>/Sources/

Quote from: dark angel dk on August 03, 2007, 03:41:03 PM
Cannot find those files to change too...! I need someone to help me!!!!

dark angel dk

think i will just give up on it. Have found the sub. but cannot find the files in it that i have to change. And same with in the post.template. Unless someone can help me with install and change the files for me

Tick

Is there a way to make the video so when  you embed it in the post it sends  a thumbnail to the subject line on the message index.  THanks Tick.

Carver

Nice Job on the mod Works Great !

Almost too great.. I have to keep policing the files.. is there anyway to lock this mod down so only admins can use it ?
That way the guys could PM the URL for the vids they want posted and I can make sure I will not be ashamed or jailed for it's being on the site....

Thanks...

Chantal Matar

Hi guys, I have installed this on 1.1.3 - all good so far.  Have posted a video which shows up but doesn't play!  ???

Any idea why this is happening?  It has done with every other video I've tried.

http://ps3smalltalk.com/index.php?topic=1052.0

Thanks.

Kindred

1- we apparently can not view that site without registering.
2- did you use the correct code to post the video?
3- is the video allowed to be called externally? Some youtube users turn off external access
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Chantal Matar

Hi Kindred, thanks for you reply. 

I was coming back on here to post something I just found out:

If you use Firefox (which I do) and you haven't upgraded to the new Firefox 2, the mod won't work for you. I just upgraded and it works perfectly.

Just go to www.Firefox.com for the link.


I don't know what it's like on IE.  I'm just going to check.... It's works well.  I have the IE7 which is the lastest one.


I hope this information helps some of you!

webbhawk

I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?

HighCast

So here we go. I'm running SMF 1.13 with a bit modified..it speaks another language and uses wowdk theme. After installing this mod, I keep getting the following errors to error log and the mod does not work. I've modified the files as shown in description and the youtube button is there..but the modification to SHOW the videos is not working:

http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

512: package_flush_cache(): some files are still not writable
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1905
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

2: fopen(Themes/default/images/bbc/youtube.gif) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip
2: copy(Themes/default/images/bbc/youtube.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1025
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip

2: fclose(): supplied argument is not a valid stream resource
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1908
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip
2: fopen(/usr/home/tla/public_html/ar/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901

Daniel Marquard

Quote from: HighCast on August 18, 2007, 05:56:58 AM
So here we go. I'm running SMF 1.13 with a bit modified..it speaks another language and uses wowdk theme. After installing this mod, I keep getting the following errors to error log and the mod does not work. I've modified the files as shown in description and the youtube button is there..but the modification to SHOW the videos is not working:

http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

512: package_flush_cache(): some files are still not writable
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1905
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip

2: fopen(Themes/default/images/bbc/youtube.gif) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901
   
http://URL/index.php?action=packages;sa=install2;package=yt_bbc_xhtml_1.0.zip
2: copy(Themes/default/images/bbc/youtube.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1025
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip

2: fclose(): supplied argument is not a valid stream resource
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1908
   
http://URL/index.php?action=packages;sa=install;package=yt_bbc_xhtml_1.0.zip
2: fopen(/usr/home/tla/public_html/ar/Themes/default/languages/Modifications.english.php) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied
File: /usr/home/tla/public_html/ar/Sources/Subs-Package.php
Line: 1901

Some other mods are interfering with the functionality of my mod.  My mod is fine; however, one or more of your other mods aren't.

webbhawk


Kindred

Quote from: webbhawk on August 17, 2007, 05:45:29 PM
I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?

in modifications.english.php, move the ?> in that file to the end of the file...

as for the youtube button not showing up, are you uysing the default theme?  If not, you will have to manually apply the mod to your theme's post.template.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

webbhawk

Quote from: Kindred on August 19, 2007, 08:46:12 AM
Quote from: webbhawk on August 17, 2007, 05:45:29 PM
I installed the mod using the package manager and the tag works fine if you type it in but I don't have a button and $txt['youtube'] = 'YouTube'; is in the top left corner of all my pages. I know this probably has something to do with modifications.english.php but i don't have that file. i have settings.english.php

any help?

in modifications.english.php, move the ?> in that file to the end of the file...

as for the youtube button not showing up, are you uysing the default theme?  If not, you will have to manually apply the mod to your theme's post.template.php
I don't have a modifications.english.php. I'm using the template back in black by crip. There is a settings.english.php
Is there somewhere I can get that file and add it to the directory?


Where else would that code be showing up since i don't have the above metioned file?

tatore

#417
Give a look into themes >>default >>languages >>Modifications.(yourlanguage).php
You have it for sure (Modifications.english.php is always there).
As Kindred said, before "?>"(end of file), put:
$txt['youtube'] = 'YouTube';
It doesn't matter about your actual used theme..the added strings are "recalled" from default theme folder.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

webbhawk

 :-[

I'm soooo stupid.

I was looking in my back-in-black directory. I never even thought to look in the default folder.

Thanks guys!

tatore

*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Advertisement: