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
[CODE] Expand/Collapse Forum Categories v2; 2 versions in less than 24 hours.... :P; By Zero Tolerance
Topic Started: Jan 25 2010, 09:17 AM (85 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: Zero Tolerance
[CODE
 
Expand/Collapse Forum Categories v2; 2 versions in less than 24 hours.... :P]Ok introducing the new version, couple of new features for ya all that im hoping you will like, but first lets take an overview of what the code does

What does it do?
Gives user's the ability to collapse and expand forum categories, upon collapsing all forums inside the category are hidden, re-appearing if expand is pressed

What are the new features?
This about brings everything anyone would want from using the 1st version (not that many have used it, heck i only released it less than 24 hours ago XD)
Anyway...

- Ability To Set Collapse/Expand Text To Images
- Easy to edit IMG url's
- And the best.. Cookie Controlled

If user's have cookies enabled and collapse a forum, they can reload, go to another page and come back, do whatever (except delete the cookie :angel: ) and the category will still be collapsed, just think of it as a memory
Upon expanding it back it is saved like that too ;)

Previews:
Image Version | Text Version

Enough chat, wheres the code!?!?!

Simply add this to your footers, below is a little explanation on the editable features

Code:
 
<script>
// Expand/Collapse Categories v2 - Leave Copyright Intact Wherever Used
// Created For Invision Free
// Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net]
// Editable Options - Start
UseImgs="Yes"
ImgExpand="http://www.webpost.net/el/elitecoding/expand.gif"
ImgCollapse="http://www.webpost.net/el/elitecoding/collapse.gif"
// Editable Options - End
</script>
<script src='http://www.webpost.net/el/elitecoding/CatExpCol.js'></script>


Editable Options:
You just want to be looking at:

// Editable Options - Start
UseImgs="Yes"
ImgExpand="http://www.webpost.net/el/elitecoding/expand.gif"
ImgCollapse="http://www.webpost.net/el/elitecoding/collapse.gif"
// Editable Options - End


Ok, the red text is asking you if you want the expand/collapse links to be text or images, set to Yes for images, and No for text, the blue text are the image url's, 2 have been accompanied with the code but you may wish to edit them, if your using the text version, there is no need to edit the IMG url's

Uhm, thats about it, enjoy ^_^

- Zero Tolerance
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply