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 November 26th, 2005, 06:20 AM   #1 (permalink)
Member
 
Join Date: Jul 2002
Location: London
Posts: 268
Calendar function - time it changes days

Hi,

I LOVE the little calendar that shows all the photos uploaded each day etc. Thanks so much for that.

I wonder if there is a way I can alter one thing it is doing. Mine changes to the next day at 11pm each evening. I think I know why, our server is set for a time one hour different to local time.

There are settings in PP and vb that correct the times for photos and messages posted and I'm not noticing any problems with anything else as I use those, but the calendar changing days at 11pm does look a little odd so if I can change that somehow I'd love to know how.

Thanks,

Steve
Steve_UK is offline   Reply With Quote
Old November 26th, 2005, 08:20 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Steve

In pp-inc.php maybe something like this

$today = getdate();
$today = $today + ($User['offset'] * 3600) + ($Globals['gmtoffset'] * 3600);
__________________
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 November 26th, 2005, 02:35 PM   #3 (permalink)
Member
 
Join Date: Jul 2002
Location: London
Posts: 268
Thank you Chuck for the great support.

I'm not noticing problems anywhere apart from the Calendar, and I see that uses its own $today = getdate(); command in its template.

So, I have put your suggested code into that template, and my calpal.tmpl now reads:

Code:
Content visible to verified customers only.
I won't know until 11pm whether that works for stopping the day changing at 11pm for me or not, the calendar is still displaying fine after that change anyway, so that is a good start.

If I've not made the correct guess re what it is best to do above forgive me, it seemed to make sense as a way forward.

Steve

Last edited by Chuck S; December 17th, 2005 at 10:20 AM.
Steve_UK is offline   Reply With Quote
Old December 15th, 2005, 05:46 PM   #4 (permalink)
Member
 
Join Date: Jul 2002
Location: London
Posts: 268
Chuck,

Just for info on this, my notion to alter the calendar .tmpl file with your code didn't work and correct the calendar day.

Also when I tried it just as you wrote it above that gave this error:

Fatal error: Unsupported operand types

When people type comments under photos the time being set at -1 in the Photopost options seems to work perfectly, and it is only the calendar that seems to ignore the real time and instead use the server time.

calendar.tmpl of course says this below, and so seems to me to simply get the server time and then setup the variables from it, I'm not a programmer though so am guessing to an extent...

calendar.tmpl

Code:
Content visible to verified customers only.
Steve
Steve_UK is offline   Reply With Quote
Old December 15th, 2005, 05:58 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Right which is why I suggested the code in pp-inc.php
__________________
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 December 17th, 2005, 10:14 AM   #6 (permalink)
Member
 
Join Date: Jul 2002
Location: London
Posts: 268
Chuck,

That error I reported was what I got when I tried it where you said.

It didn't give an error in the calendar.tmpl file but it simply didn't work there.

Steve
Steve_UK is offline   Reply With Quote
Old December 17th, 2005, 10:21 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Steve

The code I posted is placed in pp-inc.php in the calendar function itself where noted. You dont place anything in the calendar template
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; December 17th, 2005 at 10:31 AM.
Chuck S is offline   Reply With Quote
Old December 17th, 2005, 10:35 AM   #8 (permalink)
Member
 
Join Date: Jul 2002
Location: London
Posts: 268
Chuck,

As I say, the code you posted gives me that error message when used as you specified.

Steve
Steve_UK 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
Trying out a calendar sidebar Michael P General Discussion 8 November 28th, 2005 08:02 PM
designated time(30 days) cointech Classifieds Installation & Upgrades 1 November 22nd, 2005 03:27 PM
pp 5.2 calendar problem(FIXED) filipv Photopost Pro Bug Reports 7 September 30th, 2005 12:40 PM
Problem with calendar and width. iloco Photopost Pro How Do I...? 5 September 28th, 2005 10:50 AM


All times are GMT -5. The time now is 08:55 PM.

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