php forum
php mysql forum
php mysql smarty
 
Topic Options
#316983 - 05/16/08 06:58 PM Custom Tag - MySpace
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
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:
Code:
video:myspace


Description:
Code:
MySpace Video


User Prompt:
Code:
MySpace URL; eg: http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=xxxxxx


Matching Regex:
Code:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&VideoID=(.+?)


Resulting Markup:
Code:
<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>


_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316984 - 05/17/08 02:46 AM Re: Custom Tag - MySpace [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 303
Loc: The Netherlands
If you are not showing it in the usermenu, why bother creating a User Prompt?
_________________________

Top
#316985 - 05/17/08 02:59 AM Re: Custom Tag - MySpace [Re: blaaskaak]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
consistency wink...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316986 - 05/17/08 08:26 AM Re: Custom Tag - MySpace [Re: Gizmo]
badfrog Offline
Lurker

Registered: 03/05/07
Posts: 9
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????


Edited by badfrog (05/17/08 08:29 AM)

Top
#316987 - 05/17/08 03:24 PM Re: Custom Tag - MySpace [Re: badfrog]
jgeoff Offline
Power User

Registered: 04/05/01
Posts: 93
Loc: NJ
Originally Posted By: badfrog
ok, where do I put this custom tag?


Control Panel » Content Rebuilder » Custom Tag Editor
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0

Top
#316989 - 05/17/08 06:49 PM Re: Custom Tag - MySpace [Re: jgeoff]
badfrog Offline
Lurker

Registered: 03/05/07
Posts: 9
ok, found it, added it, still only showing the UBB code...

[video:myspace]http://myspacetv.com/index.cfm?fuseaction=vids.individual&videoid=34033760[/video]

Top
#316992 - 05/17/08 08:32 PM Re: Custom Tag - MySpace [Re: Gizmo]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5133
Loc: Portland, OR, USA
Try changing:
Code:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&VideoID=(.+?)


To:
Code:
http://myspacetv.com/index.cfm\?fuseaction=vids.individual&videoID=(.+?)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316999 - 05/18/08 09:38 AM Re: Custom Tag - MySpace [Re: Gizmo]
badfrog Offline
Lurker

Registered: 03/05/07
Posts: 9
unfortunately, didnt' seem to change anything.... frown

Top
#317001 - 05/18/08 10:58 AM Re: Custom Tag - MySpace [Re: badfrog]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 303
Loc: The Netherlands
Let's make things simpler smile

Why do we care about a correct url. We are only interested in the last parameter right? No matter what domain is entered.

Code:
.*VideoID=(.+?)


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.
_________________________

Top
#317003 - 05/18/08 12:25 PM Re: Custom Tag - MySpace [Re: blaaskaak]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Which is how Gizmo originally had it I think.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#317015 - 05/19/08 09:21 AM Re: Custom Tag - MySpace [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 303
Loc: The Netherlands
Originally Posted By: Gizmo
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 smile

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 (9 downloads)

_________________________

Top
#317016 - 05/19/08 10:20 AM Re: Custom Tag - MySpace [Re: blaaskaak]
sirdude Moderator Offline
Enthusiast

Registered: 11/08/03
Posts: 442
Loc: SoCal
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. smile
_________________________

Top


Moderator:  sirdude 
Who's Online
0 registered (), 27 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks