PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs From 1.0.0 (http://www.photopost.com/forum/bugs-1-0-0/)
-   -   Adding a Category from Category Admin (Frontend) (http://www.photopost.com/forum/bugs-1-0-0/116889-adding-category-category-admin-frontend.html)

Shon December 9th, 2004 06:27 PM

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

Sanjiyan December 9th, 2004 07:07 PM

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!

Brian December 9th, 2004 07:19 PM

Re: Adding a Category from Category Admin (Frontend)
 
Gotta love stupid mistakes like that. :o

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.

Sanjiyan December 9th, 2004 07:36 PM

Re: Adding a Category from Category Admin (Frontend)
 
sorted thanks Brian.

Sanjiyan December 9th, 2004 08:04 PM

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.

Shon December 9th, 2004 08:06 PM

Re: Adding a Category from Category Admin (Frontend)
 
Same here, fix one problem and create another... that's Brian's moto ;x

Sanjiyan December 9th, 2004 08:14 PM

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.

Brian December 9th, 2004 08:15 PM

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. :mad:

I've just updated the post above with the correct code.

Shon December 9th, 2004 08:35 PM

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 December 9th, 2004 08:36 PM

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.

Brian December 9th, 2004 08:45 PM

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?

Shon December 9th, 2004 08:48 PM

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 December 9th, 2004 09:50 PM

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 :\

Brian December 9th, 2004 10:21 PM

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)?

Shon December 10th, 2004 01:23 AM

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

Sanjiyan December 10th, 2004 03:47 AM

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 :D

Kirby December 10th, 2004 05:53 AM

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.

imported_Darat December 10th, 2004 02:30 PM

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.


All times are GMT -5. The time now is 10:13 AM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97