Fri, 10 September 2010

Total Visits
12196235
Visitors today: 1387

Main Menu
Home
Free Scripts
Free Email
Newsserver
Forum
Guestbook
Web Links
Contact

Our Sponsors
Stromvergleich

Chi Kien Uong
Bebelstrasse 90
70193 Stuttgart
Tel: +49(711) 4596534
Fax: +49(711) 9976123
Deutschland / Germany
If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
Advanced Poll IP time
 
Post new topic   Reply to topic    proxy2.de Forum Index -> Support Forum Printable version
View previous topic :: View next topic  
Author Message
flx666



Joined: 10 Feb 2010
Posts: 5

PostPosted: Wed Feb 10, 2010 11:23 am    Post subject: Advanced Poll IP time Reply with quote

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
Back to top
View user's profile Send private message
Carbonize



Joined: 12 Jun 2003
Posts: 3962
Location: Bristol, UK

PostPosted: Wed Feb 10, 2010 3:28 pm    Post subject: Reply with quote

Should be possible with a little editing of the PHP.
_________________
Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flx666



Joined: 10 Feb 2010
Posts: 5

PostPosted: Thu Feb 11, 2010 7:53 am    Post subject: Reply with quote

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.. Very Happy
Back to top
View user's profile Send private message
flx666



Joined: 10 Feb 2010
Posts: 5

PostPosted: Thu Feb 11, 2010 7:54 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Carbonize



Joined: 12 Jun 2003
Posts: 3962
Location: Bristol, UK

PostPosted: Thu Feb 11, 2010 11:18 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flx666



Joined: 10 Feb 2010
Posts: 5

PostPosted: Fri Feb 12, 2010 4:12 pm    Post subject: Reply with quote

Yes, and it works.... Thanks.. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    proxy2.de Forum Index -> Support Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Processed in 0.037334 seconds : 13 queries executed