![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| Sidebar Categories Enhancement AddOn Hello people. Today i would like to tell you something about sidebar categories addon. This tutorial is suitable especially for people who would like to have many categories and they want to have them in sidebar. Basically there are 2 problems: - too many categories = too much worthspace in sidebar, despite the fact user can scroll categories down it is still not good - if you use background in categories sidebar (default=yes), then you have to resize this background when you use many categories My solution is simple to understand and resolve both problems above. Every root category (which is category that has at least one subcategory) has a button (next to the rss button). With this button is possible to show and to hide subcategories. All right, stop talking, there is an example: ![]() As you can see in the picture, there are some categories level1. When we click on the button on the right side (the button with arrow) on category level1_b, subcategories will show. Subcategory can be also root category - if you like to have more-level subcategories. Summary features: - hiding subcategories as a default, possibility quickly show them just with mouse click on button - multi subcategories supported - possibility to change icon of hiding button (come on guys, be a little creative:)) - EASY implementation Requirements: - Notepad++ or any good app to edit smarty (tpl) file in it - Pligg v97 or v98. - yget template (but it may be possible to implement with a little customization into another). Downloads: There are the neccessary icons, you can copy them in your yget/images folder: http://vselink.org/downloads/scroll_down.ico http://vselink.org/downloads/scroll_down_hover.ico http://vselink.org/downloads/scroll_up.ico http://vselink.org/downloads/scroll_up_hover.ico You are also welcome to change them if you like. Steps to do: 1) Please backup and open file categories.tpl in your ../templates/yget/sidebar_modules/ folder. Replace ALL code with this: [Version 0.97] There is a difference between version 0.98 and 0.97. I use 0.97 (but i added some pictures descriptions as in v 0.98,this definitely will not appear in functionality changes) so there is code for version 0.97 of Pligg: PHP Code:
__________________ =Everything that has a beginnig has an end= =Nevere stop fighting= Site: http://www.vselink.org Last edited by AnAlienHolakres3 : 09-12-2007 at 05:08 PM. Reason: added icon files |
| The Following 5 Users Say Thank You to AnAlienHolakres3 For This Useful Post: | ||
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| ||||
| Sidebar Categories Enhancement AddOn Part 2 [Version 0.98] Many of you are able to easilly upgrade or make a fresh install of Pligg v0.98, following code is a little customized code for the latest version of Pligg (v 0.98). Ok, there is a code for this version: PHP Code: I know this is a little hardcoded javascript so if anybody has a better solution I am listening. If anybody is interested in manually upgrading from v0.97 into v.098 and would like to know how implement this code of version 0.98 into Pliggg v 0.97 there is no simple answer. I think it would be neccessary to edit main css file and maybye more, more details you should get from Pligg developers. Any comments feel free to post:)
__________________ =Everything that has a beginnig has an end= =Nevere stop fighting= Site: http://www.vselink.org |
| |||
| Hi AnAlienHolakres3, I´m using v9.5 and I would be very interested in your code. My problem: I´m no coder. I´ve managed to get beatniak´s category colours running at sidebar_modules/categories.tpl and would not know how to combine both codings. Are you interested to help me if I send you my file? |
| ||||
| v 9.5 Integration Yeah you can try it. It shouldnt be significant problem....
__________________ =Everything that has a beginnig has an end= =Nevere stop fighting= Site: http://www.vselink.org |





