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 February 18th, 2005, 11:09 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Smile Setting The Time So It's Correct?

For the life of me, I can't see any time config options in the PP Admin areas. Just where is it, anway.
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 07:29 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
What version you using? The timeoffset from server is in the config and the data format is also but time is only in 12 hour format. PP5 brings in 24 hour time ability
__________________
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; February 19th, 2005 at 07:39 AM.
Chuck S is offline   Reply With Quote
Old February 19th, 2005, 03:58 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
I'm using v4.86. I would think there could be a way to get the time from the database being used for the program or the forum time?
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 05:30 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Time does not come from a database it comes from a server and thats why in the config you have a global offset. If your server is say in california and you live in New York. You place 3 in the server offset place in the photopost config so posts display eastern time.
__________________
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 February 19th, 2005, 06:32 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
So, when you say config file, which one. The config_int.php or the config_inc.php. Or is there another place.

Oh wait, I would imagine it's in the pp_inc.php. I see where it says gmtoffset, but I'm a little over my head on messing around with this.

P.S. I'm exactly 8 hours behind of what I should be.

Last edited by digitaldingus; February 19th, 2005 at 06:39 PM.
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 06:47 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Well this is where you set versus the time difference between server and your location you want everyone to think your in so. Then users select there own specific timeoffset to view things in there own time.

For example my server is in central time. I am in eastern so I want everyone to say think my site is eastern as thats where I am so I place 1 in the global offset.
__________________
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 February 19th, 2005, 07:02 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Quote:
function thetime($inhour,$inmin) {
if ($inmin < 10) {
$inmin="0$inmin";
}
if ($inhour == 0) {
$inhour = str_replace("0", "12", $inhour);
$outclock=$inhour.":".$inmin."am";
return($outclock);
}
else {
if ($inhour < 10) {
$inhour = str_replace("0", "", $inhour);
}
}
if ($inhour > 11) {
if ($inhour != 12) {
$inhour=$inhour-12;
}
$outclock=$inhour.":".$inmin."pm";
}
else {
$outclock=$inhour.":".$inmin."am";
}

return($outclock);
}


function formatpptime( $date ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);

$cclock = thetime($hour,$min);

return( $cclock );
}


function formatppdate( $date, $glob_date = "" ) {
global $Globals, $User;

$uoffset = $User['offset'];
$soffset = $Globals['gmtoffset'];
$date = $date + ($uoffset * 3600) + ($soffset *3600);

list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($date);
$mon++;
$year=1900+$year;.
So, where do I make the changes.
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 07:07 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Ok, here's what I did. I changed the 3600 values to 10800, and it appears to be working. I'm on the west coast (PST time), btw. I figured 3600 * 3?

Last edited by digitaldingus; February 19th, 2005 at 07:09 PM.
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 07:30 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
No you dont alter the files.

It is in the main Photopost config GMT time offset try putting 3 or -3
__________________
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 February 19th, 2005, 08:57 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Which file? I need a specific name. And a specific area to where I adjust.
digitaldingus is offline   Reply With Quote
Old February 19th, 2005, 09:21 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
The main config in admin section.

The other one is just integration options.
__________________
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 February 20th, 2005, 03:09 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Posts: 34
Ok, I was thinking you meant an actual file to configure, versus the admin panel. I now see the GMT Offset. Got it working and revised the other file back to 3600.
digitaldingus 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
Correct way to import? imported_ludachris How Do I? - vBulletin 3.5.X 1 October 15th, 2005 03:22 PM
5.12 showmembers not showing correct last photo(NOT A BUG) Astaran Photopost Pro Bug Reports 14 September 19th, 2005 07:16 AM
homelink in nav bar not correct adam_99uk Installs and Upgrade - vBulletin 3.0.X 1 June 8th, 2005 09:15 AM
Some minor bugs that would help to correct memobug ReviewPost Bug Reports 0 March 21st, 2005 10:17 PM
Correct location of PP Gallery iphoto Photopost Pro How Do I...? 3 January 2nd, 2005 04:12 AM


All times are GMT -5. The time now is 01:53 AM.

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