PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old March 25th, 2008, 08:04 PM   #1 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
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
skidpics is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old March 26th, 2008, 07:11 AM   #3 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
Thanks Micheal for that tip!
skidpics is offline   Reply With Quote
Old 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.
kisii is offline   Reply With Quote
Old April 1st, 2008, 12:48 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 8th, 2008, 10:03 AM   #6 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
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?
skidpics is offline   Reply With Quote
Old April 8th, 2008, 10:42 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old April 11th, 2008, 06:31 PM   #8 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
Quote:
Originally Posted by Michael P View Post
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?
skidpics is offline   Reply With Quote
Old April 11th, 2008, 07:13 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Yes thats what the query would look like.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old May 7th, 2008, 07:23 AM   #10 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
Quote:
Originally Posted by Michael P View Post
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
skidpics is offline   Reply With Quote
Old May 7th, 2008, 10:58 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old May 8th, 2008, 11:55 AM   #12 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Location: Texas
Posts: 1,362
Send a message via Yahoo to skidpics
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.
skidpics is offline   Reply With Quote
Old May 8th, 2008, 12:13 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Feel free as always to make suggestions in the suggestions forum.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


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
Mature Content - mass update via SQL aacircle Photopost Pro How Do I...? 11 March 25th, 2008 04:09 PM
Mature categories with Mature switch skidpics General Discussion 1 March 21st, 2008 10:47 AM
mature content filter prevents loading but mature thumbnails still showing.. sross Photopost Pro How Do I...? 3 November 24th, 2007 05:49 PM


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

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