Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google it.
Author Message
wethegreenpeople
Member


Posts: 62
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 43
Post: #1
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:

Code:
Google it!

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: 9) (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

(This post was last modified: 08-25-2009 12:34 AM by wethegreenpeople.)
08-24-2009 03:19 AM


snAke
LiteSoft Development Assistant


Posts: 101
Joined: Aug 2008
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 40
Post: #2
RE: Google it.

you forgot something:
regular expression *

Code:
\[google\](.*?)\[/google\]




[Image: snAke.png]
08-24-2009 05:03 AM
wethegreenpeople
Member


Posts: 62
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 43
Post: #3
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 MyBB Code Expert


Posts: 239
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 383
Post: #4
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: 62
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 43
Post: #5
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
Post: #6
RE: Google it.

thank you very much
I test it

08-24-2009 08:20 PM
Svizy
Selfproclaimed MyBB Code Expert


Posts: 239
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 383
Post: #7
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.
Premium User


Posts: 22
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 122
Post: #8
RE: Google it.

OR....if you are feeling cheeky...you can just post this link in the thread..

http://www.lmgtfy.com/?q=show+me+how+to+google

08-25-2009 10:11 AM
wethegreenpeople
Member


Posts: 62
Joined: Jul 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 43
Post: #9
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

(This post was last modified: 08-25-2009 11:21 AM by wethegreenpeople.)
08-25-2009 11:19 AM
malcomhfc
Junior Member


Posts: 11
Joined: Aug 2009
Reputation: 0
Thanked 0 Times in 0 Posts
MyBux: 8
Post: #10
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
 




New to MyBBSource?Need Assistance?
  • Mark Forums Read
  • View Forum Staff
  • Looking for a MyBB Host?




Theme created by AK-47. Find more great themes and skins at K! Dezign Web Design
Wordpress Web Design
Youtube Video Free Bet Football Betting R1s