Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 YouTube forum code
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 7

leatherlips
Senior Member

USA
1838 Posts

Posted - 30 August 2007 :  19:45:05  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I got it to work with Safari. I did have the YouTube function at the very bottom of inc_code.js.
I put it in a different spot higher up, after the strike function, and it worked.
I also changed it a little bit to make the directions more clear for the users.
Here is what I did:

//YouTube MOD below

function youtube() {
var text = getText();
if (helpstat){
alert("YouTube tag inserts a video hosted by YouTube into the post.\n\nExample: [youtube]gJmX1z1NY2c[/youtube]\n\nDo NOT insert the entire YouTube link. ONLY insert the code in the URL that appears after the equals sign (=).\n\nExample: DO NOT enter http://www.youtube.com/watch?v=aWZ8xlc2-0s. Instead look for what comes after the = sign, which in this case would be aWZ8xlc2-0s.");
} else if (basic) {
AddTxt="[youtube]" + text + "[/youtube]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("Only insert the section of the URL that appears after the equals sign (=).",text);
} else {
txt=prompt("Enter the YouTube identification code for your video.","Only insert the section of the URL that appears after the equals sign (=).");
}
if(txt!=null) {
AddTxt="[youtube]"+txt+"[/youtube]";
AddText(AddTxt);
}
}
}

//YouTube Mod above
<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 30 August 2007 19:45:45
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 31 August 2007 :  04:32:51  Show Profile  Visit MarcelG's Homepage  Reply with Quote
quote:
Originally posted by AnonJr

I know Marcel was working on something like that... I'm not sure if he finished.
Yep, I'm still working on it.
The current *yet unreleased* code allows posting videos by means of the entire YouTube code, YouTube permaurl and DailyMotion code inbetween de [video][/video] brackets.

Still trying to find the time to release it as a mod, however the code is all online already: http://oxle.com/source.asp?page=inc_func_common.asp (demo/demo)<

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

lucapan
Starting Member

9 Posts

Posted - 31 August 2007 :  05:24:41  Show Profile  Visit lucapan's Homepage  Reply with Quote
quote:
Originally posted by leatherlips

I got it to work with Safari. I did have the YouTube function at the very bottom of inc_code.js.



Maybe safari was loading a cached version... it happened to me with ie... after pushing "refresh" it worked fine.

quote:

Is it possible to allow members to insert the entire YouTube URL?



I agree it would be fine (and simpler for users).
I will try to do that as soon as possibile (maybe in the weekend).

Thanks for the support.

<

http://www.gpfun.net
GP Races with Grand Prix Legends
Go to Top of Page

Webbo
Average Member

United Kingdom
982 Posts

Posted - 31 August 2007 :  19:05:09  Show Profile  Visit Webbo's Homepage  Reply with Quote
Well, so far so good and working well

I must agree though if the full URL could be added it would make it a lot more user friendly<
Go to Top of Page

lucapan
Starting Member

9 Posts

Posted - 01 September 2007 :  10:13:18  Show Profile  Visit lucapan's Homepage  Reply with Quote
quote:
Originally posted by Webbo


I must agree though if the full URL could be added it would make it a lot more user friendly



Done! See the first post (there is only one zip file now).

Bye.<

http://www.gpfun.net
GP Races with Grand Prix Legends
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 September 2007 :  10:50:12  Show Profile  Visit modifichicci's Homepage  Reply with Quote
Very nice! I have installed first version and it's ok, with the second version, what happens with links like
http://it.youtube.com/watch?v=SWp4LXmm8-0 ?<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 September 2007 :  13:51:04  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Perfect! Now it looks like you can either insert only the unique YouTube code or the entire URL! Thank you!

With regards to modifichicci:

I tried your link and it worked just fine!<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 01 September 2007 :  14:02:01  Show Profile  Visit modifichicci's Homepage  Reply with Quote
Thanks.. I will apply changes<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

Berrie
Starting Member

Netherlands
22 Posts

Posted - 02 September 2007 :  07:31:19  Show Profile  Visit Berrie's Homepage  Reply with Quote
quote:
Originally posted by lucapan



Done! See the first post (there is only one zip file now).

Bye.



What is different in the code compared to version 1? Version 1 with only the hash code is already running at my site.

Very nice MOD!<

My site: www.berrie.eu
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 02 September 2007 :  09:00:35  Show Profile  Visit leatherlips's Homepage  Reply with Quote
The newer version allows you to enter the entire YouTube URL. If you already installed version 1, then just replace what goes in to inc_func_common.asp.<

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

Berrie
Starting Member

Netherlands
22 Posts

Posted - 02 September 2007 :  09:43:06  Show Profile  Visit Berrie's Homepage  Reply with Quote
Thanks mate!<

My site: www.berrie.eu
Go to Top of Page

RArch
Junior Member

United Kingdom
103 Posts

Posted - 02 September 2007 :  12:07:35  Show Profile  Reply with Quote
Thanks from me too

Anybody running the Themes mod (like SHN forum) will need to edit each theme asp file (eg. theme_default.asp, theme_desert_like.asp etc.) and add this line.

strIconEditorYouTube = "icon_editor_youtube.gif|46|22

And also copy the icon_editor_youtube.gif file to each theme image folder.
<
Go to Top of Page

skellyx
Starting Member

24 Posts

Posted - 09 September 2007 :  06:18:47  Show Profile  Reply with Quote
Luca it is splendid and it works very well
Esempio di una cosa semplice da installare e che funziona bene ( sorry for italian language)Bravissimo Luca e grazie.
<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 26 October 2007 :  08:02:55  Show Profile  Reply with Quote
Sorry to sound totally dumb, can someone tell me where in inc_func_common.asp the script section starts? so I know where to add the mod? cheers.<
Go to Top of Page

thelodger
Junior Member

United Kingdom
296 Posts

Posted - 26 October 2007 :  10:21:39  Show Profile  Reply with Quote
Oh I found it all is great other than the button doesnt work, I get a javascript error.<
Go to Top of Page
Page: of 7 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07