Shoutbox

[google] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: [google] (/showthread.php?tid=23350)

[google] by saralk on 04-05-2004 at 07:28 PM

Could there be a BBCode that lets you just type [google]search term[/google] and it will automatically make a link to search google (in this case http://www.google.com/search?q=search+term)


RE: [google] by Menthix on 04-05-2004 at 07:33 PM

Good idea actually (y). I Like it.


RE: [google] by kao on 04-05-2004 at 07:54 PM

are you too lazy to open a new tab/IE window, and get the url then paste it here? :undecided:


RE: [google] by martin on 04-05-2004 at 08:42 PM

i posted the code for it in a thread about a month ago. give me a few mins to look for it again. but its up to DZ to add it to the forum thou


RE: [google] by Pr0xY on 04-05-2004 at 08:44 PM

that would be kind of usefull for me, since google is my 3rd internet home besides this forum and ..... well, you dont need to know the other site


RE: [google] by martin on 04-05-2004 at 08:50 PM

opps me didn't post it so

code:
$patterns[] = "#\[google\](.*?)\[/google\]#si";
$replacements[] = '<a href="http://www.google.com/search?q=\1" target="_blank">\1</a>';

RE: [google] by EvilSeph on 04-05-2004 at 09:22 PM

If he adds that, you'll probably request something like [google=url+to+WDZ+search]Look, it's WDZ![/google]

that makes a link with "Look, it's WDZ" that directs to the google search on WDZ =)

which is pretty easy to do, but one thing leads to another. As always. Poor WDZ =P


RE: [google] by kao on 04-05-2004 at 11:04 PM

i like the sounds of EvilSeph's idea aswell :P would be handy occasionally - especially along side the good old :google: emote (H) :P


RE: [google] by Sk3tch on 04-05-2004 at 11:18 PM

quote:
Originally posted by martin
opps me didn't post it so
code:
$patterns[] = "#\[google\](.*?)\[/google\]#si";
$replacements[] = '<a href="http://www.google.com/search?q=\1" target="_blank">\1</a>';

thats good (Y)
i think it would be handy :P
quote:
Originally posted by EvilSeph
If he adds that, you'll probably request something like [google=url+to+WDZ+search]Look, it's WDZ![/google]
:lol:
RE: [google] by lylesback2 on 04-05-2004 at 11:40 PM

couldn't it auto mask?
kinda like
[google]lylesback2[/google]
lylesback2
?????


RE: [google] by marissa on 04-06-2004 at 12:09 AM

Yeah. I think thats what he means...but with the search results. right?


RE: [google] by Chrono on 04-06-2004 at 12:16 AM

lol awesome idea.
would be well-complemented with the :google: emote (Y)


RE: [google] by martin on 04-06-2004 at 04:50 AM

im sure i posted the code when the img was introduced where it put in the :google: