Need Help Writing Function - Posted (6905 Views)
Senior Member
leatherlips
Posts: 1838
1838
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?
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
leatherlips
Posts: 1838
1838
I looked a little closer at your media function in your inc_func_common.asp file and I think I found the problem. You are missing the line in red:

Code:
strArray2 = split(strArray(counter2), cTag, -1)
strCodeText = trim(strArray2(0))
Also, in the mediaboxAdv-1.1.6.js file, the two places where you enter your URL, I would recommend not using the <% =strForumURL %>. Instead put in the address manually. For some reason the <% =strForumURL %> doesn't always work when it looks for the swf files.
Posted
Advanced Member
Carefree
Posts: 4224
4224
That was it - don't know how I lost that line, thanks.
Posted
Advanced Member
Carefree
Posts: 4224
4224
Well they found another bug in it. If a URL has a space (whether depicted as a space or as %20), the character is double-encoded and results as %2520. I cannot find where it's happening.
Posted
Junior Member
thermal_seeker
Posts: 430
430
I'm not sure what's happening but when a vid is playing in the box the page number disappears and a large brown section appears below the forum footer. Also I notice it will play an .mp4 that is hosted elsewhere but doesnt play the same vid from a folder on site.


Dave
No good at coding, but I can plough a field !!
You Must enter a message