If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Poll IP time  XML
Forum Index » Support Forum
Author Message
flx666
Beginner

Joined: 10/02/2010 12:19:48
Messages: 5
Offline

Hi.

I need to set the IP tabel tjeck to 10 minuts - but I can only set hours.... Is there somewhere in the code I can fix this or anything else...?

Regards,
Henrik
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Should be possible with a little editing of the PHP.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
flx666
Beginner

Joined: 10/02/2010 12:19:48
Messages: 5
Offline

Hi Carbonize...
Yes, I have tried - but didnt find anything useful.

I looked in the class_plist.php - I guess this is the one handling IP?

THere was a line like:
$exp_time_arr[] = $this->db->record['exp_time'];

But cant really find anywhere I can change this....

Hope someone is better in PHP than me..
flx666
Beginner

Joined: 10/02/2010 12:19:48
Messages: 5
Offline

Found this, also in class_plist.php.....

$data['timestamp'] = date($this->date_format,$this->plist_data['timestamp'][$i]+$this->pollvars['time_offset']*3600);
$data['exp_time'] = date($this->date_format,$this->plist_data['exp_time'][$i]+$this->pollvars['time_offset']*3600);

Could this be the line to change?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I just looked and the actual line you want is in include/class_poll.php

$today = time()-$this->pollvars['lock_timeout']*3600;

Which translates as the number of hours you set it to multiplied by 3600 to get the number of seconds in that period. If you want to drop it to minutes just change the 3600 to 60.

That is assuming you are using the database version.

If using textfile version just open same file and replace both instances of 3600 with 60.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
flx666
Beginner

Joined: 10/02/2010 12:19:48
Messages: 5
Offline

Yes, and it works.... Thanks..
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum