![]() |
|
#1
|
||||
|
||||
|
This was brought up as a suggestion in the earlier beta version prior to the release of RC1 and I think there was some confusion as to what I wanted because of what was added to RC1 was not what I requested. Let me try and explain what I wanted again and see if I can do it better this time.
I did not want the Option to limit the 'Category Listing' module to only show the sub-categories for the category you're currently viewing. What I wanted was this to be applied to the “My Categories” module. So that when you are viewing a members category page and you click on the users name and the following page comes up “browsecategory.php?c=3&entryuserid=1”, you will only see the categories that the blog owner has created under that category in their My Categories module. Here is how the category structure would look below. Now if I went into the Sports Blogs that was set up as a members category, then when viewing a users blog browsecategory page it would only display the sub-categories that that blog owner has under the Sports Blogs category. My Sites Blog (top level category) -- Sports Blogs (set up as a members category) -- Music Blogs This was what I was trying to request in the previous beta forums. Is there any chance of this happening? |
|
#2
|
||||
|
||||
|
My apologies for that... I know there was a similar request for the Category Listing module as well, so I'm guessing that I got the two mixed up on my to-do list. I'll get that added with a proper setting and such in RC2. In the mean time, here's a new dyna_mycats.php file for you to use. It has basically the same code that will be there in RC2, just with no setting to enable/disable that feature yet.
Last edited by Brian; 08-10-2007 at 09:08 AM. |
|
#3
|
||||
|
||||
|
That works for the time being. Thank you.
|
|
#4
|
||||
|
||||
|
Well Brian I thought this worked.
When a user goes to edit their categories then they get this error. Warning: array_keys() [function.array-keys]: The first argument should be an array in /vba_dyna_modules/dyna_mycats.php on line 11 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /vba_dyna_modules/dyna_mycats.php on line 27 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /vba_dyna_modules/dyna_mycats.php on line 27 Last edited by attroll; 08-09-2007 at 02:23 PM. |
|
#5
|
||||
|
||||
|
Try opening up the file and changing this line:
PHP Code:
PHP Code:
|
|
#6
|
||||
|
||||
|
Brian
I was wrong in my first post and I apologize for it. What I was doing was going into My Stuff-->Category Manager and clicking on the category name and that was when I was getting the errors. I am also getting the errors when I click on a category that is displayed in the module. I tried the code changed you recommend and it did nothing. Here are the errors again: Warning: array_keys() [function.array-keys]: The first argument should be an array in /vba_dyna_modules/dyna_mycats.php on line 11 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /vba_dyna_modules/dyna_mycats.php on line 27 I also tried replacing the code that you mentioned above and it did not make a difference. Last edited by attroll; 08-10-2007 at 12:31 AM. |
|
#7
|
||||
|
||||
|
Here another followup I discovered. This does not only happen when clicking on the category in the module. It happens when you click on the users category in the browsecategory that list all there sub-categories for that user at the top of the page.
However when I put the original dyna_mycats.php back in then this problem goes away. |
|
#8
|
||||
|
||||
|
Ahhh, sorry about that. I had made a small change to one of the functions that's used there in the dev files that I wasn't thinking about, and of course that change was affecting the module for me locally and preventing that problem. I've just updated the original attachment above though, so it should not give you those problems anymore.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| User sub-categories limits per category | attroll | Feedback & Suggestions | 1 | 07-28-2007 03:17 PM |
| List sub categories under main category name | benFF | Modifications | 2 | 12-04-2004 06:38 PM |