Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Search Topics button in Posts
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[SC] Search Topics button in Posts
Tweet Topic Started: Dec 1 2008, 08:14 PM (416 Views)
HolySavior Dec 1 2008, 08:14 PM Post #1
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Adds a Search Topics buttons next to the Topic Title when posting so you can type a topic title in and click Search Topics to see if there are topics already posted about it.

Quote:
 

<script type="text/javascript">
/* Search Topics on Posts
Created by HolySavor of ZBcode and Javascriptin.com */

boardlink = "http://s1.zetaboards.com/ifusion/"
if(location.href.match(/\/post\//i)) {
$("td:contains('Topic Title')").next().append(" <button type='button' onclick='letssearch()'>Search Topics</button>");

function letssearch() {
var search = document.forms['posting'].title.value;
window.open( boardlink+"search/?c=1&f=-1&q="+search,"Search Topics ");
}
}
</script>
Edited by Reid, Jun 15 2009, 08:24 PM.
Offline Profile Goto Top
 
darthkid Dec 17 2008, 01:18 AM Post #2


Posts:
4
Group:
Member
Member
#1,808
Joined:
Dec 16, 2008
where do i put this code at? is it at "Board Template> Javascripts"?
anyway, thanks for the code!
:)
Offline Profile Goto Top
 
slayer766 Dec 17 2008, 08:53 AM Post #3
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
No. Board Template - Below the board. ;)
Offline Profile Goto Top
 
darthkid Dec 17 2008, 01:35 PM Post #4


Posts:
4
Group:
Member
Member
#1,808
Joined:
Dec 16, 2008
Thank you, slayer766!
thanks for the fast reply!
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 9:36 AM Jul 11
Hosted for free by ZetaBoards · Privacy Policy