Ed just went and tested flynaxes demo and you are correct its an error in the script as best I can see so a ticket is needed, was about to upgrade but will wait fr this error to be fixed now.
Ed just went and tested flynaxes demo and you are correct its an error in the script as best I can see so a ticket is needed, was about to upgrade but will wait fr this error to be fixed now.
Last edited by Pete Young; March 28, 2018 at 04:32 AM.
Hello Ed,
Now I see what you mean,
Yes, the option 'Limit use of package' doesn't work properly
to fix it you should go to ftp > includes > classes > rlPlan.class.php > find 'public function fixAvailability(&$plans)'
change a code inside:
to:PHP Code:
Only registered members can view the code.
PHP Code:
Only registered members can view the code.
Hello Rudi, Yes i already mentioned a solution like this, but it opens the plan forever, without limit. At least, it works for me like this.
Ed should confirm the solution.
yes something is wrong because if you go to admin >plans using manager you can see multiple entries of same user with same limited single plan and balance 0 after 8 entries for a limited plan of 3! after that you get the message of Hack detected your not allowed to use the plan..
i have this line under rlplan.class.php :
if (($plan_info['Limit'] > 0 && $plan_info['Using'] == 0 && $plan_info['Using'] != '' && defined('IS_LOGIN'))
and this under AddListing.php:
// Check plan using data
elseif ($plan_info['Limit'] > 0 && $plan_info['Using'] == 0 && $plan_info['Using'] !='') {
$errors[] = $lang['plan_limit_using_hack'];
}
Last edited by autocy; March 28, 2018 at 07:59 AM.
Hello Everybody,
Good Morning!
The posted code needs to be enclosed by parentheses, see below:
I made the modification posted by Rudi and it Worked, but I'm still testing, when I finish doing all the tests I'll post the result here in the forum.PHP Code:
Only registered members can view the code.
I want to thank everyone who helped... Pete Young, Autocy, Bahram Soltanirad, Viktor, and Rudi.
From Heart, Thank you
Last edited by Ed; March 29, 2018 at 07:06 PM.
Yes but only works if limited to 1 plan use only..
if you set plan limit 2 or above instead of changing the balance under plan using database it puts a new entry and then the limited plan is not disabled but after you try to add a listing you get the message for 'hack detected'.
The problem i think is because the limited plan i tested is a free one.
i think with a paid limited plan should work ok
Last edited by autocy; March 28, 2018 at 09:46 AM.
Hello Everybody
Unfortunately it gave error again, now the problem is occurring in reverse, a plan with a limit of 5 is the same as unlimited, ie even if I put a limit of 5 the plan will never display (Used-Up). So the user can announce as many times as he wants.
it's a shame because in the previous versions of 4.6.1 never occurred this error, there are other errors in version 4.61, but I will post on other topics.
I will wait for the return of the ticket I opened.
Thank you all!
Hello Autocy,
What you are saying is true, I think it is better to wait for the update of version 4.6.1 or wait for the solution through the ticket.
Screen shot below:
screen-error-limit.jpg
Thank you!
Last edited by Ed; March 28, 2018 at 05:54 PM.
this error happen with paid plan as well? Or just free plan?