Evren Yurtesen The Himodel affiliate program!
Home arrow Articles arrow H-Sphere arrow Tips,Tricks and Tweaks arrow How to increase user traffic limits after increasing the plan traffic limit
Thursday, 20 November 2008
 
 
Newsflash

The http://dev.yurtesen.com is officially opened! You can register and submit your articles and guides. We will examine them and publish.

 
How to increase user traffic limits after increasing the plan traffic limit Print
Written by Evren Yurtesen   
Friday, 29 December 2006

Probably we all had the problem where we increased the traffic limit for a plan sometime after having hundreds of users using the plan. If you do not increase the traffic limit for each user  then your users will pay usage fees even if their usage is between the old preset value and the new preset value.

So we must increase the  limits for all the users using our plans to match the plan limits set. But only if the user's preset limit is lower than the current plan limit. If a user set their limit very high, so they wont pay extra usage fees, we shouldnt lower their limits!

Below is the SQL command which will accomplish this task for the main plans, if you want to do it for one of your resellers, please change the reseller_id=1 to suit to the reseller ID in question.

update traffics set tt_size=float8(plan_value.value) from parent_child,accounts,plan_value where parent_child.child_type=121 and parent_child.account_id=accounts.id and traffics.id=parent_child.child_id and plan_value.plan_id=accounts.plan_id and plan_value.name='_FREE_UNITS_' and plan_value.type_id=121 and float8(traffics.tt_size)<float8(plan_value.value) and accounts.reseller_id=1;

After issuing the command above in your SQL server, you must restart your CP process!

Last Updated ( Friday, 29 December 2006 )
 
< Prev   Next >
Google Search
Donate For My Work

Amazon Search


 
Top! Top!