We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Search Reference.com when Posting
Topic Started: May 18 2012, 09:24 AM (771 Views)
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Code Name: Search Reference.com when Posting

What the code does: Places a search box alongside preview button of posting screen.

How to use the code: Simply install the code and when editing, posting, replying... a search box for reference.com will be provided.

How to install the code: Copy/Paste in the Above The Copyright section of Board Template.

Extra notes: This great addition makes it possible for users to immediately look up something while posting!

Preview: Live Preview

Code:
 
<script type="text/javascript">
//<![CDATA[
// Add Search Reference.com to posting table
// by Skyon Archer
loc=window.location.href;
if(loc.match(/mode=3&type=1&f=/) || loc.match(/mode=2&type=1&f=/) || loc.match(/type=1&mode=1&f=/) || loc.match(/post/)){
$("span:contains(+)").parent().before('<form name="nqgs" method="GET" action="http://www.tierrahosting.com/codes/search.php" style="display: inline; margin: 0pt;" onsubmit="var q=document.getElementById(\'nqsbq\').value;if(q==\'\'){document.getElementById(\'nqms\').style.display=\'block\';return false;}else{this.q.value=q+\' site:reference.com\';}return true" target="_blank"><input id="nqsbq" class="kib" size="20" maxlength="2048" style="margin: 0pt 4px 0pt 0pt;" title="Search reference.com" type="text" /><input name="btnGNS" class="ksb sbf" value="Search reference.com" type="submit" /><input name="q" type="hidden" /><input name="sa" value="X" type="hidden" /><input name="ei" value="5lC1T5T1MufC2wXCj_0c" type="hidden" /><input name="ved" value="0CHcQ2wE" type="hidden" /><input name="hl" value="en" type="hidden" /><input name="biw" value="1680" type="hidden" /><input name="bih" value="870" type="hidden" /><div class="sl" id="nqms" style="display: none; color: red;">Please enter some search terms.</div></form>');
}
//]]>
</script>
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply