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/O Code)
 Need Help Writing Function
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 October 2009 :  14:56:07  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I'm working on a new mod for my forum but am having trouble writing the function in inc_func_common.asp.

I think I'm getting close to making this work but need some help.

I'm basically working on a new [media] tag. What you do is place a url to virtually any video from YouTube, Dailmotion, Vimeo or any site like that and it will open in a lightbox style pop up. It will also open swf files, mp3 files, flv files, images... just about anything.

Here is what I have so far...

I know there is already a Online Video MOD but I would like to write a new one that is able to be more robust.

Anyone willing to help me on this?

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

leatherlips
Senior Member

USA
1838 Posts

Posted - 29 October 2009 :  20:45:15  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I think I got it! I may write this up as a mod if anyone has an interest in it.

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

Panhandler
Average Member

USA
783 Posts

Posted - 29 October 2009 :  20:53:45  Show Profile  Visit Panhandler's Homepage  Reply with Quote
It looks good. . .I'd be interested in trying it out.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 30 October 2009 :  01:36:11  Show Profile  Reply with Quote
Looks nice. I'll be happy to play with it, myself.
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 30 October 2009 :  06:15:08  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Great! Sometime over the weekend I'll post what I have and maybe you guys could help me improve it.

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

phoenixtaz13
Junior Member

129 Posts

Posted - 17 December 2009 :  13:32:56  Show Profile  Reply with Quote
good day to all..... :)

any update on this?.....
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 19 December 2009 :  13:31:26  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I kind of let this go. I'll post what I have done in the next week or so during my break.

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

leatherlips
Senior Member

USA
1838 Posts

Posted - 20 January 2010 :  19:43:56  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I finally got around to putting this together although it is still in BETA. You can get it from here:

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=317

Please post any issues or fixes here so I can take it out of beta.

Thanks!

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

Etymon
Advanced Member

United States
2385 Posts

Posted - 21 January 2010 :  06:05:08  Show Profile  Visit Etymon's Homepage  Reply with Quote
This looks promising! Thank you for the hard work leatherlips!
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 22 January 2010 :  05:29:44  Show Profile  Visit Etymon's Homepage  Reply with Quote
I have some code for you ...

See how your MOD looks here: http://www.rba-licking.com/topic.asp?TOPIC_ID=53
(this is a temporary post for the purpose of this reply - will be deleted later)

Play with a mock test post here: http://www.rba-licking.com/post.asp?method=Topic&FORUM_ID=33

Use the following icon (on the web site above) to insert a file into the [media][/media] tags:

Use the following .swf file (from the American Sign Language web site) to test the MOD:
http://www.aslpro.com/religious/f/forgiveness.swf


Additional MOD Code:


Reminder Note: Remember to include your .js files in inc_header_short.asp as well.


inc_code.js

function mediabox() {
var text = getText();
if (helpstat) {
alert("Media Tag plays various media formats.\n\nUSE: [media]http://www.domaingoeshere.com/media.swf[/media]");
} else if (basic) {
AddTxt="[media]" + text + "[/media]";
AddText(AddTxt);
} else {
if (text) {
txt=prompt("URL Link to media file.",text);
} else {
txt=prompt("URL Link to media file.","Text");
}
if (txt!=null) {
AddTxt="[media]"+txt+"[/media]";
AddText(AddTxt);
}
}
}



inc_iconfiles.asp

Const strIconEditorMediaBox = "icon_editor_media_box.gif|23|22"



inc_post_buttons.asp


		Response.Write     "<a href=""Javascript:mediabox();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorMediaBox,"Insert Media","align=""top""") & "</a>" & vbNewLine



mediaboxAdv_1.1.6.js

//          playerpath: 'http://www.yoursite.com/forum/media/player.swf', // Path to the mediaplayer.swf or flvplayer.swf file
playerpath: '<% =strForumURL %>', // Path to the mediaplayer.swf or flvplayer.swf file



// NBpath: 'http://www.yoursite.com/forum/media/NonverBlaster.swf', // Path to NonverBlaster.swf
NBpath: '<% =strFourmURL %>media/NonverBlaster.swf', // Path to NonverBlaster.swf



inc_func_common.asp

If you want force the Play Media link to flow in a sentence next to other text as in the following example:

My Media - Play Media

... instead of ...

My Media -
Play Media


... then alter the original MOD code like the code below:

'   CodeTags(1,1,2) = "<div><script language=""javascript"">EmbedMedia("""
' CodeTags(1,2,2) = """,290,300,false)</script></div><div></div>"

CodeTags(1,1,2) = "<script language=""javascript"">EmbedMedia("""
CodeTags(1,2,2) = """,290,300,false)</script>"



Edited by - Etymon on 22 January 2010 06:07:04
Go to Top of Page

Giumer
Junior Member

Italy
163 Posts

Posted - 22 January 2010 :  12:48:21  Show Profile  Send Giumer an ICQ Message  Reply with Quote
hi all i am have installad this mod look this topic http://www.giumer.it/forum/topic.asp?TOPIC_ID=173 only 1 info for firefox not look ? or iam not good instalation ? thx ! sorry for me english

=======================
http://www.Giumer.it/forum

=======================
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 22 January 2010 :  15:55:28  Show Profile  Visit leatherlips's Homepage  Reply with Quote
I just looked at your site Giumer with Firefox. The first time I clicked it, the pop up box was empty. The second time I clicked it, it worked.

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

Giumer
Junior Member

Italy
163 Posts

Posted - 22 January 2010 :  23:59:19  Show Profile  Send Giumer an ICQ Message  Reply with Quote
Thank you for responding but I think it is ok to some problem?

leatherlips problem this mod conflit for yuor mod automatic tag ! remember ? and yuo send file all estension and utomatic upload insert tag for this mod not automatic tag i 'am leave

=======================
http://www.Giumer.it/forum

=======================

Edited by - Giumer on 23 January 2010 03:17:20
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 23 January 2010 :  08:25:52  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Etymon, thanks for the additional code and the button. I have to ask though, what does the M B Stand for? I can think of Media, but I don't know about the B. I also have another button in mind that I may use.

Giumer, I do not know what you mean.

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

Giumer
Junior Member

Italy
163 Posts

Posted - 23 January 2010 :  10:03:42  Show Profile  Send Giumer an ICQ Message  Reply with Quote
YEAAAAAAAA!!!!!!!! thx all mate ! look this post

http://www.Giumer.it/forum/topic.asp?TOPIC_ID=173




=======================
http://www.Giumer.it/forum

=======================

Edited by - Giumer on 23 January 2010 11:52:39
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 23 January 2010 :  12:58:08  Show Profile  Visit Etymon's Homepage  Reply with Quote
I think the comments in your code have Media Box. The B stands for Box.
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07