Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
The UBB by default comes with a MySpace tag to parse videos only from "vids.myspace.com", if you're having trouble posting videos from "myspacetv.com" then you'll want to add the following Custom Tag (since there is already a [video:myspace] tag in the custom tags menu, we won't even be showing this in the menu)
Custom Tag:
Description:
User Prompt:
MySpace URL; eg: http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=xxxxxx Matching Regex:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&VideoID=(.+?) Resulting Markup:
<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\\1&v=2&type=video" type="application/x-shockwave-flash" width="425" height="350"></embed>
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Joined: Feb 2007
Posts: 329
If you are not showing it in the usermenu, why bother creating a User Prompt?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
consistency
...
Joined: Mar 2007
Posts: 94
Power User
Power User
Joined: Mar 2007
Posts: 94
ok, where do I put this custom tag? i don't see a custom tagas menu listed in the control panel... am I looking for a template????
Last edited by badfrog; 05/17/2008 8:29 AM .
Joined: Apr 2001
Posts: 96
Power User
Power User
Joined: Apr 2001
Posts: 96
ok, where do I put this custom tag?
Control Panel » Content Rebuilder » Custom Tag Editor
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Try changing:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&VideoID=(.+?) To:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&videoID=(.+?)
Joined: Mar 2007
Posts: 94
Power User
Power User
Joined: Mar 2007
Posts: 94
unfortunately, didnt' seem to change anything....
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Joined: Feb 2007
Posts: 329
Let's make things simpler
Why do we care about a correct url. We are only interested in the last parameter right? No matter what domain is entered.
Seems like a good enough regex for me.
The tag already defines which video service is being used, no need to double check the url.
You would only need to involve the full url if you would make a general [video] tag and the actual video service would be determined from the url entered.
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Which is how Gizmo originally had it I think.
Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety at the moment - but expanding all the time....)
Joined: Feb 2007
Posts: 329
Yarp™
Yarp™
Joined: Feb 2007
Posts: 329
The UBB by default comes with ...
Another great thing, it also comes default with an option to both export and import tags. No need for users to type in stuff
I've attached my version of the MySpace tag. Accepts both an url and just a code. Regex inspired by SD's youtube regex posted on ubbcentral.
Attachments
myspace.txt (456 Bytes, 11 downloads) SHA1: 2d9d1a89a1d0578817e51bd0015b0b7f35cd720e
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
yes, mr Yarp™ has the correct idea. i believe it's the better and in long run easier way to approach it.
for people who aren't too regex savvy, i'd recommend regexbuddy.. after playin with it for a bit, the world of regexes gets a lot more clear.
Then you can keep using it, or after awhile you kinda don't need it anymore.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
badfrog
somewhere on the coast of Maine
Posts:
94
Joined: March 2007
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays