Current time: 07-04-2009, 02:27 PM Hello There, Guest! (LoginRegister)


Post Reply 
mycode help
09-02-2008, 08:38 AM (This post was last modified: 09-02-2008 08:39 AM by pripatel93.)
Post: #1
mycode help
hello, i want to make a code for example like

[video]http://community.mybboard.net/thread-37140.html[/video]

i want it so that it will support any url link. and that when you use the code [video] a button will appear in the thread. so when u use [video][/video] code. it will get a default image that i set. and use the url . so when u click the button it will automatically re-direct you to a site.


[Image: 80v7iq1.png]


i want it like the example above. but it takes too much code for the button above.
Code:
[url=http://community.mybboard.net/thread-37140.html]
[img]http://i5.tinypic.com/80v7iq1.png[/img][/url]

where i would just like it as
Code:
[video]http://community.mybboard.net/thread-37140.html[/video]
Find all posts by this user
Quote this message in a reply
09-02-2008, 10:40 AM
Post: #2
RE: mycode help
Try this

Regular Expression:
Code:
\[video\](https?\://[^["<>]+?)\[/video\]
Replacement:
Code:
<a href="$1"><img src="myimage.jpg" alt="" /></a>
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: