Quote:
Originally Posted by aayushagrawal90
Mate, I gave u code after testing.
You need to create plugin to make it work
Plugin Hook: postbit_display_complete
Product: Vbulletin
Title: Video Domain Changer
Code
Code:
$post['message'] = preg_replace('/http:\/\/(.*?)youtube.com\/watch\?v\=/', 'http://mydesi.tv/youtube.php?id=', $post['message']);
|
Hey I'm not sure what you mean by create plugin.. I don't know how to do that , what I did was went to Styles , and in my current style I selected create a new template , and I named it postbit_display_complete , and put that code in the body.. Is that how I'm suppose to do ? here's the pictures how I did it..
http://img17.imageshack.us/img17/6350/postreplace.png
If not please tell me how to create a plugin.. can you create one for me with that code and send so I can just import plugin and products ? thanks , really appreciate all the replies