Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 51 through 75 (of 32,373 total)
  • Author
    Search Results
  • #242523
    Robin W
    Moderator
    function rew_change_text( $translated_text, $text, $domain ) {
    if ($domain!='bbpress') return $translated_text ;
      $translated_text = str_replace('Forum', 'Elephant', $text) ;
    return $translated_text;
    }
    
    add_filter( 'gettext', 'rew_change_text', 20, 3 );

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #242503
    marcust7
    Participant

    Hello,

    I am creating my forum site and ideally I do not want the user profile to be clickable is there a setting or some code I can add to disable the links to the user profile/author links? If that isn’t an option does anyone know how I would adjust the styling within elementor for these pages and build a template for it?

    #242500

    I’ve also tried the following:

    – Deactivating Elementor + Elementor Pro.
    – Added the code in then last step on this thread: https://bbpress.org/forums/topic/bbpress-elementor/
    – – I’m not sure that thread is super relevant to my situation. I didn’t try putting any templates at all.

    I’m also experimenting with adding a brand new WP install at /forum/, and managing the forums as a separate CMS instance.

    #242496

    In reply to: Edit profile link

    Robin W
    Moderator

    thanks,

    1. so can you confirm that with the footer option set at

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

    The shortcode in the footer works.

    2. on the GCS problem, does this only happen on ‘forum’ pages, or is it throughout the site?

    #242494

    In reply to: Edit profile link

    Robin W
    Moderator

    ok, I need to to go back to standard footer to see if this fixes the gce issue as per previous post

    So as a further test if you did not have the conflict with gse before, can you select the ‘standard footer’ option in the style pack theme settings and whilst this will give you back the original shortcode problem, does it fix the gse problem, that will get me closer to the problem code !

    #242492

    In reply to: Edit profile link

    yt
    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.

    #242482

    In reply to: Edit profile link

    yt
    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.

    #242474

    In reply to: Posts are missing

    Robin W
    Moderator

    this is related to the country part of your url

    so

    https://telium.io/topic/usb-license-on-hyper-v-guest/

    does exist, but the link above is

    https://telium.io/en/topic/usb-license-on-hyper-v-guest/

    which has the ‘en’ part in it, and resolves to a 404

    #242459

    In reply to: Edit profile link

    Robin W
    Moderator

    no problem, I’m just a guy sat in his kitchen trying to help others – happy to see if we can resolve.

    Can you confirm that you have cleared cache on both server and browser before the latest test. If so…

    At the moment I am trying to work out which bit of code is causing the issue, and your test eliminated one area.

    So as a further test if you did not have the conflict with gse before, can you select the ‘standard footer’ option in the style pack theme settings and whilst this will give you back the original shortcode problem, does it fix the gse problem, that will get me closer to the problem code !

    #242451

    In reply to: Edit profile link

    yt
    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.

    #242436

    In reply to: Edit profile link

    yt
    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.

    #242434

    In reply to: Edit profile link

    yt
    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.

    #242433

    In reply to: Edit profile link

    yt
    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.

    seeanimalswild
    Participant

    Hello,
    No links, as we are not yet far enough to be stuck there, but the website is a wildlife travel blog and marketplace (as well as members area). I am using a plugin called Armember to create a few members areas within my site. I am using bbpress for much of the stuff that the members can do (mostly discussion forums of various kinds)

    I am looking for two things, I found small plugin extensions for BBpress for each, but both have generated errors, and the second crashed the whole website.

    Firstly, I am looking for a plugin which will list all contributions that a member makes, on their profile page. There are going to be a variety of forums as well as direct contact, but I am eager to allow people to have a kind of simple blog within their profile. I found “posts on profile” plugin to do this. This way, any post made on any forum, will be listed. Does anyone known another plugin which would do the same thing? Posts on profile is 10 years old, and so not surprisingly, it is causing errors. Alternatively, is there some sort of code I can add, which will do the job without a plugin? cant believe that this is a rare need?

    The other thing I was looking for, was the ability for readers to be able to rank posts – BBp core has this capability, but on installing BBp core, the whole website crashed instantly. As such, rather than trying to work out what plugin is crashing with it, it is likely to be better to find another. I am simply wanting to be able to give people the ability to rank other peoples posts, so that we can sort on a sensible metric (this cant be unique to BBP Core)

    Any help greatly appreciated.

    #242392

    In reply to: Edit profile link

    Robin W
    Moderator

    I’ve released version 6.1.6 which should fix the shortcode issue for footers and the templates displaying in your last post item 1.

    For the footer, you will see a new option in

    dashboard>settings>bbp style pack>theme support>Footer Options which you will need to set.

    #242367

    In reply to: Edit profile link

    yt
    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.

    #242353

    In reply to: Edit profile link

    Robin W
    Moderator

    After some research, I have found that the newer FSE themes (such as twenty 25)have an issue where shortcodes will not work in footers for what are called hybrid templates.

    I am working on a solution, hopefully with a resolution in then next couple of days

    #242352
    Robin W
    Moderator
    #242253
    kostritsaalex
    Participant

    Hey guys,

    How to replace the permalink structure from:
    {domain}{forum-slug}{usernicename}

    To:
    {domain}{forum-slug}{First_name-Last_name}

    Here is my code snippet hat change the structure of Permalink, but I am getting 404

    function custom_bbp_get_user_profile_url( $url, $user_id, $user_nicename ) {
    	// Get the user data
    	$user_info = get_userdata( $user_id );
    
    	// Check if user info is available
    	if ( $user_info ) {
    		// Get first name and last name
    		$first_name = isset( $user_info->first_name ) ? $user_info->first_name : '';
    		$last_name = isset( $user_info->last_name ) ? $user_info->last_name : '';
    
    		// Create custom user_nicename as "First Last"
    		$custom_nicename = trim( $first_name . ' ' . $last_name );
    
    		// Return the URL with updated user_nicename
    		return str_replace( $user_nicename, sanitize_title($custom_nicename), $url );
    	}
    
    	// If user info is not available, return the original URL
    	return $url;
    }
    
    // Hook the function into the filter
    add_filter( 'bbp_get_user_profile_url', 'custom_bbp_get_user_profile_url', 10, 3 );
    #242241

    In reply to: Edit profile link

    yt
    Participant

    The footer of the forum is the same area of the site footer.

    I’ve had just entered this code once and it displays diferently.

    #242236

    In reply to: Edit profile link

    Robin W
    Moderator

    so is the footer of the forum a different area than the site footer? or have you just entered this code once and it displays diferently?

    #242208

    In reply to: Edit profile link

    yt
    Participant

    I am a beginner in wordpress and bbPress so less familiar with PHP code.

    If it’s possible, send here the required code to paste in the “WPCode plugin” to generate the direct link to user’s profile in bbPress.

    Of course, I’m using your plugin but the shortcut [bsp-profile label=”Edit My Profile” edit=”true”] works in the site’s footer but doesn’t work in the forum footer.

    #242206

    In reply to: Edit profile link

    Robin W
    Moderator

    I understand what you want to do, it requires code which is in my plugin.

    If you don’t want to use my plugin, the code is in the shortcodes.php file in the plugin, feel free to use it.

    #242204

    In reply to: Edit profile link

    Robin W
    Moderator

    Install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and look at ‘Display profile link’ for how to use the shortcode.

    Then simply add the shortcode using a ‘shortcode’ block wherever you want it

    #242173

    In reply to: This forum is empty

    Robin W
    Moderator
    add_filter( 'gettext', 'rew_translations', 20 , 3 );
    
    function rew_translations( $translated, $text, $domain ) {
    	if ($domain != 'bbpress' return $translated;
    	if ( $translated == 'This forum is empty.' ) {
    		$translated = 'new text';
    	}
    	return $translated;
    }
Viewing 25 results - 51 through 75 (of 32,373 total)
Skip to toolbar