MyBB Community Forums

Full Version: lmgtfu MY code problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am using these as the details

Name lmgtfu

Regular expression
\[google\](.*?)\[/google\]

Replacement

<input type="button" value="Google It!" onclick="window.open('http://letmegooglethatforyou.com/?q=$1')" />

I want it to convert anything to lmgtfu link, is there any problem with the code i used ?
for the above code, if you put something with google tags then it works ... eg. [google]search word[/google]

for the replacement code try below for showing what is supposed to be searched :
<input type="button" value="Google $1" onclick="window.open('http://letmegooglethatforyou.com/?q=$1')" />