News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

LMGTFY (Let Me Google That FOR You) BBCode

Started by S3NTYN3L, October 29, 2010, 06:48:19 PM

Previous topic - Next topic

S3NTYN3L

Link to Mod

LMGTFY BBCode

Latest Version: 3.7.4
Compatible With SMF: 1.1.X, 2.X


Summary

The LMGTFY BBCode mod allows you to create a link to http://www.lmgtfy.com.
With these tags, you no longer need to take the time to visit the LMGTFY website.

How it Works:
[lmgtfy]Search For This[/lmgtfy]
[lmgtfy=Search For This]Cleverly Hidden LMGTFY Link[/lmgtfy]

Results in:
Search For This
Cleverly Hidden LMGTFY Link


There is an option to select the link output type:

" Use TinyURLs in LMGTFY BBCode links? "

Check the box to use TinyURLs. (default)
Uncheck to use the lmgtfy.com link.

In SMF 1.1.X, the option can be found at: Admin > Features and Options > LMGTFY BBCode
In SMF 2.X, the option can be found at: Admin > Configuration > Modification Settings > LMGTFY BBCode



Special thanks

A very special thank you goes out to Onijin for helping me make this work with TinyURL!
Thanks man, I definitely wouldn't have done this without you! ;)



Changelog

+06/11/2012 - Updated package for SMF 1.1.18 & SMF 2.0.4 compatibility
+01/29/2012 - Updated package for SMF 1.1.16 & SMF 2.0.2 compatibility
+10/08/2011 - Updated package for SMF 1.1.15 & SMF 2.0.1 compatibility
+06/12/2011 - Updated package for SMF 1.1.14 & SMF 2.0 compatibility
+02/21/2011 - Updated package for SMF 1.1.13, SMF 2.0 RC4 Security Patch & SMF 2.0 RC5 compatibility
+01/01/2011 - Corrected code due to settings save not redirecting properly
+12/16/2010 - Corrected code in attempt to limit errors due to forum server config
+12/14/2010 - Added option to enable/disable use of TinyURL.com links as output
+12/08/2010 - Rewrote code to hide the LMGTFY URL via TinyURL
+11/13/2010 - Updated package for SMF 1.1.12 & SMF 2.0 RC4 compatibility
+10/27/2010 - Corrected code due to error log entries in SMF 2.0 RC2 & SMF 2.0 RC3
+10/25/2010 - Updated package for SMF 2.0 RC2, SMF 2.0 RC3 compatibility
+10/24/2010 - Created mod for SMF 1.1.11



Files effected by this mod

SMF 1.1.X
./$languagedir/Modifications.English.php
./$sourcedir/ModSettings.php
./$sourcedir/Subs.php
./$themedir/Post.Template.php
lmgtfy.gif added to $ImagesDir/bbc

**If using this with a custom theme in SMF 1.1.X**
Copy the lmgtfy.gif file from: Themes/default/images/bbc to Themes/your_theme/images/bbc

SMF 2.X
./$languagedir/Modifications.English.php
./$sourcedir/Admin.php
./$sourcedir/ManageSettings.php
./$sourcedir/Subs.php
./$sourcedir/Subs-Editor.php
lmgtfy.gif added to $ImagesDir/bbc


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Veritas01


TehCraw

Oh man, I was so going to do one of these. Nice job.  ;D
Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler

busterone

I forgot to drop in and congratulate you on this S3NTYN3L., so here it is now.  ;D

Quote from: Veritas01 on November 09, 2010, 06:22:08 PM
Looks awesome. Any plans to update to RC4?
It is fully compatible for RC4, but you need to use version emulation to install it for now, or download the mod, extract it, and edit  package-info.xml for RC4, then rezip it and upload it to your package folder on your host.  It is far easier to just use version emulation until S3NTYN3L has the time to make the edits himself though.  :)

Veritas01

Quote from: busterone on November 09, 2010, 06:31:43 PM
I forgot to drop in and congratulate you on this S3NTYN3L., so here it is now.  ;D

Quote from: Veritas01 on November 09, 2010, 06:22:08 PM
Looks awesome. Any plans to update to RC4?
It is fully compatible for RC4, but you need to use version emulation to install it for now, or download the mod, extract it, and edit  package-info.xml for RC4, then rezip it and upload it to your package folder on your host.  It is far easier to just use version emulation until S3NTYN3L has the time to make the edits himself though.  :)
Thanks for the quick response :) Didn't know I could do that, thanks!

busterone


luuuciano

what about a shorten link option, to truly hidden it?

but, anyway, great mod! :)
Ill use it in the near future...
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

S3NTYN3L

Thanks all!  ;D
Glad you're enjoying this!

Hiya busterone! ;D

Quote from: Veritas01 on November 09, 2010, 06:22:08 PM
Looks awesome. Any plans to update to RC4?

Quote from: busterone on November 09, 2010, 06:31:43 PM
It is far easier to just use version emulation until S3NTYN3L has the time to make the edits himself though.  :)

I'll get right on it.


Quote from: luuuciano on November 10, 2010, 08:39:38 PM
what about a shorten link option, to truly hidden it?

I'll look into it when I come off the road.
(I'm a truck driver... :-[)

luuuciano

what?
8-/
you do not have a netbook??

(lol, just kidding... great effort! awesome)

(btw, about the shorten link option... the sad side of that is that you will never know when the shortener closes their doors...)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

S3NTYN3L

I updated the package so it should install in all four SMF flavors currently available. ;)

No, I'm on my laptop right now, sitting in my truck.
Haxored  the wifi at the truck stop, lol...

I don't think I need to go through a shortening service like tinyurl.
I should be able to shorten it entirely via php... :-\

SteveW

Hi - just to let you know I had problems with your BBC image. It was showing ok in Firefox but not IE. To get it to show I had to alter it slightly and reupload it. I tried viewing the image direct. It works ok now. This was a problem for my members using IE.
Watch the skies!!

S3NTYN3L

Alter it slightly?
In what way?

I don't see how a simple gif image would work fine in Fx but not IE... :-\

SteveW

I left the size as 16 x 16 but modified it by altering colour slightly and resaving the gif. It made the file smaller as well and now works. I have just done a renistall of it and it did the same and I uploaded my modified version and it worked.

This is the one that is now working:
http://www.alienexistence.com/Themes/Blue_Moonlight_SMF2/images/bbc/lmgtfy.gif


This is the one that doesn't when installing the MOD as default: (I have changed the name slightly so you can see it)
http://www.alienexistence.com/Themes/Blue_Moonlight_SMF2/images/bbc/lmgtfy2.gif


It shows ok here as I am using Firefox - when you view the second link in IE it doesn't work and gives a red x

Watch the skies!!

S3NTYN3L

#14
Understood.
Apparently, IE doesn't like me simply changing file extensions.

Anywho, I've corrected the gif issue and will update the download shortly.

<snip>

toma

Nice Mod thank you for it, I'm sick and tired of being a human Google interface to many friends, so this comes very handy :)

One observation: if I add öäå ÖÄÅ characters in the link it does not work too well with lmgtfy.com

If I write: Tämä on testi, whis is This is a test in Finnish

The link looks like this: http://lmgtfy.com/?q=T%E4m%E4%20on%20testi
when it should look like this: http://lmgtfy.com/?q=Tämä+on+testi


I know that it is basically the same thing but with the first one lmgtfy just complains about javascript not being enabled

S3NTYN3L

Perhaps you don't have UTF-8 installed/enabled on your forum?

I just installed the LMGTFY mod on a fresh 2.0 RC4 install.
I was able to reproduce your issue.
Upon installing UTF-8 English, the issue went away...

One caveat, however:
Any existing Cyrillic text posts get converted to � after installing the UTF-8 version of your language.
You'll need to rewrite them...

aishaweb


DSK-Googler

wht is the use of this mod...can anyone explain
Be my friend on facebook 


   
http://facebook.com/profile.php?id=100001290082093

aishaweb

Quote from: sureshdsk on December 05, 2010, 01:27:29 AM
wht is the use of this mod...can anyone explain

You highlight any text in a post then click the LMGTFY button and it creates this:
http://lmgtfy.com/?q=+LMGTFY+(Let+Me+Google+That+FOR+You)+BBCode

I assume you did read the first post in this thread?

Quote from: S3NTYN3L on October 29, 2010, 06:48:19 PM
Link to Mod

LMGTFY BBCode

Latest Version: 2.3
Compatible With SMF: 1.1.11, 1.1.12, 2.0 RC2, 2.0 RC3, 2.0 RC4


Summary

The LMGTFY BBCode mod allows you to create a link to http://www.lmgtfy.com.
With these tags, you no longer need to take the time to visit the LMGTFY website.

How it Works:
[lmgtfy]Search For This[/lmgtfy]
[lmgtfy=Search For This]Cleverly Hidden LMGTFY Link[/lmgtfy]

Results in:
Search For This
Cleverly Hidden LMGTFY Link


Advertisement: