Advertise Here

Author Topic: [Code] Hover Over Catagories to View Forums V2  (Read 7561 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] Hover Over Catagories to View Forums V2
« on: March 28, 2007, 03:04:40 pm »
Forum Url: http://smfffhacks.smfforfree2.com
This code is like V1...and the names says it all too.  I got give a big thanks to James for helping me with it.

Changes from v1 to v2:
-When you hoverd over a catagory in V1, it showed all the forums in all catagorys and didn't close.  In V2, when you hover over a catagory, it only showes the forums from that catagory taht you are hovering over.  Also, when your not hovering over them, they close.

Global Headers:
Code: [Select]
<script src="/jquery.js"></script>I would recomend you to keep this code in the global headers because for now on, all the codes I do for SMF for Free will be in jquery, and you need that to be in the global headers for jquery to work.

Global Footers:
Quote
<script type="text/javascript">
//Created by Agent Moose
$("table.bordercolor").addClass("classnme").hide();
$(".classnme").parent().hover(function(){
$(this).addClass("over");
$(this).children("table.bordercolor").fadeIn("fast");
},function(){
$(this).addClass("out");
$(this).children("table.bordercolor").fadeOut("fast");
});
$(".collapse").hide();
</script>

For the green text, that is the speed it shows up.  You can change the speeds to:
slow
normal
fast

Make sure both of them say the same thing.  If you don't, it will just be kinda weird...
NOTE:
When your in the Admin CP, it will do this also, you will get used to it...
Preview:
Click Here
« Last Edit: May 02, 2008, 09:30:50 pm by Agent Moose »
Check out Revolution X's Brand new Code Index!

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Hover Over Catagories to View Forums V2
« Reply #1 on: March 28, 2007, 05:15:46 pm »
Very cool   ;D
Useful for forums with LOTS of boards
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline fROMOHIO666

  • SMF For Free Member
  • *
  • Posts: 27
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Hover Over Catagories to View Forums V2
« Reply #2 on: March 28, 2007, 05:22:10 pm »
Haha cool thanks.

Online SMF For Free

  • Administrator
  • *
  • Posts: 7304
    • View Profile
    • SMF For Free

  • Total Badges: 38
    Badges: (View All)
    Quick Poster Tenth year Anniversary Spammer 25 Posts in one day Nineth year Anniversary Eighth year Anniversary
Re: Hover Over Catagories to View Forums V2
« Reply #3 on: March 28, 2007, 07:25:23 pm »
Very Cool
SMF For Free-Free Simple Machines Forum hosting.
Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline kronk

  • SMF For Free Member
  • *
  • Posts: 38
    • View Profile
    • Turbocharged Forums

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Hover Over Catagories to View Forums V2
« Reply #4 on: March 29, 2007, 08:38:12 am »
Nice code. I like it.

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #5 on: March 29, 2007, 01:08:07 pm »
VERY cool!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #6 on: March 29, 2007, 01:35:05 pm »
VERY cool!

edit...ok most of its cool..lol. I just tried it out on my test site and I dont like the way it does that to all the stuff in the admin cp, etc :(. Is there a way to just have it do it on the boards of the forum and not everything else?

Offline Laugh-nd-kid

  • SMF For Free Master
  • *
  • Posts: 1409
  • Thankyou for this great software SMF For Free!
    • View Profile

  • Total Badges: 21
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #7 on: March 29, 2007, 01:57:44 pm »
Now that's cool, but with what kimmie is saying I think that is disadvantage

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #8 on: March 29, 2007, 03:42:50 pm »
Now that's cool, but with what kimmie is saying I think that is disadvantage

yeah .. I have alot of boards so it would come in handy there but in the admin panel its a pain in the u-kno-whut

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: Hover Over Catagories to View Forums V2
« Reply #9 on: March 29, 2007, 04:43:41 pm »
I will try to find away how to not make it work in the ACP.  For now, you will just have to use this code.
That is one reason why I don't like SMF that much, the is connected to the board unlike IF and the new ZB(I love ZB!)
Check out Revolution X's Brand new Code Index!

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #10 on: March 29, 2007, 04:59:50 pm »
I will try to find away how to not make it work in the ACP.  For now, you will just have to use this code.
That is one reason why I don't like SMF that much, the is connected to the board unlike IF and the new ZB(I love ZB!)

okies..that would be awesome! :). You did a good job on it! Out of a 10 I give it a 9-er! :)

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Hover Over Catagories to View Forums V2
« Reply #11 on: March 29, 2007, 05:21:31 pm »
I will try to find away how to not make it work in the ACP.  For now, you will just have to use this code.
That is one reason why I don't like SMF that much, the is connected to the board unlike IF and the new ZB(I love ZB!)

On the bright side that typically=less coding to make it look pretty :P
I guess it messes with your stuff though still eh?

Would it work better if the code was place just in the description of a board? Or would that render it useless?
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline Kimmie

  • SMF For Free Master
  • *
  • Posts: 2010
    • View Profile
    • Kimmie's Caverns

  • Total Badges: 19
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Hover Over Catagories to View Forums V2
« Reply #12 on: March 29, 2007, 06:40:23 pm »
I will try to find away how to not make it work in the ACP.  For now, you will just have to use this code.
That is one reason why I don't like SMF that much, the is connected to the board unlike IF and the new ZB(I love ZB!)

On the bright side that typically=less coding to make it look pretty :P
I guess it messes with your stuff though still eh?

Would it work better if the code was place just in the description of a board? Or would that render it useless?


Well, as usual crasy,  you have DONE IT AGAIN!  :). I just tried your sugggestion out on my test site (server 2 forum). I have 4 categories - I put the entire code (header and footer) in the descripton  on 1 board in the last category and it worked!! It doesnt affect the admin cp..

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Hover Over Catagories to View Forums V2
« Reply #13 on: March 29, 2007, 07:52:18 pm »
Hum, awesome ;D
Somehow that surprises me that it works.


However I dunno if that might mess other stuff up...from what Agent Moose said above
Quote
I would recomend you to keep this code in the global headers because for now on, all the codes I do for SMF for Free will be in jquery, and you need that to be in the global headers for jquery to work.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline kronk

  • SMF For Free Member
  • *
  • Posts: 38
    • View Profile
    • Turbocharged Forums

  • Total Badges: 14
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: Hover Over Catagories to View Forums V2
« Reply #14 on: March 29, 2007, 09:23:12 pm »
I will try to find away how to not make it work in the ACP.  For now, you will just have to use this code.
That is one reason why I don't like SMF that much, the is connected to the board unlike IF and the new ZB(I love ZB!)

Well who doesn't love ZetaBoards? They look fantastic!

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
935 Views
Last post April 27, 2007, 10:02:10 pm
by Sassy
3 Replies
3401 Views
Last post January 23, 2008, 11:37:20 am
by Project_unknown
8 Replies
2156 Views
Last post December 26, 2008, 11:07:10 am
by Didds
2 Replies
817 Views
Last post January 01, 2009, 05:32:25 pm
by emeraldice
0 Replies
1796 Views
Last post May 03, 2009, 11:12:29 am
by Vitality