vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > Feedback & Suggestions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2007, 03:41 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default My Category module listing on categories from that category

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?
Reply With Quote
  #2  
Old 08-09-2007, 09:53 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: My Category module listing on categories from that category

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.
Attached Files
File Type: php dyna_mycats.php (3.6 KB, 3 views)

Last edited by Brian; 08-10-2007 at 09:08 AM.
Reply With Quote
  #3  
Old 08-09-2007, 01:26 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: My Category module listing on categories from that category

That works for the time being. Thank you.
Reply With Quote
  #4  
Old 08-09-2007, 02:04 PM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: My Category module listing on categories from that category

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.
Reply With Quote
  #5  
Old 08-09-2007, 02:45 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: My Category module listing on categories from that category

Try opening up the file and changing this line:
PHP Code:
if ($catid
To this:
PHP Code:
if (intval($catid)) 
And see if that helps.
Reply With Quote
  #6  
Old 08-10-2007, 12:17 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: My Category module listing on categories from that category

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.
Reply With Quote
  #7  
Old 08-10-2007, 03:00 AM
attroll's Avatar
attroll attroll is offline
Senior Member
 
Join Date: Jan 2004
Posts: 818
Default Re: My Category module listing on categories from that category

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.
Reply With Quote
  #8  
Old 08-10-2007, 09:10 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: My Category module listing on categories from that category

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 11:56 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.