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 January 27th, 2006, 03:34 PM   #1 (permalink)
Member
 
Join Date: Feb 2004
Posts: 114
Date Question

What would I need to do to call the date field (from the photo table) of an image into an if statement in the showphoto.php file?

For example, I am wanting to make a statement such as

Code:
Content visible to verified customers only.
This has been driving me nuts for several days! Everything I have tried has not worked! Thanks for any help!
ghinton is offline   Reply With Quote
Old January 27th, 2006, 03:48 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Well you would need to add say something like this above the line meantioned here in showphoto.php

Code:
Content visible to verified customers only.
Then in showphoto.tmpl whereever you want to display the message something like this maybe below the photo

Code:
Content visible to verified customers only.
__________________
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 January 27th, 2006, 05:04 PM   #3 (permalink)
Member
 
Join Date: Feb 2004
Posts: 114
Is there a way I can contain it all in the showphoto.php file without having to use the template file.

For example...

Code:
Content visible to verified customers only.
even though I can't get this to work.
ghinton is offline   Reply With Quote
Old January 27th, 2006, 05:15 PM   #4 (permalink)
Member
 
Join Date: Feb 2004
Posts: 114
The problem seems that if I get it to show, then it shows for all messages, not just the ones in the limit. It seems to be totally ignoring that there was a limit placed on it.
ghinton is offline   Reply With Quote
Old January 27th, 2006, 05:29 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Well I dont know what your doing but as noted you need to define cleandate above the line we run formatppdate on it.

What I posted will print a table row for just the photos that exist with this date thing. Keep in mind $User['usergroup'] is not normally defined in our base code also
__________________
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 January 27th, 2006, 05:37 PM   #6 (permalink)
Member
 
Join Date: Feb 2004
Posts: 114
Ok... that is probably the problem, because I am inputing this if statement above that, so I will try it below and see if that takes care of it. I already have the usergroup issue taken care of
ghinton is offline   Reply With Quote
Old January 28th, 2006, 11:42 AM   #7 (permalink)
Member
 
Join Date: Feb 2004
Posts: 114
Chuck... I just wanted to think you for this. It required a little more coding on my end to fix what I wanted it to do, but in the end I got what I wanted, so thanks a lot!
ghinton 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
Set Publish date clockwood8494 General Discussion 0 September 13th, 2005 10:16 PM
Sort by date Geiri Photopost Pro How Do I...? 8 September 1st, 2005 09:29 PM
Turn off the 'date' column and turn on a date of the last review column criscokid Photopost Pro How Do I...? 0 April 25th, 2005 05:18 AM
Browse by date rbl vBGallery Suggestions 0 December 20th, 2004 09:51 PM


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

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