Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MXM-MODS Youtube Links (enhanced) [update]
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MXM-MODS Youtube Links (enhanced) [update]

 Post Reply Post Reply
Author
mxm.Kosh View Drop Down
Newbie
Newbie
Avatar

Joined: 27 September 2006
Location: Switzerland
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote mxm.Kosh Quote  Post ReplyReply Direct Link To This Post Topic: MXM-MODS Youtube Links (enhanced) [update]
    Posted: 20 September 2007 at 5:52pm
Hi again
 
Here's the next mod based up on our mod-system (http://forums.webwiz.net/forum_posts.asp?TID=24464). Please read first the basic-installation!
 
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
  1. 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.
  2. Download SWFObject (http://blog.deconcept.com/swfobject/swfobject.zip) and extract the file "swfobject.js" to the /mods folder.
  3. Open the file "/includes/header.asp" and search for the following lines
    Quote <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <script language="javascript" src="includes/default_javascript_v9.js" type="text/javascript"></script>
  4. Add the following line AFTER the two lines above (if this line does exist don't insert it a second time!)
    Quote <script type="text/javascript" src="mods/swfobject.js"></script>
  5. Open the file "/mods/MXM_mods.asp". Add the following line:
    Quote <!-- #include file="MXM_youtube_swfobject.asp" -->
  6. Open the file "/forum_posts.asp" and search for the following lines (around line 968):
    Quote
    'If we are showing ads increase by 1
    If intCurrentRecord = 0 AND (blnACode OR strMyGoogleAdSenseID <> "pub-9026955576675812") Then intPostRowsSpan = intPostRowsSpan + 1
  7. Add the following line AFTER the two lines above
    Quote 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
  1. 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.
  2. Open the file "/mods/MXM_mods.asp". Add the following line:
    Quote <!-- #include file="MXM_youtube.asp" -->
  3. Open the file "/forum_posts.asp" and search for the following lines (around line 968):
    Quote
    'If we are showing ads increase by 1
    If intCurrentRecord = 0 AND (blnACode OR strMyGoogleAdSenseID <> "pub-9026955576675812") Then intPostRowsSpan = intPostRowsSpan + 1
  4. Add the following line AFTER the two lines above
    Quote strMessage = MOD_MXM_Youtube(strMessage)

---



Edited by mxm.Kosh - 24 September 2007 at 8:58am
Back to Top
-XIV- View Drop Down
Newbie
Newbie


Joined: 18 August 2007
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote -XIV- Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 7:04pm
So this is an ehancement (to be easier) than the "" bracket options that we already had?
 
 
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 8:44pm
how does this mod work?

as its very easy to add youtube videos as you can see from my tutorial on how to Add YouTube Videos to your posts
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
mxm.Kosh View Drop Down
Newbie
Newbie
Avatar

Joined: 27 September 2006
Location: Switzerland
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote mxm.Kosh Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2007 at 8:35am

I made this mod because one of our customer requested that the integration of youtube videos has to be simpler. It was no idea that users user the [ tube ] - tags. The customer wanted that the users only have to put the full url (copied from the browser-address-bar) into the post...

Back to Top
javi712 View Drop Down
Senior Member
Senior Member


Joined: 22 May 2003
Location: United States
Status: Offline
Points: 488
Post Options Post Options   Thanks (0) Thanks(0)   Quote javi712 Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2007 at 4:42pm
mxm - will your mod allow both integration of a full url copied from a browser and the ability to add video using the [*tube] [/*tube] tags aswell?
Back to Top
mxm.Kosh View Drop Down
Newbie
Newbie
Avatar

Joined: 27 September 2006
Location: Switzerland
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote mxm.Kosh Quote  Post ReplyReply Direct Link To This Post Posted: 24 September 2007 at 8:58am

@javi712:

I don't know at this moment if this works because we've disabled the bb-code for youtube-videos. I'll test this when I have the time to do this =)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.