Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter sinapars

    (@sinapars)

    FYI:
    I was able to solve the problem by making the following changes:
    In This File:
    betterdocs/includes/FrontEnd/TemplateTags.php?> Line 317 and 318
    Replace:

    $heading_name = preg_replace('/<[^<]+?>/', '', $matches[0]);

    With:

    $heading_name = strip_tags($matches[0]);

    And Replace:

    $heading_name = ! empty( $heading_name ) ? strtolower( str_replace( " ", '-', preg_replace('/<[^>]+>|[^a-zA-Z\s\d]+/', "", html_entity_decode( $heading_name ) ) ) ) : '';

    With:

    $heading_name = !empty($heading_name) ? strtolower(str_replace(" ", '-', preg_replace('/[^\p{L}\p{N}\s]+/u', "", html_entity_decode($heading_name)))) : '';

    and In This File and directory:
    betterdocs/includes/Shortcodes/ToC.php?> Line 97 and 98

    Replece:

    $heading_name = preg_replace( '/<[^<]+?>/', '', $current_title );

    with:

    $heading_name = strip_tags('', $current_title );

    and replece:

    $heading_name = ! empty( $heading_name ) ? strtolower( str_replace( " ", '-', preg_replace('/<[^>]+>|[^a-zA-Z\s\d]+/', "", html_entity_decode( $heading_name ) ) ) ) : '';

    with:

    $heading_name = !empty($heading_name) ? strtolower(str_replace(" ", '-', preg_replace('/[^\p{L}\p{N}\s]+/u', "", html_entity_decode($heading_name)))) : '';

    Definitely, these changes in the final version need a more detailed technical review by your development and QC team
    I tried my best to help you and solve this problem and I hope this information will help you

    BR

    Thread Starter sinapars

    (@sinapars)

    @amitbarai013

    Please see my last post on the first page of this thread

    BR

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars,
    Hope you are doing well.

    Thank you sincerely for providing us with the update on the resolved issue regarding TOC. It’s great to hear that the problem has been successfully addressed. I will inform this to the Dev team. This will help us.

    If you have any further queries or require assistance in the future, please don’t hesitate to reach out. We’re here to help.

    Thank you once again, and have a wonderful day!

    Best regards,
    Amit

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hello sinapars,

    Thank you so much for providing us with the update on the resolved issue regarding TOC. We are glad to know that your issue is resolved. As your issue is resolved, so we are going to mark this topic as resolved for now.

    Please feel free to let us know if you face any issues further or need assistance. We are always here to help.

    Thank you!
    Have a good day! ??

    Thread Starter sinapars

    (@sinapars)

    Hi Again @amitbarai013,
    Hope you are doing well.

    Almost a long time has passed since announcing this problem and even providing a solution to fix it.
    But unfortunately, it has not yet been officially included in your updates
    Is there a fix for this problem in your list of future updates?

    BR

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hello?sinapars,
    Hope you are doing well.

    Actually, the Dev version I shared with you hasn’t been merged into the main plugin yet. I will discuss this matter with the Dev team. Hopefully, it will be incorporated into a future version of the plugin. I will keep you updated once I receive further information from the team.

    Thank you for your understanding.
    Have a good day!

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi sinapars,
    I hope you are doing well.

    I am glad to inform you that Persian URL in the TOC issue is resolved in one of the Dev versions of the plugin. You can download the updated plugin from the following link: https://d.pr/f/sMcjoL

    We plan to merge this fix with the next release, which will be available soon. Kindly ensure to keep the BetterDocs plugin updated once the new version is released.

    If you have any further queries or need assistance, please don’t hesitate to reach out.

    Thank you.

    Thread Starter sinapars

    (@sinapars)

    Hi Again @amitbarai013,
    I hope you are doing well.

    Thank you for reviewing and following up on this issue
    I installed the dev-version and apparently the problem is solved and everything works properly
    Thank you very much

    If I see a problem during use and more detailed checks, I will definitely let you know

    BR

    Plugin Support Amit Barai Alit

    (@amitbarai013)

    Hi?sinapars,

    Thank you for informing us about the update. I’m delighted to hear that the issue that you mentioned has been resolved with the dev version of the plugin, and everything is functioning smoothly.

    I hope you love my support so far.

    That would be awesome if you could give us support by reviewing us 5-Star from here: https://www.ads-software.com/plugins/betterdocs/#reviews

    This may help us to boost our energy and provide better support. And also, help us to grow more.

    Thank you.
    Have a good day! ??

    Thread Starter sinapars

    (@sinapars)

    Hi @amitbarai013

    Dealing with your wonderful support team has always been a pleasure and hope for me and maybe that’s why I probably have the most threads on your plugin support page.

    BR

    • This reply was modified 7 months, 2 weeks ago by sinapars.
Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘TOC not correct working with persian (UTF-8) Character’ is closed to new replies.