Google MyCode
#11
Ah okay, it's was a misunderstanding on my part.
Reply
#12
Think you can change it up a tad bit to work for LMGTFY? :]

And if its not to much but to pm me a small tutorial kind of explaining this :] would love to learn all of this so I can start making my own =D
[Image: userbar757767.gif]
Reply
#13
(2009-07-14, 05:48 PM)kamakzy56 Wrote: Think you can change it up a tad bit to work for LMGTFY? :]

LMGTFY version:

<div style="background: url(images/googlewink.png) no-repeat 45px bottom; height:55px;"><form action="http://lmgtfy.com/" method="get" enctype="application/x-www-form-urlencoded" target="_blank"><input type="hidden" name="q" value="$1" /><input type="submit" value="Google '$1'" style="padding: 3px 3px 3px 19px; border: 3px double #0f5c8e; background: #f7f8ea url(http://www.google.de/favicon.ico) no-repeat 3px center; color: #0f5c8e; font-weight: bold;" /></form></div>

Please copy this file to your board and put in images/ folder: http://img33.imageshack.us/img33/8756/googlewink.png

Only replaced the action="..." part. Smile
Reply
#14
Awesome. Non-smile version please?
Reply
#15
(2009-07-14, 06:22 PM)faviouz Wrote: Awesome. Non-smile version please?

Please: Smile
<form action="http://lmgtfy.com/" method="get" enctype="application/x-www-form-urlencoded" target="_blank"><input type="hidden" name="q" value="$1" /><input type="submit" value="Google '$1'" style="padding: 3px 3px 3px 19px; border: 3px double #0f5c8e; background: #f7f8ea url(http://www.google.de/favicon.ico) no-repeat 3px center; color: #0f5c8e; font-weight: bold;" /></form>
Reply
#16
I now realized I only had to remove the first line of code from the previous post. How stupid. Thank you btw.
Reply
#17
Yes, only a div container produces the smilie.

--- time for a little bit OT ---

Regex:
\[yahoo\](.*?)\[/yahoo\]

Replacement:
<form action="http://search.yahoo.com/search" method="get" enctype="application/x-www-form-urlencoded" target="_blank"><input type="hidden" name="p" value="$1" /><input type="submit" value="Yahoo '$1'" style="padding: 3px 3px 3px 19px; border: 3px double #0f5c8e; background: #f7f8ea url(http://search.yahoo.com/favicon.ico) no-repeat 3px center; color: #0f5c8e; font-weight: bold;" /></form>

Example:

If you type this in your board:
[yahoo]MyBB[/yahoo]

It will become this:
[Image: yahooo.png]
(it's not a link - it's a clickable button!)

--- OT END ---
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)