+ Reply to Thread
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: Edit listings have problems with change plan and edit listings

  1. #11
    Quote Originally Posted by Wei Hong View Post
    if user use up free plan (has more than 1 limited usages), user can't edit page. Rudi has instruct code to fix it. And now you report another issue with the same feature changing plan in edit page.
    Wei, may i know the instructs? and yes it is another issue. please check and confirm

    Quote Originally Posted by Rudi View Post
    Guys,

    as it's not a quick solution (changing plan via edit form) I suggest hiding plan section on edit listing form for now
    and you can change plan via Renew/Upgrade Package option

    and then we'll make the right decision regarding this issue for the future update
    Ok Rudi... i put required code for hiding. Also please read my explanations about the 2nd problem and also i will try to find a solution for both of them. Thanks

  2. #12
    Yes you can check fix for it here
    http://forum.flynax.com/showthread.p...highlight=plan

    Basically if user used up a free plan usage, they can no longer edit their page. You can reproduce this my create a free plan then set limited usage to 3 times. Try to use up the plan then edit listing.

  3. #13
    Quote Originally Posted by Wei Hong View Post
    Yes you can check fix for it here
    http://forum.flynax.com/showthread.p...highlight=plan

    Basically if user used up a free plan usage, they can no longer edit their page. You can reproduce this my create a free plan then set limited usage to 3 times. Try to use up the plan then edit listing.
    Thanks wei, I knew this post and applied it. but that solution has one little problem.
    If you change category, it doesn't allow edit again! check it please.

  4. #14
    Quote Originally Posted by Bahram Soltanirad View Post
    Thanks wei, I knew this post and applied it. but that solution has one little problem.
    If you change category, it doesn't allow edit again! check it please.
    I think you just found a new bug related to the feature of changing plan in edit page.

  5. #15
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello guys,

    Could you try this code regarding the problem with editing listing when single plan is used up:

    - go to includes > classes > EditListing.php > private function validatePlan

    change:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code
    then go to templates > controllers > edit_listing > step_form.tpl

    change:
    Code:
    Only registered members can view the code.
    to
    Code:
    Only registered members can view the code.

    tell me about results please

  6. #16
    Hello Rudi, It is a progress but still if you change the category in edit page and try to save, it generates error Please choose a listing plan below Or $lang.notice_listing_plan_does_not_chose
    By the way i think below code the same as yours but a little better in syntax.
    Code:
    Only registered members can view the code.

  7. #17
    Quote Originally Posted by Bahram Soltanirad View Post
    It is not about me Wei, It is current flynax process.

    Solution for problem 1 based on Wei's comment:

    your_template_folder/controllers/edit_listing/step_form.tpl

    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    Hi Bahram, I tried your solution 1 but selecting plan still show in edit page.
    NVM I found it.

    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.

  8. #18
    I also found another problem. If you choose another category in Edit page, then you won't be able to change back to your old category. A refresh would fix this. Can I disable changing category in edit page as well similar to disable in changing plan? I tried the disabled="disabled" but it seems not to do the trick

  9. #19
    Hello Wei, yes changing category in edit page causes some other problems, but if we disable it, then how user change it?
    there is no other place to edit category.
    About disabled="disabled" , yes you right, forget it , but below temporary solution is a little better except for category change.

    Find:

    Code:
    Only registered members can view the code.
    Change to:

    Code:
    Only registered members can view the code.
    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    Last edited by Bahram Soltanirad; August 9, 2018 at 10:49 AM.

  10. #20
    Hello all,
    This is the final temporary solution for Edit page problem. It disables changing Plan in Edit listing page. Also there is no problem with category change.I tried to use minimum code and changes. Enjoy!

    your_template_folder/controllers/edit_listing/step_form.tpl

    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    Find:
    Code:
    Only registered members can view the code.
    Change to:
    Code:
    Only registered members can view the code.
    includes/classes/EditListing.php

    Find:
    Code:
    Only registered members can view the code.
    Add below it:
    Code:
    Only registered members can view the code.
    includes/classes/rlPlan.class.php

    Find:
    Code:
    Only registered members can view the code.
    Add below it:
    Code:
    Only registered members can view the code.
    Again... this is a temporary solution until Flynax solve the problem. Please let me know if there is any issue with this solution.
    EDIT: I changed some codes . please use latest changes.
    Last edited by Bahram Soltanirad; August 12, 2018 at 11:13 AM.

+ Reply to Thread