wethegreenpeople
Member
Posts: 80
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 19
|
Google it.
If you are a site that has a lot of people asking dumb questions that can be googled you can use this i made the one all by my self just by taking little html codes here and there i didn't type the whole thing my self im not that good at html but i didn't just copy and paste the whole code i found little html codes all over the internet
Title:
Short Description:
Code:
Allows people google something
Regular Expression:
Code:
\[google\](.*?)\[/google\]
Replacement:
Code:
<img src="http://flatclassroomproject.wikispaces.com/file/view/200px-Google_logo_transparent.png"><br>
<a href="http://www.google.com/search?q=$1" target="_blank"><div style="width:200px;height:45px;border:2px dashed blue;">
$1
</div></a>
This will make a google box thingy that so people can just click the link and it will google it for them so like you do [google]how to google something[/google] it will look like
Picture 37.png (Size: 21.61 KB / Downloads: 15)
(note the google image is transparent)
Also if you use
Code:
<img src="http://flatclassroomproject.wikispaces.com/file/view/200px-Google_logo_transparent.png"><br>
<a href="http://www.google.com/search?q=$1" target="_blank"><div style="width:200px;height:45px;border:2px dashed blue;">
Google is your friend
</div></a>
That one instead of the other one above it will show Google is your friend instead of what ever you typed in the [google] [/google] but will still google what ever you typed in the [google] [/google] you can change Google is your friend to say what ever you want.
I hope you guys like it
|
|
| 08-24-2009 03:19 AM |
|
Andii S.
LiteSoft Development Assistant
Posts: 105
Joined: Aug 2008
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 46
|
RE: Google it.
you forgot something:
regular expression *
Code:
\[google\](.*?)\[/google\]
|
|
| 08-24-2009 05:03 AM |
|
wethegreenpeople
Member
Posts: 80
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 19
|
RE: Google it.
Sorry im a n00b >,< i should put that where? If i put it in Example it doesn't work when i use [google] [/google] where do i need to put it?
|
|
| 08-24-2009 05:45 AM |
|
Svizy
Selfproclaimed MyBBSource V.I.P
Posts: 475
Joined: Aug 2009
Reputation: 1
Thanked 0 Times in 0 Posts MyBux: 805
|
RE: Google it.
(08-24-2009 05:45 AM)wethegreenpeople Wrote: Sorry im a n00b >,< i should put that where? If i put it in Example it doesn't work when i use [google] [/google] where do i need to put it?
You don't need to put it since you have a plugin that simplefiles your bbcodes. But some of use standard expresion such as snAke showed it to you. It should be replaced with "Example" or just added to the post under "Regular Expresion"
Special thanks goes to ByteHunter for making me dynamic userbar generator!
|
|
| 08-24-2009 06:39 AM |
|
wethegreenpeople
Member
Posts: 80
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 19
|
RE: Google it.
Okie thank you very much! So i just need to add those slashs and symbols right?
|
|
| 08-24-2009 08:46 AM |
|
neowarf
Junior Member
Posts: 26
Joined: Apr 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 0
|
RE: Google it.
thank you very much
I test it
|
|
| 08-24-2009 08:20 PM |
|
Svizy
Selfproclaimed MyBBSource V.I.P
Posts: 475
Joined: Aug 2009
Reputation: 1
Thanked 0 Times in 0 Posts MyBux: 805
|
RE: Google it.
(08-24-2009 08:46 AM)wethegreenpeople Wrote: Okie thank you very much! So i just need to add those slashs and symbols right?
Yes, replace
Code:
[google]{ANYTHING}[/google]
with
Code:
\[google\](.*?)\[/google\]
Its better if you do it that way since most users don't use that MyBBcode plugin that simplefies making codes
Special thanks goes to ByteHunter for making me dynamic userbar generator!
|
|
| 08-24-2009 08:38 PM |
|
b.h.
Proud Paid Member
Posts: 34
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 138
|
|
| 08-25-2009 10:11 AM |
|
wethegreenpeople
Member
Posts: 80
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 19
|
RE: Google it.
I can edit my code so instead of doing a flat out google search it will do LMGTFY you can use
Code:
<img src="http://flatclassroomproject.wikispaces.com/file/view/200px-Google_logo_transparent.png"><br>
<a href="http://www.lmgtfy.com/?q=$1" target="_blank"><div style="width:200px;height:45px;border:2px dashed blue;">
$1
</div></a>
You can use that and it will use http://lmgtfy.com
|
|
| 08-25-2009 11:19 AM |
|
malcomhfc
Junior Member
Posts: 18
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts MyBux: 22
|
RE: Google it.
Thats a good idea, im deff going to be adding this to my forum. Thanks alot
|
|
| 08-25-2009 09:53 PM |
|