PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 9th, 2004, 06:27 PM   #1 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Adding a Category from Category Admin (Frontend)

How do users add a category to a category that allows user's to add categories?

I have everything that I know of (usergroup permissions, category permissions, and category settings) set up and the category I wish for users to add categories in is inside <optgroup> and disallows selection of that category in the Parent Category selection list.

Also the submit button's value is "<input class=" instead of "Submit"

See here: http://www.vbadvanced.com/gallery/ma....php?do=addcat
Shon is offline  
Old December 9th, 2004, 07:07 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Re: Adding a Category from Category Admin (Frontend)

Yeah I have this problem too.

I have allowed all members to have a category all of their own in the members section, like there is here on vBa, but when I fill out the boxes, and press that funky button, which is uses HTML code for its label instead of Submit.

It refreshes the page and says this:

You must choose a parent category!
Sanjiyan is offline  
Old December 9th, 2004, 07:19 PM   #3 (permalink)
Brian
Guest
 
Posts: n/a
Re: Adding a Category from Category Admin (Frontend)

Gotta love stupid mistakes like that.

If you'll open your /forum/includes/functions_gallery.php file and look for this code:
Code:
Content visible to verified customers only.
And replace it with this:
Code:
Content visible to verified customers only.
Then that should fix the problem with the category not being able to be selected.

And for the button, just edit your 'ADV_GALLERY_CATMANAGER_ADDEDIT_CAT' template and look for:
Code:
Content visible to verified customers only.
And replace it with:
Code:
Content visible to verified customers only.
And that should take care of that problem.
 
Old December 9th, 2004, 07:36 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Re: Adding a Category from Category Admin (Frontend)

sorted thanks Brian.
Sanjiyan is offline  
Old December 9th, 2004, 08:04 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Re: Adding a Category from Category Admin (Frontend)

Grr, no its not sorted, now I have lost the ability to upload images to any other categories, I can now only upload images to my personal category, no others.
Sanjiyan is offline  
Old December 9th, 2004, 08:06 PM   #6 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

Same here, fix one problem and create another... that's Brian's moto ;x
Shon is offline  
Old December 9th, 2004, 08:14 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Re: Adding a Category from Category Admin (Frontend)

Well I temp fixed it, but undoing the file edit, but it would be really nice if it was sorted out ASAP.
Sanjiyan is offline  
Old December 9th, 2004, 08:15 PM   #8 (permalink)
Brian
Guest
 
Posts: n/a
Re: Adding a Category from Category Admin (Frontend)

Quote:
Originally Posted by Shon
Same here, fix one problem and create another... that's Brian's moto ;x
*Sigh* That seems to be what I do best.

I've just updated the post above with the correct code.
 
Old December 9th, 2004, 08:35 PM   #9 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

That fixed it... the code to search for is incorrect though and it should be replaced with:

Code:
Content visible to verified customers only.
With the extra ( next to if
Shon is offline  
Old December 9th, 2004, 08:36 PM   #10 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

Well, I'm not sure... now the first problem has been recreated

Edit: I think it should be this:

Code:
Content visible to verified customers only.
Shon is offline  
Old December 9th, 2004, 08:45 PM   #11 (permalink)
Brian
Guest
 
Posts: n/a
Re: Adding a Category from Category Admin (Frontend)

Sorry about the incorrect code to find. Trying to do too much at once.
I just double checked on my localhost and on here and the code I posted above is working as it should. Is it still creating the same problem for you?
 
Old December 9th, 2004, 08:48 PM   #12 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

The code you posted fixed the problem with uploading images, but it went back to the same problem as was originally posted (with the adding categories)... the code I posted changed "$type == 'managecats'" to "$type != 'managecats'" and that seemed to work for both.
Shon is offline  
Old December 9th, 2004, 09:50 PM   #13 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

Now... when you have added a category and try to go back and add another one, it makes the parent category where you can't select it again :\
Shon is offline  
Old December 9th, 2004, 10:21 PM   #14 (permalink)
Brian
Guest
 
Posts: n/a
Re: Adding a Category from Category Admin (Frontend)

Just to clarify... Are you saying that when you add a category then you can't select that category for the parent when you try to add another, or you can't select the previous category's parent again for the new category (hopefully that makes sense)?
 
Old December 10th, 2004, 01:23 AM   #15 (permalink)
Member
 
Join Date: Jun 2004
Posts: 66
Re: Adding a Category from Category Admin (Frontend)

I got that fix by what you said in the reply to the support ticket I submited, but I was talking about the "Member's Category" category that users are able to add categories too, once you added a single category it would change the selection into a group and disallow it to be selected.

Although I got that fixed, there is still a problem with the category selection when editing an image.

Edit: Also when searching images
Shon is offline  
Old December 10th, 2004, 03:47 AM   #16 (permalink)
Member
Verified Customer
 
Join Date: Apr 2004
Posts: 127
Re: Adding a Category from Category Admin (Frontend)

I wont be trying any of these fixes untill Brian actually says he has fixed the problem with the code
Sanjiyan is offline  
Old December 10th, 2004, 05:53 AM   #17 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: Adding a Category from Category Admin (Frontend)

Quote:
Originally Posted by Brian
And replace it with this:
Code:
Content visible to verified customers only.
I think Shon is right, this code doesn't work for me either, but $type != 'managecats' does work.
Kirby is offline  
Old December 10th, 2004, 02:30 PM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2004
Posts: 5
Re: Adding a Category from Category Admin (Frontend)

Same problem for me, i.e:

Click on "Category Admin"
Click on "Add Category"
Can enter title, description etc.
Click on "Parent Category"
Drop down shows:
Please select one
Member's Categories

Cannot select "Member's Categories

Tried Brian's code fix and the Gallery didn't display at all.
imported_Darat is offline  
 


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
More problem - Error adding new category to the database. Returned id was 0. wrang Photopost Pro Installation & Upgrades 1 November 11th, 2005 06:41 AM
Adding category thunbs to parent of sub-cats? Scream And Fly Photopost Pro How Do I...? 2 March 19th, 2005 06:51 AM
Adding A Category str1p3r Photopost Pro How Do I...? 3 March 5th, 2005 01:14 AM
Adding Category imported_Graham How Do I? - vBulletin 3.0.X 2 December 29th, 2004 12:05 PM


All times are GMT -5. The time now is 01:18 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0