Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,276 through 3,300 (of 32,517 total)
  • Author
    Search Results
  • #206768
    beat sk
    Participant

    Hello,

    Is there any function or something for the nickname field to take data from username field and possible to save the profile? I’ve tried everything but I can’t do it.
    I don’t want users to be able to change their name at all times, but only administrators will be able to change it through the dashboard.

    I am editing bbpress form-user-edit.php in my child-theme. But still got only ERROR: Please enter a nickname.

    		<div>
    			<label for="first_name"><?php esc_html_e( 'First Name', 'bbpress' ) ?></label>
    			<input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" />
    		</div>
    
    		<div>
    			<label for="last_name"><?php esc_html_e( 'Last Name', 'bbpress' ) ?></label>
    			<input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" />
    		</div>
    
    		<div>
    			<input type="hidden" name="nickname" id="nickname" value="<?php echo esc_attr( $profileuser->user_login ); ?>" disabled="disabled" class="regular-text" />
    		</div>

    Thank you.

    beat

    #206745
    Chuckie
    Participant

    Resolved:

    // ==============================================================
    // Switch off Theme My Login notifications because WP Approve User manages it
    add_filter( 'tml_send_new_user_notification', '__return_false' );
    add_filter( 'tml_send_new_user_admin_notification', '__return_false' );
    // ==============================================================
    #206736
    Robin W
    Moderator

    bbpress just uses your theme’s font, so theme related.

    you can amend the css

    bbPress Styling Crib

    #206723
    andrew55
    Participant

    When recently updating to 2.6.2 version of bbPress, I am getting 404s when new user arrives on homepage of forums. 404s are visible to user and showing in logs. When page is hard refreshed, forums show up.

    But strange, if, if user goes to link within forums (topic, etc.), no 404s occur.

    I am using bbp-forum-index shortcode on homepage of forums. I did a test and issue doesn’t occur when shortcodes aren’t used (no 404), but of course, no forums are available.

    With shortcodes, even through 404s occur, the sidebar displays and shows the user’s logged-in info (avatar, etc).

    Issue seems to only occur when user is logged in and visits forums. I have forums on their own WordPress installation within a directory of main site.

    I thought it might have been cache, but issue still occurs when cache is disabled.

    Here is link to site:

    https://www.lifeleap.org/community/

    Any suggestions on what might be occurring or what I do to troubleshoot issue? Thanks for any help

    #206705
    Danishsard
    Participant

    I mean if where is the list of changes published bbpress codes to know what codes are where found in what line changed etc.

    For example, the page template has visible changes https://themes.trac.wordpress.org/changeset/111632/anima/1.4.0?old&old_path=%2Fanima%2F1.3.0.2

    Is somewhere the same thing about bbpress?

    #206695
    Danishsard
    Participant

    Hello, where can you see what code and file changes are made in each bbpress update?

    I have a forum on bbpress https://infomiasto.eu/forum/tematy/rozmowy/ but if the update is manual changes to the code will be lost – I want to see where the code changes during each update.

    My page template has something such that I always see what code and where it changes on the wordpress page in bbpress, I don’t know where to look for such information if you wanted to manually paint it in the template. I am asking for help.

    #206677
    rhysedwards
    Participant

    The menu doesnt really work atmo.

    This is a page called forum, where i have put the shortcode into the content: http://209.97.138.158/?page_id=28

    This is a link directly to a forum:

    Home

    Chuckie
    Participant

    I added some CSS styling to make the error notices stand out on my site:

    #bbpress-forums div.bbp-template-notice.error {
    	background: #fff !important;
    	padding: 2px !important;
    	border: solid 4px #000 !important;
    	outline:#ff0 solid 4px !important;
    	border-radius: 0px;
    }
    
    #bbpress-forums div.bbp-template-notice.error li {
    	color: #000 !important;
    }

    I am very happy with that. It is just this issue of bbPress jumping to the top of the topic rather than the actual error notice it has created in the reply forum.

    Is there a workaround for that or must it be fixed by bbPress authors?

    Danishsard
    Participant

    Hello, I would like my forum to be set up in css and some pages code by myself. https://infomiasto.eu/forum/tematy/rozmowy/ I have a question how to do it in the sense of the template folder bbpress does not contain everything, many things appear on the forum – the description frame is after the template layout

    How to do it so that you don’t lose those data when updating – because I want to remove a lot of what the forum displays, columns of voices, description frame and this type.

    #206654
    brownbagmarketing
    Participant

    I tried some of those steps.

    But looking at the MemberPress plugin code, it looks like no matter what the [bbp-forum-index] shortcode would not trigger a login form.
    And not only for that shortcode, but it exposed all content on the entire page to a non logged in user.

    I’ll play around with your suggestion some more as I don’t like the thought of overriding the memberpress plugin filters like this.

    Thanks

    #206648
    rhysedwards
    Participant

    I have also tried adding ‘add_theme_support( ‘bbpress’ );’ to the main theme’s functions.php.

    I have tried following the instructions here: https://codex.bbpress.org/themes/theme-compatibility/

    Which recommended copying the bbPress plugin files to the root of my theme folder. This has also produced no results.

    #206647
    brownbagmarketing
    Participant

    Added this to my theme functions file:

    // Adding function to block page content for any pages containing bbpress shortcodes.
    add_filter(‘mepr-pre-run-rule-content’, ‘do_block_the_content’, 99, 3);

    function do_block_the_content($block, $current_post, $uri) {
    $block = 1;
    return $block;
    }
    It seems to be doing what I want, but we’ll see.

    #206646
    rhysedwards
    Participant

    I have added a forum page already. that is where i put this shortcode: [bbp-forum-index]

    #206644
    Chuckie
    Participant

    I noticed an issue yesterday and it has to be to do with CSS styling.

    I inserted an image (using TinyMCE toolbar) and left aligned it. It was the last thing on the topic.

    When I hit submit I found that the small dotted footer line and freshness note just under it were going straight through the image. Since the image was left aligned I had a paragraph of text to the right of it that went half way. The there was this footer.

    So it did not bypass this image and place the footer below the image. In the end I had no choice but to either leave the image with no alignment or center align it. Then the footer is correct.

    Surely there should be a divaround the topic or reply content and then the footer and freshness note below that. It would then avoid this issue since the left aligned image would be inside that divand the footer area pushed down under the div.

    rhysedwards
    Participant

    I have created a theme, and installed bbPress. I followed the getting started instructions in the documentation, and added the [bbp-forum-index] shortcode to my forum page.

    Under my theme, no forum appears, nothing at all. However if I activate a default theme the forum shows.

    How do I add a forum to a wordpress theme that i created? I couldn’t seem to find anything on the internet to help with that part.

    Many thanks

    WordPress 5.2.4
    bbPress Version 2.6.2

    #206632
    brownbagmarketing
    Participant

    I have the exact same issue.
    Any page that has a bbpress forum shortcode on it, the memberpress login does not appear on it and the forum does, even if the user is not logged in.

    #206622
    Robin W
    Moderator

    so you will either need a hook from your CiviCRM code, so need to query this with them, or as you suggest have a cron job.

    In the spirit of community software, if you write such a function, then yes please do share it here so that other people who would like to do this canb make use of it

    #206588
    Chuckie
    Participant

    Since the function still needed a return value I wrapped the actual for loop instead.

    But I don’t know if it was coincidence or what but i site seemed more sluggish. I have commented that code out even though it worked. Maybe the check is done fairly frequently. I don’t know.

    I will leave it for the moment as it is. Worse case scenario is that I switch off showing the last 24 hours activity as there is a setting for that.

    #206586
    Robin W
    Moderator

    ok, very quick as I am passing

    If you just want it to display for logged in but not for others, then just change

    return $HTMLOutput;

    to

    if (is_user_logged_in())  {
    return $HTMLOutput;
    }
    #206585
    Chuckie
    Participant

    It seems to be this html that builds a load of divs:

            function build_html() {
                
                $this->sort_users();
                $data = $this->stats_builder();
                $HTMLOutput = "";
                
                foreach( $data as $key => $html ) {
                   $HTMLOutput .= "<div class='bbpas-" . $key . "' id='bbpas-" . $key . "'>" . $html . "</div>";
                }
                
                return $HTMLOutput;
            }
    

    That is called by this:

    function widget( $arg, $instance ) {
            
            echo $arg['before_widget'] . 
                 $arg['before_title'] . 
                 $instance['heading'] . 
                 $arg['after_title'] . 
                 $this->_parent->online->build_html() . 
                 $arg['after_widget'];
        }     

    So the is_logged_in test would have to be applied to build_html and if $key is a certain value do the logged in test.

    Elsewhere i found this:

                // Section: Users active in last x hours
                if(in_array( 'last_x_hours', $stat ) ) {                
                    $HTMLOutput["inactive"] = $this->section_userstats( $this->stats, "inactive" );                
                }
    

    So I guess the $key of interest is inactive. Funny index to use for that …

    #206547
    jrv123
    Participant

    Try a permanent fix to the code…
    Make the fix to line #18 of reply.js (see https://bbpress.org/forums/topic/threaded-replies-not-working/)
    All of a sudden, creating replies to replies started adding ‘_bbp_reply_to’ items to the ‘postmeta’ table, where that key has the value of the row to which the reply is being created.
    Nested/indented replies suddenly started doing their thing; i.e., indenting to the level of reply-to-reply they are.

    #206529
    jrv123
    Participant

    Specifically I am looking for some theme that works like is documented here: https://codex.bbpress.org/features/reply-threading/

    #206522

    Hierarchical replies do not use the post_parent column. Replies always use post_parent for the topic ID.

    The hierarchy/relationship is instead determined using a piece of postmeta, similar to the topic and forum connections.

    So when you say they aren’t working, are they really not working visually, or are they not working the way you expected them to?

    We coded them this way, so that all post to post relationships could use the same mechanism, eventually allowing them to be swapped out for something even more performant later (taxonomy connections, or a custom database table.)

    #206520
    Chuckie
    Participant

    I only just noticed this. I don’t know if it is a bbp style pack issue as I am using that plugin for the style.

    Look at this topic at the Favorite | Subscribe links:

    https://www.dropbox.com/s/5b9zxi8xhf9sdpw/issue-ok.png?dl=0

    They look fine. But when I have a topic which has a longer title:

    https://www.dropbox.com/s/i26c3tsv1mtx56c/issue-not-ok.png?dl=0

    Visually it is appearing as:

    | Unsubscribe
          Favorite

    It should be:

    Favorite |
    Unsubscribe

    Is this a bbPress 2.6.x issue or a bbp style pack issue.

    #206486
    Prima M
    Participant

    Hy You can try this…

    
    /* BBPress Fix Topic bbp-topic-form won’t show up properly on mobile */
    @media (max-width:380px) and (min-width:320px) {
    	#bbpress-forums .bbp-the-content-wrapper,
    	#bbpress-forums #bbp_topic_title {
    		width: 100%;
    	}
    }
    
Viewing 25 results - 3,276 through 3,300 (of 32,517 total)
Skip to toolbar