Quote:
Originally Posted by Desi-Home
Thanks so much now I know where to add the plugins.. that worked like a charm.. I need a little more help , actually the tv shows I get from another site are posted like this
http://h-q.tv/go/dm.php?id=xjowsg which should change to http://mydesi.tv/dm.php?url=xjowsg
I tried playing around with that code to see if it works by replacing youtube code etc.. but it gives me error.. can you help me me please ?
As well I see the following error on top of the page in threads when I replace your code with http://h-q.tv/go/dm.php?id
Parse error: syntax error, unexpected ']' in /home/mydesitv/public_html/includes/class_postbit.php(288) : eval()'d code on line 14
|
hmm, preg_replace will be hard for you if u don't know anything about it.
use this str_replace as suggested by
TheWindows7Site
You can try this code
Code:
$post['message'] =
str_replace('h-q.tv/go/dm.php?id', 'mydesi.tv/dm.php?url', $post['message']);