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 > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 16th, 2007, 02:02 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
in table pp_notify - please define use of field "type"

In my database table pp_notify, there is a field entitled "type". Most users have type = 0 but there are a handful of type = 1.
Why are some set to 1 and most other notifications set to 0? What's the difference? When is type = 1 used?

The reason this is important to me is because I'm about to do a massive update to my database and change all the photos to "notify" instead of the default "don't notify", and I want to be clear what this field is for before I go and really make a mess.

Thanks in advance.
MediaHound is offline   Reply With Quote
Old May 16th, 2007, 02:35 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
type 0 is for photo notifications and type 1 is category notifications
__________________
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 16th, 2007, 02:51 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
Thanks Chuck.

I have another related question.
What is the easiest way to make all my existing photos set to notify the member when he gets a comment posted to them?
I had a look at the database, and it involves some real fancy footwork to do it by hand in the db. That is, to add all the new ones, in addition to the existing ones, giving each a unique ID and appending the photo id with the owner id.
Do you have a simple solution for this?
I think such a tool do do this bulk change should be included in the default script, but that discussion is for a different topic all together, beyond the scope here...
Do you have some simple way for me to do this?
THANK YOU VERY MUCH, IN ADVANCE!!
MediaHound is offline   Reply With Quote
Old May 16th, 2007, 03:15 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
As I await your kind reply , I'm still trying to whip up my SQL command to do this in one fell sweep. I pretty much have it ready..
Presuming you don't have an easy way to do this, could you just confirm with me that if I manufacture the proper sql code in the format:
Code:
Content visible to verified customers only.
where 242 = unique ID,
101 = user id,
2924 = photo id,
and 0 indicates this is an image, not a category,

If I get a nice text file / spreadsheet created with this format across every photo, and I insert it, would that be all I must do to solve my problem?
I did set new photos to default notify instead of default don't notify, so moving forward is no problem, but for these, if I do this, that's all that must be done?
To rephrase that , when a photo is set to notify the member of comments, is this the only table that is affected? If I insert my whipped up INSERT INTO commands, am I all set for what I want to accomplish?
I would of course make sure there are no duplicates...

PS, a bit off topic, but still on topic so to speak.. for all those people that want to do this themselves, to generate the unique ID's when I'm stuck in this situation, a quick visit to http://www.random.org/sequences (not my site) gets a lot of the dirty work done. You specify 1 then the highest number, submit, and there you have your numbers. You can then sort that ascending in excel.. sure beats typing out each number by hand or writing some script to do it.

Last edited by MediaHound; May 16th, 2007 at 03:25 PM.
MediaHound is offline   Reply With Quote
Old May 16th, 2007, 03:28 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
You can not write a fancy sql statement

Each photo needs to have a query entered which means you need to write a script to do this
__________________
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 16th, 2007, 03:36 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
A sample few lines of what I manufactured:
Code:
Content visible to verified customers only.
I have it ready to insert, but before I do, I would just like to know if this is all that needs to be done, that there is not some other table that hooks into the process of notifications.
Thanks!
MediaHound is offline   Reply With Quote
Old May 16th, 2007, 05:10 PM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Notifications are all contained in the notify table
__________________
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 16th, 2007, 09:05 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
Thanks.
I will report back if there are any problems...
MediaHound is offline   Reply With Quote
Old May 16th, 2007, 09:49 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Florida
Posts: 101
Ahh, one more thing. For the record, if anyone else were to do this, you should change the next auto-increment value.
Open phpMyAdmin, click your database, click the pp_notify table, then click "Operations" from the tabs on top. In there you will be able to change the auto_increment value. Make it something higher than where you are at now. The number you place there will be used for the next photo the scripts upload.
MediaHound 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
how to use "Aditional field type" hotavatars.com Photopost Pro Installation & Upgrades 3 November 27th, 2005 09:06 PM
User permission set to "YES" - but database field shows "0" skippy Classifieds Bug Reports 3 November 11th, 2005 02:45 PM
"I cannot see your phpBB2 "phpbb_groups" table."(NOT A BUG) Scimitar1 Photopost Pro Bug Reports 2 August 5th, 2005 01:58 PM
Another Extra field bug between "wanted" and "help wanted" templates. Johnny Doomo Classifieds Bug Reports 16 June 30th, 2004 07:41 PM


All times are GMT -5. The time now is 05:27 PM.

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