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); } } }
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.
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.<
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.
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. <