Webmastersite.net
Register Log In

funds deduction misbehavior
all reverted to regular after one day

Comments on funds deduction misbehavior

peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Nov 06, 2007 - 3:51 PM:

Paul,

Can you have a moment to check if your having the same difficulty:

At my customized version 4.1.9 :

At link settings:
Link types: priority1,priority2,priority3,priority4,priority5,priority6
Default days to expiration 32

At Sponsorship Settings:
Deduct the incrimental fee every 1 day
Use different funds for each sponsorship level? Yes.

Link Type Promotion: Yes
Incremental Fee: 1.06,0.78,0.71,0.62,0.56,0.5

I have added different links of different types with different amount of funds.
Two of them should have to be reverted to regular after one day, they were, but all of the links were reverted to regular after one day too regardless of their funds. I have added funds of 17,15,1 etc.

I will continue testing anyway
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Nov 07, 2007 - 5:16 PM:

Paul,

It remebered me the difficulty we had at:
www.webmastersite.net/forum...9&findpost=28123#post28123

Also all these links were submitted and edited at the very first hour of the morning.

Searching for " if ($tryit > time()) " within the files ,
I found at that at suggest.php we have:


if ($thislink->expire)
{
$tryit = strtotime($thislink->expire);
if ($tryit > time()) $thislink->expire = $tryit;
else $thislink->expire = time() + ($thislink->expire * 86400); // calculate expiration date


I believe the difficulty is here, I will do mere tests and comment.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Nov 07, 2007 - 7:15 PM:

Paul,

I confirm that publishing the very first hour of the day expire value is changed to 0.

I believe we would need to do the same correction here at suggest.php as it was done before for edit.php .

Also maybe a simmilar situation would happen to $effectivetime variable at edit.php and suggest.php that would need to be modified.

Thanks.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 08, 2007 - 11:36 AM:

What do expirations have to do with sponsorship? Nothing that I can see.

The code you're quoting makes it try to convert a date to a timestamp, and if it's not a date it caclulates from the assumption that it's a number of days. That's what it should do so there's nothing wrong with it.

effectivetime is a little different -- it only accepts a date, not a number of days. That is, however, in line with what the page requests so I don't see a problem.
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Nov 08, 2007 - 2:36 PM:

Paul,

- When a link expires it's usually reverted to regular this is why I started presenting a sponsorship problem but finally realizing the problem was on the expiration side really.

- The main difficulty is that ,
If I post a link before 1:20 am, (let's say at 1:05am) with a expire value of 120 days, strtotime (120) is giving the timestamp of the same day at the hour of 1:20 am. If we have not reached that hour we have the problem I presented, with the link expiring the same day.

You already found a solution that you implemented at edit.php , it's at the link I mentioned, please reviewed at : www.webmastersite.net/forum...9&findpost=28123#post28123
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 09, 2007 - 6:45 PM:

I don't see why strtotime would accept a number, but I'll check directly to exclude numeric values.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.