Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 976 through 1,000 (of 32,297 total)
  • Author
    Search Results
  • #228667
    sruddy
    Participant

    for now the forums are on a page that’s not full width, and they share the space with a sidebar. Until I redevelop the site with new theme, and format, I would like the images to open their full size when clicked. Is this possible with a setting or some code?

    #228639
    Robin W
    Moderator

    when I setup custom Profile Fields

    ok, sorry to keep asking questions, but it will hopefully get me to the stage when I can give an answer 🙂

    so this is bbpress profile – yes?

    and how are you setting up custom profile fields? – code, plugin, template change etc.?

    #228571
    sruddy
    Participant

    So I guess I’m not understanding how this all works. The website is a photography club and is wordpress.org. I just added this bbPress forum plugin and have all the forums set up. I’m ready to test with two other people. I now need to have a place were the two others can register, I then want an email so I can review and approve them. How do i accomplish this? After that I think the login page with the shortcode provided by Robin W should work.

    #228560
    sruddy
    Participant

    I tried the shortcode on a new page named login. Looks the same as the login page I use to administer the site. So I guess I need a forum registration page first, then during registration I think I can make it so forum members can only see the website and forums??

    #228549

    In reply to: identify user with @

    Robin W
    Moderator

    I wish I could claim some credit – it was some code I found somewhere !

    From looking at the code, I’m presuming that bp has that functionality somewhere else – this just seems to add it for topics/replies.

    ankskv1
    Participant

    I am getting blank pages while opening topics and I am using TwentyTwentyTwo theme.
    I have used forum index short-code to show the forum on the page.

    And the forum index page is showing index at very small size can I increase that without changing theme? (Any suggestions on this)

    Website: https://coolguy.x10.mx/tcin/forum/

    #228539
    Robin W
    Moderator

    site login is fine.

    I tend to create a page – say aclled ‘login’ with this as the shortcode

    [bbp-login]

    and then have that page’s url as the one I send to users

    #228528

    In reply to: identify user with @

    carasse64
    Participant

    Thank you @mike80222. I have read an old topic on this forum where someone had created with feature with lines of code. I have to find it again 🙂

    #228527
    Robin W
    Moderator

    sorry, test was invalid – I had my test user with too many privileges!

    So, users who can ‘Throttle’ (see https://codex.bbpress.org/getting-started/before-installing/bbpress-user-roles-and-capabilities/ for list) bypass the duplicate check – so likely that if you were testing you will have that capability.

    Can you comer back if you still have an issue.

    #228449
    Robin W
    Moderator

    untested, but this should work

    add_filter( 'bbp_get_topic_post_date', 'rew_date_only' , 20, 6) ;
    
    function rew_date_only ($result, $topic_id, $humanize, $gmt, $date, $time ){
    		$topic_id = bbp_get_topic_id( $topic_id );
    
    		// 4 days, 4 hours ago
    		if ( ! empty( $humanize ) ) {
    			$gmt_s  = ! empty( $gmt ) ? 'G' : 'U';
    			$date   = get_post_time( $gmt_s, $gmt, $topic_id );
    			$time   = false; // For filter below
    			$result = bbp_get_time_since( $date );
    
    		// August 4, 2012 at 2:37 pm
    		} else {
    			$date   = get_post_time( get_option( 'date_format' ), $gmt, $topic_id, true );
    			$result = $date;
    		}
    
    		// Filter & return
    		return apply_filters( 'rew_date_only', $result, $topic_id, $humanize, $gmt, $date, $time );
    	}
    }

    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

    #228417
    DeepBlue
    Participant

    Hi Robin

    I have your function that you gave me above :

    // FORUM ADD DATE OF TOPIC CREATION
    add_action( 'bbp_theme_after_topic_started_by' , 'rew_add_date' ); 
    
    function rew_add_date () {
    	echo ' on ' ;
    	bbp_topic_post_date() ;
    }

    I would like to show only the date and remove the time ie :

    August 4 2012 instead of August 4 2012 at 2:37 pm

    how can i get that ?

    thanks !

    #228357
    Robin W
    Moderator

    I don’t know why somehow I became a very greedy person here?

    I look forward to having complete answers.

    This makes you look like you are demanding, I am simply someone who triers to help here

    But if you are asking, then use the ‘code’ button in the reply to post the exact code you are using, and I will try and help further

    #228354
    leehaeun29
    Participant

    ??

    I said the code you provided doesn’t turn out as a hyperlink – I didn’t ask what a href Attribute is?

    Also, what about my other questions about the font size and adding forums anonymously?

    I look forward to having complete answers.

    Thank you.

    #228350
    leehaeun29
    Participant

    Hello Robin,

    Thank you so much for your assistance. I was able to change the wording through the Code Snippets plugin. Now maybe it has to do with the plugin but when I copied the code you provided, it doesn’t show the hyperlink but plan texts (I used [] instead of <> so it delivers my questions) :

    “XX forum is visible only to XX group members and YY Forum is visible only to YY group members. Please click [a href=”link”]here[/a] and sign up for the XX or YY group”

    Is there any way I can make it hyperlink? Also, I would appreciate it if you could tell me how to enlarge the font size.

    Additionally, I would like to know how can I create an anonymous topic? Now it shows my ID but I would like to make it anonymous for privacy issues.

    I really appreciate your assistance. Thank you!

    #228345
    ollietubb1
    Participant

    Hi Robin,

    Sorry for slow reply, just picking this up again.

    So, I see what you are saying but it is this page where I need to inject the content:-

    I think what you are saying is, it will add a description into the individual forums.

    So, I tried your suggestion and set up a custom page, with the shortcode in WordPress default editor as it wouldn’t work with Divi! Added the text above, does the trick.

    https://wbc1.otiscreative.co.uk/forum/

    Thanks for your help,
    Ollie

    #228312
    DeepBlue
    Participant

    Hi Robin

    How can i show unread messages with your plugin ?

    i suppose it is with shortcodes, but i didnt find a shortcode to show unread messages

    i want to show unread messages on a dedicated page, so i would need a shortcode

    thanks 🙂

    #228309
    Robin W
    Moderator

    This function should do that – change “mysite.com/login” to where you want it to go

    function rew_change_text( $translated_text, $text, $domain ) {
    	if ( $text == 'You do not have permission to view this forum.' ) {
    	$translated_text = 'This forum is visible only to this group members, please click <a href="mysite.com/login">here</a> and sign up for this group';
    	}
    	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

    #228279
    Keith_Saunders
    Participant

    I have the same issue which I have been trying to find a solution for days now.

    Like angelfire4xx I just want to create roles for Gold, Silver and Bronze members.

    Like others I have scanned lots of posts and documentation and tried various suggestions.

    I have in my child functions the following which I did manage to actually create roles, but they did not work using the following code

    function add_custom_role( $bbp_roles ) {

    $bbp_roles[‘BRONZE Member’] = array(
    ‘name’ => ‘BRONZE Member’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ));

    $bbp_roles[‘SILVER Member’] = array(
    ‘name’ => ‘SILVER Member’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ));

    $bbp_roles[‘GOLD Member’] = array(
    ‘name’ => ‘GOLD Member’,
    ‘capabilities’ => bbp_get_caps_for_role( bbp_get_participant_role() ));

    return $bbp_roles;
    }

    add_filter( ‘bbp_get_dynamic_roles’, ‘add_custom_role’, 1 );

    When I installed the “Members” plugin it told me the following

    Warning: Undefined array key “bronze_member” in /homepages/17/d531871193/htdocs/clickandbuilds/BeoworldForum/wp-content/plugins/members/inc/functions-roles.php on line 257

    for each of the created custom roles, hence why it does not work.

    Can anyone suggest a way forward other than what is already been posted.

    #228201
    ollietubb1
    Participant

    Thanks Robin,

    I thought that for some reason I was unable to use shortcodes in my particular situation but the project has been a long build and I have forgotten why! Will have a fresh look.

    Thank you,
    Ollie

    #228200
    Robin W
    Moderator

    if you create a wordpress page with the same slug as your forum – typically ‘forums’, and put the shortcode

    [bbp-forum-index]

    this should then look like the existing forum.

    If so, then before the shortcode add a block in which you can put text or a link or whatever you want

    #228180
    Brian Henry
    Participant

    Best to create a staging site for your bbPress install and try to import your IPB. I remember a lot of trial and error to get as much as I did working, so you might need to write some code. But it _should_ work for forums and posts – at least, it did for the one migration I needed to do 3.5 years ago.

    #228175
    Mike Witt
    Participant

    I’m just looking for any ideas on how to debug this. I don’t see how it would be a bbPress problem, but on the BuddyPress forum they basically said “Ask bbPress and GeneratePress.” So I’m doing that.

    WordPress 5.9.2, BuddyPress 10.1.0, bbPress 2.6.9
    (I haven’t upgraded to BP 10.2.0 yet, but I don’t see any fixes that seems to apply to this.)
    It happens “once in a while” since upgrading to BP 10.1.0. (Four times since March 9th.)
    It *might* be related to email notifications (mentions?) in a bbPress closed topic.

    [09-Mar-2022 17:13:53 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new_message' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), generate_do_template_part, get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, bp_replace_the_content, apply_filters('bp_replace_the_content'), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php'), bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_list

    #228149
    DeepBlue
    Participant

    I agree with you, but i tested bbpress with the top 20 wordpress themes, and confirmed that user profile and search pages were not detected by any theme

    all other pages are detected except those 2

    it’s like those 2 pages don’t belong to the same template than other bbpress pages in the core code

    #228148
    Robin W
    Moderator

    that would tend to indicate an issue with bbpress and elementor working together, which I have already seen with their Hello theme.

    bbpress works to WordPress standards, many theme builders exist because they see WordPress as a restriction and feel they can offer improvements, so stretch and alter what WordPress does, which can then can make plugins have issues.

    Because it is open source, and there are no definitive rules, it is wrong to say that it is a bbpress problem, or indeed an elementor problem or a divi problem, each makes their own code to work, but you cannot guarantee interoperability of everything with everything.

    #228118
    DeepBlue
    Participant

    Hi

    Two solutions : you can either use this plugin :

    or an easier solution, add this css, it will hide the possibility to change nickname (it will be only possible to change if from admin dashboard)

    i think this is a good choice, as you dont want your members to constantly change their nicknames

    label[for=nickname] {
        display: none!important;
    }
    input#nickname {
        display: none!important;
    }
    label[for=display_name] {
        display: none!important;
    }
    select#display_name {
        display: none!important;
    }
Viewing 25 results - 976 through 1,000 (of 32,297 total)
Skip to toolbar