 | |  | | | General Discussion General use discussion forum for PhotoPost products. |
March 25th, 2008, 08:04 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Bulk Mature Switch with
What can be done to tweak the mature switching for a all pics in a category in bulk rather than editing one by one? http://skidpics.com |
| |
March 25th, 2008, 08:12 PM
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
You could run a query on your DB: update photos SET ismature=1 WHERE cat=###;
(add in your prefix if you have one)
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
March 26th, 2008, 07:11 AM
|
#3 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
Thanks Micheal for that tip!
|
| |
April 1st, 2008, 11:51 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Dec 2004
Posts: 172
|
This seems more of a reactive process versus proactive. is there any way that a category can be flagged as mature. This query pretty much has to be run with any additions of media to that category.
|
| |
April 1st, 2008, 12:48 PM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
categories are not set mature images are and a user sets whether their image is mature or not and users select whether they want to view mature content or not
|
| |
April 8th, 2008, 10:03 AM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
another question on this then. How can it be integrated during registration with SMF so that it asks when registering? instead of users having to edit their profile in PP in order for this to take effect?
|
| |
April 8th, 2008, 10:42 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Well I guess that would require you to write some modification to your smf forum scripts to do that.
|
| |
April 11th, 2008, 06:31 PM
|
#8 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Michael P You could run a query on your DB: update photos SET ismature=1 WHERE cat=###;
(add in your prefix if you have one) | my prefix is pp_
so that would be:
update pp_photos SET ismature=1 WHERE cat=###;
correct?
Would be nice if you can just do that per category, or bulk photo edit. Basically just have to set a query then to do this based on all pics in category, correct?
|
| |
April 11th, 2008, 07:13 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Yes thats what the query would look like.
|
| |
May 7th, 2008, 07:23 AM
|
#10 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
| Quote:
Originally Posted by Michael P You could run a query on your DB: update photos SET ismature=1 WHERE cat=###;
(add in your prefix if you have one) |
Do I run that from the root of the DB? I am using the following comment, with prefix, and I tried in several different places within pp_photos, but no luck.
update pp_photos SET ismature=1 WHERE cat=532
|
| |
May 7th, 2008, 10:58 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
You run that when actually in your photopost database within phpmyadmin viewing the tables or the pp_photos table itself and hit the sql box in phpmyadmin.
|
| |
May 8th, 2008, 11:55 AM
|
#12 (permalink)
| | Ultimate Member
Join Date: Jun 2007 Location: Texas
Posts: 1,362
|
that worked like a charm.
I would be nice to write some coding that perhaps we can add intro the intro for the category, display ONLY if admin is logged in to query the db category to set all images to mature - that way, no manual edit would have to be done, and since some users forget the switch, would allow easy editing of new uploads going to that category instead of editing pics one by one at times.
|
| |
May 8th, 2008, 12:13 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Feel free as always to make suggestions in the suggestions forum.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:00 AM. | |