Info
- 16 posts
- 4 voices
- Started 2 years ago by driz
- Latest reply from Alex-Special-k
- This topic is not resolved
Toggle Forums
-
- Posted 2 years ago #
Hi,
I'm adding a toggle switch on categories for my forum, but they need to each have unique ids or something along those lines in order for the toggle to talk to each individual category.
Any ideas how I could do this? Here is the code I have for the toggle.
<script>
$(".toggle").click(function () {
$("#box").slideToggle("slow");
});
</script> -
- Posted 2 years ago #
On which page were you going to add the toggle? Just the front page? Can you post a link to your forum?
-
- Posted 2 years ago #
Hi,
the forums are in development at the moment here --> http://forums.paperviewmagazine.com/
I'm using a quick theme for the time being. But basically where the grey bars are for the categories e.g. CMS, Web, Client Side I'm wanting to add some + and - icons which will open and close those sections. -
- Posted 2 years ago #
Something like I did here then?
http://www.lawserver.com/forums/See the forums and categories at the bottom.
-
- Posted 2 years ago #
Yes, but something more like this: http://www.neowin.net/forum/
-
- Posted 2 years ago #
Ok, they're using prototype and the toggle function. That's what you would need to use to get that look.
http://ajax.googleapis.com/ajax/libs/prototype/1.6/prototype.js
The element you would target is already there in the output,
.bb-category. -
- Posted 2 years ago #
But there are more than one .bb-category on the page. How do I add the icon for each category and make it relative to that category.
-
- Posted 2 years ago #
Any updates on this pal? I've copied the code you use on your website to test, but the icon appears on all forums and not just the category ones (I noticed this is also the case on your forums)
-
- Posted 2 years ago #
In that forum I linked to, it appears for all top level categories AND forums. It probably should not apply to top level forums. There's really no reason for the icon there.
It doesn't appear on any of the other forums though. Is it for you?
-
- Posted 2 years ago #
It appears for all top level forums. but it should only appear for parent forums right? Not just categories but forums that have children too BUT NOT forums that are just single.
-
- Posted 2 years ago #
Right.
-
- Posted 2 years ago #
But that's not the case with your code though.
-
- Posted 2 years ago #
Right. The code can be improved. Please feel free to do so on your site. The owner of this site is not worried about it right now. There's always room for improvement. Sometimes you need to just call it good and move forward.
-
- Posted 2 years ago #
They are using IPBv3. http://invisionpower.com/
-
- Posted 2 years ago #
Yes I know what software they are using (I have used it in the past) What I'm looking for is a simple way to add similar functionality to bbPress. I like the solution proposed by chrishajer but it has flaws.
-
- Posted 2 years ago #
Guys how to make such menu? You Can explain to me?
I will be very grateful to you! =) -
You must log in to post.