yt (@ar_m)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 32 total)
  • @ar_m

    Participant

    Thanks for your help in advance and your recent reply @robin-w.

    I would be happy if someone else could help me fix the problem.

    @ar_m

    Participant

    Hello @robin-w

    The code is tested and works fine. Thank you for that.

    It seems that the code needs two modifications to be converted into a complete code. These two modifications are:

    1- Modification related to the user
    Absolutely directing the logged in user to the first page of the site is not useful in most cases, because

    Suppose the user has entered a forum topic and wants to reply to it. For this purpose, he enters the forum by entering his user information. In the default WordPress mode, the user who is on the current page is considered a logged in user and can send a reply

    However, with the above code, the user is redirected from the current page to the first page of the site and must return to the initial page of the topic in question with a few clicks. This causes user annoyance and increases the bounce rate from the forum.

    Therefore, the code needs to be modified so that the user on the current page (meaning any page of the forum or site that has a comment) is logged in on the same page as the current user after entering his user information and logging in, but at the same time does not have access to the counter.

    2- Correction related to the site and forum administrator
    The same problem as above is true for the administrator. For example, the administrator enters the forum and wants to create a topic or reply to a topic, so he enters the login information. In the default WordPress mode, he is considered logged in on the current page, but at the same time, the WordPress admin bar is displayed at the top of the forum or site, which means he has access to the counter.

    However, with the above code, the administrator is redirected from the current page to the counter, which should return to the original current page with a few clicks, just like the same user.

    Is it possible to modify the code as described?

    Thank you very much in advance for your valuable help.

    @ar_m

    Participant

    Hi @robin-w
    The code works fine.
    Thanks for your help.

    @ar_m

    Participant

    Thank you for your reply.

    @ar_m

    Participant

    Of course, not exactly at the same time, but I initially announced the issue in the plugin forum, and after a day, I saw that there was no response. Due to the importance of the issue, which had an immediate negative impact on both the SEO of the forum content and its visitors, I raised it here to access the inevitable quick response.

    Considering your recent response, now that I have visited the plugin forum, I have seen the responses provided, which I will respond to there.

    I sincerely thank you for your efforts in solving the problem and your quick responses.

    @ar_m

    Participant

    The only bbPress-related plugin that is installed and actived on the site is the “Enable bbPress for Block Themes” plugin.

    @ar_m

    Participant

    Thanks for your reply

    I mean the twentytwentyfive WordPress theme block template.

    To view live errors, you can:

    1- By entering the forum home page address

    https://ghazavatonline.ir/forums/

    In the forum search form, enter a desired phrase and then press enter. Instead of displaying the search results, you will see in the header the error:

    Warning: Undefined array key “archive” in /home/ … /public_html/wp-includes/block-template.php on line 180

    Warning: Undefined array key “archive” in /home/ … /public_html/wp-includes/block-template.php on line 180

    2-Also, when you click on any of the tags that have topics assigned to them, instead of displaying the tags, the above error code is displayed and no topics are displayed

    For this, visit the address

    شکایت از قاضی دادگاه به علت عوض کردن جای متهم ها

    Click on the tag “تخلفات انتظامی قضات”

    Or go directly to the link

    https://ghazavatonline.ir/forums/topic-tag/disciplinary-breaches-of-judges/

    to see the same errors in the header and that no topic associated with the selected tag is displayed.

    Of course, it should be noted that the above errors are only generated when the twentytwentyfive block template is activated

    But when the twentytwentyfour and twentytwentythree templates are activated, they are not generated and work without problems.

    @ar_m

    Participant

    Thanks for your quick response.

    I didn’t know that you can’t use separate templates on the site and the forum.

    My problem is that, on the one hand, I want the Block Theme 2025 template to be active on the site, and on the other hand, in the forum, when I click on the tags or enter a phrase in the search field, the following error is displayed in the site header

    HP Warning: Undefined array key “archive” in /home/…../public_html/wp-includes/block-template.php on line 180

    Can you tell me how to fix this error?

    Thank you in advance for your help.

    @ar_m

    Participant

    The problem was solved by recent update of bbp style pack.
    Thanks very musch Mr Robin.

    In reply to: Edit profile link

    @ar_m

    Participant

    Mr. Robin
    Although there are still problems, I appreciate your efforts.
    God bless you.

    In reply to: Edit profile link

    @ar_m

    Participant

    It is throughout the site.

    In reply to: Seo for bbPress

    @ar_m

    Participant

    Hello Mr. Robin
    This plugin has a problem with not updating and has received a warning:

    “This plugin has not been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”

    Will this cause security issues, or problems with the plugin’s functionality, or interference with other plugins, especially with the new version of WordPress, etc.?

    In reply to: Edit profile link

    @ar_m

    Participant

    Thanks again for your efforts in resolving the issue.

    After updating the plugin to version 6.1.8, the ‘standard footer’ option was also tested in the Footer options section, but unfortunately it has no effect and the error still exists.

    In reply to: Edit profile link

    @ar_m

    Participant

    Also, no changes were seen with the recent update 6.1.7.

    In reply to: Edit profile link

    @ar_m

    Participant

    Yes, I enabled the option:

    If you are using shortcodes in your footer, this option should ensure they display correctly

    in the previous update you provided and it is still enabled.

    In reply to: Edit profile link

    @ar_m

    Participant

    Thank you very much for your time spent solving my and others’ problem.

    In response to your questions, it should be stated:

    1- Yes, I cleared the cache on the server and the browser before the last test.

    2- To be sure, I also tested the site with four browsers: Chrome, Edge, Mozilla Firefox, and Opera, and they display the same error.

    3- To clear up any doubts, I deleted the site in Google Custom Search and recreated it.

    When we haven’t made any customizations yet, the code works fine, but as soon as we make a customization, such as changing the color of the search box from white to black, the problem appears.

    4- Since I had placed the code in the header section under the header navigation, the problem occurred. I also tested the code in other parts of the site, such as the sidebar, but the problem remains.

    5- Unfortunately, I didn’t understand what you meant by the “Select standard footer” option in the theme settings of the style pack” because I basically don’t know where it is located. If possible, please tell me how to access it so I can do it.

    In reply to: Edit profile link

    @ar_m

    Participant

    Dear Rubin
    I know you are very busy, but despite that, you tried to solve the problem as soon as possible, for which I thank you very much.

    I downloaded the file and replaced it with the existing file in the location you provided, but unfortunately the problem of conflict with GSC was not solved.

    In reply to: Edit profile link

    @ar_m

    Participant

    Yes, I have full access to the hosting cpanel.
    I would be grateful if you could send the file.

    In reply to: Edit profile link

    @ar_m

    Participant

    Yes, the shortcode is only displayed for logged in users.
    But the problem of not changing the color of the shortcode in the forum footer as I explained earlier remains.

    In reply to: Edit profile link

    @ar_m

    Participant

    With many apologies
    Regarding the shortcode problem, I forgot to mention that this problem was tested in four browsers, and the results are as follows:

    A- In the Chrome browser, there is no problem of not displaying, but there is a problem of not being able to color, that is, when I place the extension shortcode inside the shortcode block and then place this block inside the group block and give it a color, for example, red, the shortcode is displayed correctly in the footer of the site with red color, but in the forum, the shortcode color is not applied.

    B- In the Microsoft Edge, Mozilla Firefox, and Opera browsers, it is not displayed at all.

    In reply to: Edit profile link

    @ar_m

    Participant

    2- With the update of the bbp style pack plugin to the new version, a new problem appeared related to the Google Search Custom activation code (gsc) on a personal site, explaining that:
    I use the gsc code in the Custom HTML block in the site header to activate Google Search on the site.

    Before updating the above plugin, there was no problem in executing the above code on the site and forum, but as soon as the plugin was updated and even before activating
    If you are using shortcodes in your footer, this option should ensure they display correctly
    It was observed that the words #gsc.tab=0 were added to the end of every address, including the site and forum, such as

    خانه

    and
    https://ghazavatonline.ir/forums/#gsc.tab=0

    and
    https://ghazavatonline.ir/concept-corruption-and-prostitution-in-article-639-islamic-penal-code-tazirat/

    This problem is such that it cannot be solved by disabling the add-on and inevitably the entire code from the above block must be deleted, which I also inevitably deleted.

    It is also worth mentioning that, to make sure that the recent problem is related to the bbp style pack plugin, I created a test site and activated the previous version of the plugin and used the Google code. There was no problem with the site and forum addresses, but after updating the plugin, it was noticed that the problem with the mentioned addresses appeared.

    Is it possible to solve the recent problem in particular?

    Thank you for all your hard work and honest efforts.

    In reply to: Edit profile link

    @ar_m

    Participant

    Hello Mr. Rubin
    Thank you for your efforts in solving the problem and updating the plugin.
    Since it was not possible to send the entire answer at once, I will send it in two parts:

    1- I updated the plugin and enabled the option
    If you are using shortcodes in your footer, this option should ensure they display correctly
    but unfortunately the problem of not displaying the shortcode in the footer of the site and the forum was not resolved and still remains, which you can see on the site and the forum at the following address:

    خانه


    and
    https://ghazavatonline.ir/forums/

    * It is worth mentioning that, with the plugin update, the problem of not being able to view all templates in the site editor section, which I had previously announced, was also resolved. I do not know if it was related to the shortcode problem or if you fixed it separately. In any case, thank you very much for fixing this problem.

    In reply to: Edit profile link

    @ar_m

    Participant

    Thank and that very kind of you, Mr Robin.

    In addition, as the 2025 WordPress block theme has other problems with your “bbp style pack” plugin, if it is possible for you to check and fix them.

    These are:

    1- When the bbp style pack plugin is active and you go to the theme editor section and click on Show all templates, only one template is displayed, not all templates that can be selected. The problem is solved by disabling the plugin.

    2- In the Topic/Reply Form plugin tab, in section 18. Limit Topic Tags to a list, when this option is activated and you refresh the site, at the same time and a little later it causes the editor section to go to the bottom right and the forum template to be broken.

    3- In the Topic/Reply Form plugin tab, in section 10. Topic Posting Rules, when the visual editor is activated, HTML codes are also inserted into the text, while this should not be the case.

    4- When the sidebar is activated for the forum through the bbp style pack plugin block or by ourselves, this sidebar is only displayed on the first page of the forum or the forum index, but is not displayed on the pages of subforums and topics, while like the classic template, it should be displayed on all sidebar pages.

    Thanks in advance.

    In reply to: Edit profile link

    @ar_m

    Participant

    As I said before “WordPress block theme 2025 “

    In reply to: Edit profile link

    @ar_m

    Participant

    yes of course.

    The site address is:

    خانه

    And the forum address is:
    https://ghazavatonline.ir/forums/

Viewing 25 replies - 1 through 25 (of 32 total)