sinapars
Forum Replies Created
-
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 98Replece:
$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 youBR
Hi Again @amitbarai013,
I hope you are doing well.With a more detailed investigation, I realized when exactly this problem occurs:
When the Show TOC Title in Anchor Links option is enabled!
If this option is off, everything works fine
screencast:
https://drive.google.com/file/d/1etcNr-WlNBwShIBMMDHoxXh77EWmlWmu/view?usp=drive_linkBR
Hi Again @amitbarai013
The problem has not been solved, but honestly, the reason why I did not take action through the link you sent was that I had nothing more to offer, and whatever it was, I raised it in this thread.
And the most important thing is that I have carefully checked the movies that you sent, even in those versions, the problem has not been solvedBR
Hi @amitbarai013,
The copy option is active and if you pay attention, the links are copied in the first video, but maybe you mean the second video. Yes, in the second video, there is this problem with the default theme (2024).
BR
Hi @amitbarai013,
Unfortunately, the problem was not solved
At the beginning of the video, I showed a part of the code that was changed to make sure that the version you sent is active and installed.
https://drive.google.com/file/d/1u7z3MpfHVHg6aBGD8oXjlXrJu4592auk/view?usp=drive_link
Just to make sure everything is correct, did you send me the correct copy? Because the version you sent me is 3.1.0 and the latest version is 3.2.0
And as I mentioned before and according to the video below, this feature is completely disabled in the default theme. Is it possible that these problems are related to me?default theme:
https://drive.google.com/file/d/1_Lpk0y2LLC5RAhlNPe9kxNArTKWe-k4x/view?usp=sharingBR
Hi @amitbarai013
First of all, I want to thank you for the professional and good support of your team
The problem of the print button was not very important and I said it only for your information and I am happy that it has been fixed in the next version
But unfortunately, the main problem was not solved ??
According to my review and comparison, I found that the following piece of code in the path below has been rewritten to solve this problem:betterdocs/includes/FrontEnd/TemplateTags.php > Line 333
get_permalink() Change to : urldecode(get_permalink())
but unfortunately, the problem was not solved either by replacing this piece of code or by replacing the entire plugin folder.BR
- This reply was modified 1 year, 3 months ago by sinapars.
And the next thing, which may not be bad, I will mention here
The print button is always displayed in the default theme (2024), even if it is disabled in the settingsHi @amitbarai013,
Thanks for response and send screen recorderi am not using WPML and create the Persian docs by default
please check this screen recorder:
https://drive.google.com/file/d/13p1_utgQaIq5RMHninT22NwEoaNiN3rP/view?usp=sharingIf you pay attention, the second title (?? ???? ???) didn’t work properly because its URL was similar to the first one
And the next point, when I change the themes to the default (2024), this function is completely disabled and even the copy button is not displayed:
https://drive.google.com/file/d/1_Lpk0y2LLC5RAhlNPe9kxNArTKWe-k4x/view?usp=sharingI disabled all the plugins I had and saved the Permalinks settings once, but the problem was not solved
BR
Hi Again @amin7,
Thanks for response
Can I add new items in this thread? Or should I open a separate topic for each?
It will be useful if you consider the addition of these items:
1.Add shortcodes for display:
The most viewed articles (by specifying the time, for example, the last 7 days or 1 month, etc)
Latest (Recent) articles (based on publication date)
last modified articles (based on the date of the last date)
Most popular articles (based on likes and by specifying the time, for example, the last 7 days or 1 month, etc)
And in all cases, we can manage the number of displayed articles2.In your plugin, under the search box, there is an option to display popular words searches by users
But the problem is that after years or months, most of the words will be repeated and not changes
I think it would be great if it was possible to specify a time period for displaying these words
For example, the most popular searches (in the last week or last month or…)Of course, we should still have the current option of displaying the popular words searched by users based on the number of searches, because it will be useful for sites with low traffic.
BR
Hi again @sadmansakibnadvi
I hope you are great
I reopened this topic for this reason because I realized that this problem still exists on the search for Instant Answer feature, and I also checked the code changes as if no changes were applied to the search for the Instant Answer feature.
Thank you for a more detailed reviewBR
Surely @zebaafiashama,
it was done with prideBR
Considering your excellent follow-up, I hope this topic and this feature request will be done like your good follow-up:
https://www.ads-software.com/support/topic/betterdocs-feature-requests/
Unfortunately, due to the lack of many of these features, I still could not migrate to your pluginBR
Hi dear @zebaafiashama
sorry for delay
Thank you very much for following up and solving this problem
I imported my articles, and according to my review, the problem seems to have been solved and the search results are exactly the same as the current my plugin (Minerva-KB).I think it is better to resolve and close this topic:
https://www.ads-software.com/support/topic/persian-search/BR
Let’s assume that I am not your customer at all and as a real person I am just making a suggestion to improve your plugin.
Probably, when I want to open a new ticket, they will ask me for a license, and according to the above explanation, the request will not be processed there either.Hi @njones35
Unfortunately, you see all your business and products as money
From the smallest features of your plugin, which you made in the form of add-ons, to make more money than support, as soon as an issue is raised, you just write a fixed text and refer to support (to make money again), regardless of whether the issue is raised at all. It may be a general bug that affects all your customers, it may be an exciting offer that differentiates your plugin from other competitors, and…
The topic and proposal that I raised are extremely important and practical, and I will also raise it with your competitors so that you can see what their treatment is with the user who is compassionately proposing to improve the plugin!!
If you also want to discuss this with the development teamOf course, you will probably use this feature as an add-ons to make more money…!!
Bye