Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1 through 25 (of 32,313 total)
  • Author
    Search Results
  • #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;
    }
    #242168

    In reply to: This forum is empty

    gkldh
    Participant

    hello how can i add link on text ??

    if ( $translated_text == 'This forum is empty.' ) {
    	$translated_text = 'new text';
    }
    #242129
    gkldh
    Participant

    hello @robin-w, thanks for reply.

    i am fresher in bbpress, kindly suggest me how can i do this ? any function or shortcode ?

    #242128
    Robin W
    Moderator

    anything is possible with code, but I know of no current plugin that does this.

    Robin W
    Moderator

    https://stackoverflow.com/questions/59336951/message-trying-to-access-array-offset-on-value-of-type-null

    The parser php file says the code is from

    This is a compressed copy of NBBC. Do not edit!

    Copyright (c) 2008-9, the Phantom Inker. All rights reserved.
    Portions Copyright (c) 2004-2008 AddedBytes.com

    I would hesitate to correct it, but you could alter lines around 1289 to have a fix as in above link.

    But I’d suggest you go to a version of php before 7.4 to do the import, and then after import go back to a supported php version

    #242023
    Stephen B
    Participant

    Yes, I’ve tried the other shortcodes as well and the same issue happens with all of them

    #242013
    Robin W
    Moderator

    ok, thanks.

    I cannot see why it would do this, unless it thinks it is a bbpress page and should add the sidebar.

    Is it doing this for any bbpress shortcode – maybe as a test try some others and then come back

    Robin W
    Moderator

    so which of the methods in this link item 3 are you using?

    Step by step guide to setting up a bbPress forum – Part 1

    #242007

    In reply to: PHP Deprecated

    jakerouge
    Participant

    Hi there,

    Was there ever a fix found for this as I still have the depreciation warnings. I have tried both these plugins and neither work.

    Deprecated: Creation of dynamic property BBP_Forums_Component::$members is deprecated in /website/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 149
    
    Deprecated: Creation of dynamic property BBP_Forums_Component::$activity is deprecated in /website/wp-content/plugins/bbpress/includes/extend/buddypress/loader.php on line 153

    Thank you in advance

    #242000
    Stephen B
    Participant

    You can see an example page now here:
    http://bit.ly/4eG3RLY
    The shortcode also uses the page title (where the shortcode is pasted) instead of the topic title.
    Is it because of incompatibility with the theme?

    #241984
    Stephen B
    Participant

    Thanks for replying and yes, I am using the topic ID and it’s showing the correct topic.
    The issue is that the shortcode is displaying the forum sidebar in addition to the topic.
    You can see here a screenshot of the source code https://ibb.co/2PS9qW1

Viewing 25 results - 1 through 25 (of 32,313 total)
Skip to toolbar