Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,126 through 6,150 (of 32,578 total)
  • Author
    Search Results
  • #176862
    Robin W
    Moderator

    yes, the code I posted above if placed in your plugin would tell bbpress to look in

    content/plugins/myplugin/templates/templates1/

    Robin W
    Moderator

    ok,

    when I put the shortcode in the text widget, I just get it displayed as text ie [bbp-lost-pass] rather than rendered.

    can you try the code in a page and see where that goes

    smithcreate
    Participant

    I’m using an iThemes Builder theme and have a page template with a right column being used for that page. Under Appearance > Widgets, I have a Text widget applied to this column with the following code:

    [bbp-lost-pass]

    This renders the lost password form.

    Robin W
    Moderator

    can you tell us how you have put that code in the widget – ie what widget you are using and how you have put [bbp-lost-pass] in it

    #176791
    Robin W
    Moderator

    ok, so back to your initial post – you renamed the forum root slug as ‘Index’ – yes?

    if you do that, and then create a wordpress page called ‘Index’ and in that page put

    [bbp-forum-index]
    

    Then call that page from your menu and it should all work nicely.

    #176760

    In reply to: Page Layout

    Robin W
    Moderator

    sidebars are theme related – start by looking at

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

    section 8

    #176758
    Robin W
    Moderator

    The code is included in 2.6 alpha

    /includes/extend/buddypress/notifications.php

    lines 43-45

    // Bail if not the notification action we are looking for
    	if ( 'bbp_new_reply' !== $action ) {
    		return $action;
    	}
    #176752
    cluciftias
    Participant

    Hi,

    I’m using bbPress 2.6-alpha on one site and I was wandering what was a recommended way of keeping that installation up to date with the latest 2.6 code? WP doesn’t report any updates but I guess important updates are made on code and they end up in that ZIP on Download page, right?

    #176742
    junglejim620
    Participant

    Hi Robin,

    In the dashboard page it displayed this message that how i find out about it. So appearently 2.6.1.1 doesn’t have it, otherwise this message link wouldn’t displayed on admin page?

    Attention: bbpress-bug: If you use bbpress < 2.6 please apply the changes described there: https://bbpress.trac.wordpress.org/ticket/2779 to get the notifications working

    I even opened the notifications.php in notepad and even did a search for “else return $action;” , looked from top to bottom many times, no phase like that?

    Not sure if I have to change the whole bunch of code or what from the 5512 link above.
    This is a another language I have no idea what I’m suppose to do?

    If all I need is to put this “else return $action;” , please show me how and where to put it? I put very bottom “else return $action;” ?> and getting a white page? Please help..

    Show how bbPress 2.6.1.1 don’t have it? Perhaps is there’s a page I can go download this notifications.php ?

    Please help,help. Thanks

    #176738
    Robin W
    Moderator

    1. create a page
    2. put one of these two shortcodes in it

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
     [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    3. add the page to your menu

    #176734
    Robin W
    Moderator

    I’ve been mulling this over…

    I don’t think the following will work, but it’s worth an initial try – add this to your functions file

    function bsp_breadcrumbs ($args) {
    	$pre_current_text = $args['current_text'] ;
    	$args['current_text'] = '[glossary_exclude]'.$pre_current_text.'[/glossary_exclude]' ;
    	return $args ;
    }
    
    //add the filter 
    add_filter('bbp_before_get_breadcrumb_parse_args', 'bsp_breadcrumbs');
    
    

    Let me know either way !

    #176710
    Robin W
    Moderator

    what bbpress role does the person have? if admin, and they see the ip address in replies, you could put the email under this using

    add_action ('bbp_theme_after_reply_author_admin_details', 'rew_show_email') ;
    
    function rew_show_email () {
    $user_id_rew = bbp_get_reply_author_id () ;
    $user_info_rew = get_userdata($user_id_rew);
    $email = $user_info_rew->user_email;
    echo 'Email: '.$email ;
    }
    

    put this in your functions file

    https://codex.bbpress.org/functions-files-and-child-themes-explained/

    #176708
    Robin W
    Moderator

    If I understand you correctly you want to amend a file in

    wp-content/plugins/bbpress/templates/default/bbpress/

    The easiest way is to copy the relevant file to your child theme

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress and copy the file there eg

    wp-content/themes/%your-theme-name%/bbpress/loop-forums.php

    bbPress will now use this template instead of the original
    and you can amend this

    You can also add a location – for instance within a plugin I use I add a location using :

    add_action( 'bbp_register_theme_packages', 'bsp_register_plugin_template1' );
    
    //get the template path
    function bsp_get_template1_path() {
    	return BSP_PLUGIN_DIR . '/templates/templates1';
    }
    
    function bsp_register_plugin_template1() {
    	bbp_register_template_stack( 'bsp_get_template1_path', 12 );
    }
    
    #176706
    smithcreate
    Participant

    I solved this. The code above was already in the functions file. I removed it and all is well.

    #176705
    smithcreate
    Participant

    I’m having this error on my production website.

    I added the code in my functions.php file of my child theme which causes the site to not load. With the exception that I changed the return value:

    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
        return 'http://www.ccghpa.com' . $_SERVER['REQUEST_URI'];
    }

    Any other fixes?

    #176687
    Robin W
    Moderator
    #176679
    pcpro178
    Participant

    I appreciate your willingness to help. 🙂 It’s not functionality that I want to customize at this time. Right now, I’m only really interested in getting the pages to integrate/fit well with my site. That is, I need to integrate it with my theme.

    Perhaps if we look at this from the other end the problem will be easier to understand:

    My plan at present is to develop a new template page within my theme to handle bbPress Topic pages. This new page will adopt elements (mostly copy/paste style) from one of the bbPress files (plugin-bbpress.php, bbpress.php, forums.php, or forum.php). I’m confused as to which of those files should be used for displaying bbPress Topcic pages (e.g. sopearly.com/topic/welcome-to-the-sopearly-community/).

    If I had to guess, I would start by copying & modifying forum.php into my new template. Would that be correct?

    #176678
    Robin W
    Moderator

    hmm.. The only way I can immediately think of is to modify loop-topics

    so

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-topics.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-topics.php
    bbPress will now use this template instead of the original
    and you can amend this

    so in that file you will see

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    
    		<?php endwhile; ?>
    

    you would need to check with forum the user is in and then custom display

    so something like – you’d need to write the code – this is just words !

    <?php 
    	if (forum == the one you want to change) {
    		then make an array of the ID, and then cycle through them
    		foreach ($topics as $topic) {
    		bbp_get_template_part( 'loop', 'single-topic' );
    		}
    	}
    	else { ?>
    		<?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    			<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    
    		<?php endwhile; ?>
    	<?php } ?>
    
    #176668
    pcpro178
    Participant

    You are correct. There is no functionality missing, and I am trying to get the bbPress pages to look like they fit with the rest of my site (i.e. background and header–theme elements). My last reply (#176623) was badly mangled by the auto-populated page elements from my site (did not see that coming), and Akismet keeps blocking my posts, so I have no idea when anyone will see this. :”’ (

    Please correct me if I am using the wrong approach, but what I am trying to do is figure out which of the files at wp-content/plugins/bbpress/templates/default/bbpress that I should be using to customize the bbPress topic page (e.g. ‘sopearly.com/topic/welcome-to-the-sopearly-community/’) and which file name I should rename it to: plugin-bbpress.php, bbpress.php, forums.php, forum.php.

    I realize I’m having a lot of trouble with this. Thanks so much for your help. 🙂

    #176666
    Robkk
    Moderator

    it’s enough to send a prospective wordpress user running in the direction of other alternatives

    bbPress has a forum import tool in Tools > Forums > Import Forums (free and open source code, so any dev can just improve the program how they want then official devs can commit changes or not).

    #176641
    theredheadhenry
    Participant

    Should point out, that the return at the bottom originally was like this:

    return get_author_posts_url( $user->ID );

    #176639
    #176633
    uschesch
    Participant

    Hi Robin,

    thanks for the quick reply. Unfortunately, the code did not work. When I enter text that I know is in a wordpress page into the forum search box, I get a list of forum topics, and that list disappears. When the list disappears, I get a no post found message.

    https://www.dropbox.com/s/8xv3qblzumnh16s/forumsearch.PNG?dl=0

    #176623
    pcpro178
    Participant

    Thanks, Robin. I’ve already done that for the Forum Index and Forum pages. In concert with a few .htaccess redirects, it works fine, as can be seen here:

    https://sopearly.com/forums/
    https://sopearly.com/forum-introductions/

    Any links to the bbPress-generated https://sopearly.com/forum/introductions/ are redirected to https://sopearly.com/forum-introductions/.

    Redirect /forum/introductions/ https://sopearly.com/forum-introductions/

    The biggest problem I am having right now is with the Topic pages, since I do not have control over which discussion topics be created by my users in each of the forums; the Topic page links are automatically generated by bbPress. Here is a good example:

    https://sopearly.com/topic/welcome-to-the-sopearly-community/

    I can make the colors, spacing, etc. match the rest of my site with a little work, but the page backgrounds and header are managed by the theme I’m using. What I’ve been able to gather by the reading I’ve done is that I should be able to take the contents of one of the files located at wp-content/plugins/bbpress/templates/default/bbpress, insert that into the appropriate (copied) theme file (single, template, etc.), and rename that file to one of the following:

    • plugin-bbpress.php
    • bbpress.php
    • forums.php
    • forum.php

    I can get with my theme’s support to find out which of their files I should start with, but (unless you think there is a better way) I guess my question is which of the files from wp-content/plugins/bbpress/templates/default/bbpress should I use, and to which of the four filenames should I copy it in my child theme? Thanks so much for your help. 🙂

    #176628
    BekBek20
    Participant

    Sorry if my response was not good.

    What i meant was, Your suggestion was together with a few adjustments i made to the code, which i used to get the alphabetically arrangement of a specific forum topic.

    Now i want to arrange another specific forum topic in a specic order using there ID i guess.

    For example, I want to arrange the following topic to another arrangement.

    Topic ID
    I enjoy bbpress 655
    I want bbpress 658
    I love bbpress 660
    bbpress 662

    To be arranged like this

    Topic ID
    I love bbpress 660
    I want bbpress 658
    bbpress 662
    I enjoy bbpress 655

    That’s what i want to do now, I was hoping you could help me.

    Thanks for your time

Viewing 25 results - 6,126 through 6,150 (of 32,578 total)
Skip to toolbar