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

Registered: 01/10/00
Posts: 5115
Loc: Portland, OR, USA

   Custom Tag - MySpace to Del.icio.us Add to del.icio.us
  Digg Custom Tag - MySpace Digg it
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
Member

Registered: 02/25/07
Posts: 285
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 Offline
Wizard

Registered: 01/10/00
Posts: 5115
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 Offline
Wizard

Registered: 01/10/00
Posts: 5115
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
Member

Registered: 02/25/07
Posts: 285
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: 2570
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
Member

Registered: 02/25/07
Posts: 285
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: 439
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
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top


Moderator:  sirdude 
Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 36 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks