|
Post by iPokemon on Sept 4, 2011 20:22:39 GMT -5
<script type="text/javascript"><!-- /* LMGTFY UBBC Tags by iPokemon Edited Version http://bytemecodes.proboards.com/ May only be reposted under permission Copyright 2010 Thanks LMGTFY for the awesome redirects! */
//UBBC Portion if(document.postForm) { document.postForm.color.parentNode.innerHTML+='<a href="javascript:add(\'[lmgtfy=]\',\'[/lmgtfy]\')"><img src="http://i48.tinypic.com/2uxtgu8.png" border="0" /></a>'; }
//Replacement Portion if(pb_action.match(/(calendar|pm|pre)view|search2|display/i)){ var lm = document.getElementsByTagName('td'); var rm=/\[lmgtfy=(.+?)\](.+?)\[\/lmgtfy\]/gi; for(l=0;l<lm.length;l++){ if (lm[l].width=="80%"&&lm[l].innerHTML.match(rm)) { lm.item(l).innerHTML = lm.item(l).innerHTML.replace(rm, "<a href='http://lmgtfy.com/?q=$1' target='_blank'>$2</a>"); } } } //--></script>
No editing required! Just stick it into the Global footer To use, put [lmgtfy=What you want to search]What should be linked[/lmgtfy] in a post, and edit accordingly.Examples: (Would happen if you had "splash" in the search spot) What is a splash?[lmgtfy=splash]What is a splash?[/lmgtfy](Would happen if you had "pie" in the search spot) Pie is delicious![lmgtfy=pie]Pie is delicious![/lmgtfy]
|
|