Hi again
update 21.09.20007 @ 15:00
This morning I made a second edition which used swfobject. After I found some bugs I decided to rewrite this mod using regular expressions. So this new version 1.10 is only for swfobject. In future there will be only updates for the swfobject-version!
Using swfobject is better for end users because they don't have to click to activate the flash. So for example in the youtube videos users normally have to (click) active the flash and then (click) to play the movie. With swfobject the user just have to click once and then the movie is directly played.
---
MOD-Name: MXM_Youtube_SWFObject
MOD-Description: Allows users to post simple youtube links (and converts them to flash-embeds). Using SWFObject (
http://blog.deconcept.com/swfobject) to display flash-movies
Version / Date: 1.20/ 24.09.2007
---
Installation
- Download the zip file http://www.teraweb.ch/MXM_mods/MXM_youtube_swfobject.zip and unzip the content of this file to the /mods folder in forum root path.
- Download SWFObject (http://blog.deconcept.com/swfobject/swfobject.zip) and extract the file "swfobject.js" to the /mods folder.
- Open the file "/includes/header.asp" and search for the following lines
<meta http-equiv="Content-Script-Type" content="text/javascript" /> <script language="javascript" src="includes/default_javascript_v9.js" type="text/javascript"></script> |
- Add the following line AFTER the two lines above (if this line does exist don't insert it a second time!)
<script type="text/javascript" src="mods/swfobject.js"></script> |
- Open the file "/mods/MXM_mods.asp". Add the following line:
<!-- #include file="MXM_youtube_swfobject.asp" --> |
- Open the file "/forum_posts.asp" and search for the following lines (around line 968):
'If we are showing ads increase by 1 If intCurrentRecord = 0 AND (blnACode OR strMyGoogleAdSenseID <> "pub-9026955576675812") Then intPostRowsSpan = intPostRowsSpan + 1
|
- Add the following line AFTER the two lines above
strMessage = MOD_MXM_Youtube_swfobject(strMessage, lngMessageID) |
---
MOD-Name: MXM_Youtube
MOD-Description: Allows users to post simple youtube links (and converts them to flash-embeds)
Version / Date: 1.01/ 21.09.2007 [OLD RELEASE - NO NEW VERSIONS -> USE SWFOBJECT EDITION]
---
Installation
- Download the zip file http://www.teraweb.ch/MXM_mods/MXM_youtube.zip and unzip the content of this file to the /mods folder in forum root path.
- Open the file "/mods/MXM_mods.asp". Add the following line:
<!-- #include file="MXM_youtube.asp" --> |
- Open the file "/forum_posts.asp" and search for the following lines (around line 968):
'If we are showing ads increase by 1 If intCurrentRecord = 0 AND (blnACode OR strMyGoogleAdSenseID <> "pub-9026955576675812") Then intPostRowsSpan = intPostRowsSpan + 1
|
- Add the following line AFTER the two lines above
strMessage = MOD_MXM_Youtube(strMessage) |
---
Edited by mxm.Kosh - 24 September 2007 at 8:58am