Advertise Here

Author Topic: [Code] Search SMC's Code Index  (Read 4316 times)

0 Members and 1 Guest are viewing this topic.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
[Code] Search SMC's Code Index
« on: November 03, 2007, 10:06:04 am »
Add this to your Headers if you don't have it already.  If you already have it, don't add it:
Code: [Select]
<script src="/jquery.js"></script>
Footers
Code: [Select]
<script>
function search_SMC(){
//Created by Agent Moose (smcodes.smfforfree3.com)
$("td.titlebg2 form input[name='search']").parent().parent("td.titlebg2").html("<form id='searchform' name='searchform' accept-charset='ISO-8859-1' method='post' action='http://smcodes.smfforfree3.com/index.php?action=search2'><input type='text' style='width: 190px;' name='search' value='Search SMC Code Index'/><input id='brd8' type='hidden' checked='checked' value='8' name='brd[8]'/>  <input type='submit' value='Search' name='submit'/></form>");
};
search_SMC();
</script>

All this will do is change the Search thingy at the top of your forum to a SMC search.  If you have this code, it will make it search just the Code Index on SMC.
« Last Edit: May 06, 2008, 02:46:10 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline LaundryLady

  • Helpers
  • *
  • Posts: 3253
  • Internet Challenged
    • View Profile

  • Total Badges: 26
    Badges: (View All)
    Seventh year Anniversary Sixth year Anniversary Search Poll Voter Level 5
Re: [Code] Search SMC's Code Index
« Reply #1 on: November 03, 2007, 05:53:56 pm »
Let me make sure I understand.  I put this on my forum and it will let me search your forum for whatever code I am looking for?  If so, sweet.


And I Play:  Mafia-Mandemz

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Search SMC's Code Index
« Reply #2 on: November 03, 2007, 07:25:38 pm »
Yep :)  It will take place of the mini-search that is there under the Users area
Check out Revolution X's Brand new Code Index!

Offline Y4NK33F4N

  • SMF For Free Full Member
  • *
  • Posts: 146
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    Search Apple User Topic Starter Combination Level 3
Re: [Code] Search SMC's Code Index
« Reply #3 on: November 03, 2007, 08:23:17 pm »
Nice!
When I get older, I will be stronger,
They'll call me freedom, just like a Waving Flag,
And then it goes back, and then it goes back,
And then it goes back

~~K'naan Wavin Flag~~

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Search SMC's Code Index
« Reply #4 on: November 04, 2007, 07:38:01 pm »
Glad ya like :)
Check out Revolution X's Brand new Code Index!

Offline deathwilldie

  • Style Designer
  • *
  • Posts: 770
  • Give me an idea for a Stylesheet
    • View Profile
    • Revolution X

  • Total Badges: 28
    Badges: (View All)
    Tenth year Anniversary Nineth year Anniversary Search Eighth year Anniversary Seventh year Anniversary
Re: [Code] Search SMC's Code Index
« Reply #5 on: November 04, 2007, 08:52:38 pm »
Great code.

EDIT:  There is a problem if you have the Shoutbox on your forum and this code.  Its for the FF shout box.  What it does is make the part that you type in for it into a search bar.

Offline Agent Moose

  • Moderator
  • *****
  • Posts: 836
  • Do not PM me for Code Support or Request
    • View Profile

  • Total Badges: 32
    Badges: (View All)
    Search Level 6 Tenth year Anniversary Nineth year Anniversary Eighth year Anniversary
Re: [Code] Search SMC's Code Index
« Reply #6 on: November 05, 2007, 02:26:27 pm »
Now Try the code.
Check out Revolution X's Brand new Code Index!

Offline RS location

  • SMF For Free Full Member
  • *
  • Posts: 166
  • I hunger for.....FISHSTICKS
    • View Profile

  • Total Badges: 15
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Code] Search SMC's Code Index
« Reply #7 on: November 15, 2007, 11:41:48 am »
Great code also does the headers/footers have a limited amount of codes? it wont let me put anymore in.

Offline simply sibyl

  • Helpers
  • *
  • Posts: 14347
  • On hiatus
    • View Profile
    • The Tent Dwellers

  • Total Badges: 31
    Badges: (View All)
    Level 6 Poll Voter Webmaster Arcade Highscore Windows User
Re: [Code] Search SMC's Code Index
« Reply #8 on: November 15, 2007, 11:58:56 am »
Great code also does the headers/footers have a limited amount of codes? it wont let me put anymore in.

No there is no limit.

Forum url please?

EXACTLY what is happening.    "It wont let me put anymore in"  isnt clear enough.

*help us to help you*       we need more info to figure this out

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
4521 Views
Last post January 13, 2007, 01:27:43 pm
by Legend_Killer
6 Replies
3064 Views
Last post November 11, 2008, 11:43:16 am
by simply sibyl
4 Replies
1414 Views
Last post January 17, 2009, 12:49:17 pm
by valhalla95
2 Replies
2342 Views
Last post May 02, 2010, 10:42:23 am
by Jntg4
2 Replies
1694 Views
Last post October 02, 2010, 02:06:23 am
by ComicGeeks