https://www.icyphoenix.com/viewtopic.php?f=35&t=6407&p=43993#p43993
-----------------------------------
Phess
Fri 04 Sep, 2009 15:52

Re: Adding BBCodes In Icy Phoenix 1.3.0.53
-----------------------------------
Here is the "function" in templates/common/bbcb_mg.js:

[code linenumbers=false]function BBCmegavideo()
{
	var FoundErrors = '';
	var enterURL = prompt(s_megavideo_insert, s_id_insert_tip);
	if (!enterURL)
	{
		FoundErrors += s_id_insert_error;
	}
	if (FoundErrors)
	{
		alert(s_gen_error + FoundErrors);
		return;
	}
	var ToAdd = "[megavideo]"+enterURL+"[/megavideo]";
	PostWrite(ToAdd);
}[/code]

And here is the code that add the video in the post (includes/bbcode.php), but I see the video, I need the button  :cry: :

[code linenumbers=false]				elseif ($tag === 'megavideo')
				{
					$html = '<object width="640" height="480"><param name="movie" value="http://www.megavideo.com/v/' . $content . '.800360084.3" /><embed src="http://www.megavideo.com/v/' . $content . '.800360084.3" type="application/x-shockwave-flash" width="640" height="480"></embed></object><br /><a href="http://megavideo.com/?v=' . $content . '" target="_blank">Link</a><br />';
				}[/code]

I think you want these codes, if I'm wrong and you want other codes, just tell me.

Thanks.


