Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,526 through 13,550 (of 32,585 total)
  • Author
    Search Results
  • #138683
    channelwiki
    Participant

    Same issue. My URL: channelwiki.org/forums

    Have you set your forum slug to that of the page you created?

    #138682

    In reply to: Custom Import

    connielk
    Participant

    The code that the other dnn conversion used actually pointed to the ParentPostID and should have pointed to the ThreadID as the parent. Once I fixed that, I got forums, topics and replies all linked up correctly.

    Only remaining issues is users.

    #138681
    connielk
    Participant

    I am having an issue displaying the forums on the standard url that bbpress uses.

    See this page:

    redhorsecrm.com/forums

    This is the page I’m told to use by bbPress as to where the forums should display correctly. It does not look correct at all.

    Then see this page:

    redhorsecrm.com/forum

    This page is one that I created and put a shortcode on to display the forums. It looks correct.

    I don’t mind using the shortcode, since it displays the forum correctly. However, the breadcrumb points to the page that does not display correctly. So if a user uses the breadcrumb, they will be lost.

    I understand this may be a theme issue, but this is a pretty standard theme Customizr and it “should” be compatible. Yes, I did ask Customizr but they didn’t have a clue.

    Any ideas how to fix this?

    channelwiki
    Participant

    I am currently using BBPress and will integrate it with MediaWiki.

    However, the problem is as my forum’s index is set to display as a shortcode on a page called ‘Forums’, which is set as my site’s homepage the breadcrumbs display as follows:

    Forums >> Forums >> Digital Terrestrial

    See: http://www.channelwiki.org/forums/?forum=digital-terrestrial

    As you can see the second ‘forums’ link takes a user to the default BBPress Forum index (not my sites homepage). How can this second ‘Forums’ link be removed?

    The second issue is, as users are signing in via MediaWiki and will then be signed in to WordPress when they access the site automatically, how can I disable sign in via WordPress and registration, but still allow access to private messages and sign in via the wiki? The WP-Admin bar will also be hidden

    Another issue is that I do not know how to redirect users back to the wiki. I’ve though about placing a ‘Log in’ link in the site’s main navigation, which links to the wiki’s login page but I’m not sure how to redirect them back.

    Many thanks in advance,
    channelwiki

    #138672

    In reply to: Custom Import

    connielk
    Participant

    Geez. I guess that didn’t work either. Let’s try this.

    & l t ; p & g t ; I

    I’ve added a space between every character to see if it will not try to mess with it.

    #138671

    In reply to: Custom Import

    connielk
    Participant

    Hm. Seems I must need to wrap that. This is what the body looks like in the table before importing:

    <p style=&quot;text-align: left;&quot;>&..

    Here is what it looks like displayed on the page:

    <p style="text-align: left;"> 

    #138670

    In reply to: Custom Import

    connielk
    Participant

    After I posted the code to you, I saw and fixed the ForumGroupID to ParentID. However I got the same result of dashes. But it seems logging out and then back in helps. Now I have some data.

    Here’s what I’m seeing:

    I got topics and replies but not the forums themselves.

    I got code in the bodies. See this page http://redhorsecrm.com/forums/topic/windows-v8-1-and-redhorse-v5-6/
    It seems the data in the body field in the posts table looks like this and it doesn’t display as html in the web:
    <p style="text-align: left;">&.. etc etc

    The users are all anonymous. How does the user import actually work? This is a new site and I was planning on importing users with Members Import and then having a welcome email sent to them telling them their account has been migrated from the old site to the new site. Do I need to wait until after I do that to import the forums so that the users already exist or can I import the forums now and then import the users. Not sure what order to do that in without knowing how this forum import works with users.

    JeremyPark123999
    Participant

    I disabled all of the plugins except bbpress, and I also tried adding that code to bbpress/includes/common/functions.php and also to my themes functions.php . Maybe I am doing something wrong though, is there perhaps a way to hide the check box? That would work just as well for me.

    #138658

    In reply to: Custom Import

    Stephen Edgar
    Keymaster

    Everything looks pretty good 🙂

    I could only see the one issue

    You have:

    // Forum parent id (If no parent, then 0. Stored in postmeta)
    $this->field_map[] = array(
    'from_tablename' => 'forum_forums',
    'from_fieldname' => 'ForumGroupID',
    'to_type' => 'forum',
    'to_fieldname' => '_bbp_forum_parent_id'
    );
    

    And this should be either 'from_fieldname' => 'ParentID', or 'from_fieldname' => 'GroupID'

    I tried it again using my cpanel login which should be a sql login and now it’s got a growing line of dashes across the screen. It’s been running for over 30 minutes and there are less than 200 posts, so I’m not sure what it’s doing. Is there anything I can check to see what it’s doing? If anything?

    This looks right in that using your cPanel login, I would double check your webhost help section to confirm what your MySQL user/pass are (You can also grab these typically from your WordPress wp-config.php file via FTP.

    The ‘——–‘ is a horrible bug that happens more than I would like but debugging this has been a pain to say the least and I haven’t been able to find what causes it yet alone a fix for it. Typically logging out and logging back in ‘seems to fix it’ most of the time.

    With all that said though if you can get past that ‘bug’ then it looks like you are good to go.

    EDIT: With ~200 posts the whole process should be completed in under 5 minutes.

    #138648
    #138646
    fatpat76
    Participant

    Hello there, I just went through some problems where the bbPress capabilities were not registered in the wp_user_roles option_name row entry. I don’t know what caused it but I was trying to see if I uninstalled/reinstalled bbPress it might reset the capabilities. It didn’t.

    So I got hunting through the code and I found this function:

    /**
     * Adds capabilities to WordPress user roles.
     *
     * @since bbPress (r2608)
     */
    function bbp_add_caps() {
    
    	// Loop through available roles and add caps
    	foreach ( bbp_get_wp_roles()->role_objects as $role ) {
    		foreach ( bbp_get_caps_for_role( $role->name ) as $cap => $value ) {
    			$role->add_cap( $cap, $value );
    		}
    	}
    
    	do_action( 'bbp_add_caps' );
    }

    But nothing seem to ever call this function. I did a search through all of the plugin code and there aren’t any references to this function. What gives?

    In the end I was able to force the capabilities to be rebuilt by adding this function call inside another function that I knew was being called and it worked (I’ve since removed this).

    BTW, this is on WP 3.7.1, bbPress 2.4.1.

    Thanks!
    Patrick

    #138640

    In reply to: Menu link to Profile

    Robin W
    Moderator

    Strangely this is quite difficult to achieve, as the url for a user profile edit is

    http://mysite.com/forums/users/username/edit/

    where the username is the actual username of the person logged in.

    so you can’t add it as a menu item as far as I can work out.

    2 solutions to this :

    Solution 1 – the harder way !
    One solution and the one I use is adding this as a line in the login widget, so that it appears under the “account” in your sidebar

    I use the (bbpress) Login widget for the sidebar. This widget is set up in

    wp-content/plugins/bbpress/includes/common/widgets.php

    I added this line after line 145

    line 145 reads
    <?php bbp_logout_link(); ?>

    and I add a new line 146 saying

    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Amend Profile/Change password</a></p>
    This then comes up when someone is logged in

    Of course you’ll need to make a note of this change, as it is lost whenever you upgrade bbpress versions

    the advantage (and why I use it ) is it then only gives this line when someone is logged in

    Solution 2 – the easier way

    If you’re not keen to change code, the download the enhanced text widget

    https://wordpress.org/plugins/enhanced-text-widget/

    Then in your sidebar add the enhanced text widget, and put this code in content, check the “don’t display header” and click save

    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Amend Profile/Change password</a></p>

    Much easier to do, but displays whether someone is logged on or not.

    #138635
    dotdatdot
    Participant

    Hello everyone.

    Is there a proper codex site anywhere with all the functions/hooks and all the good stuff properly documented anywhere? For example I found a function called bb_is_home(), and I wanted to know what EXACTLY that checked for, but after researching it, I couldn’t find a single real reference or documentation of it.

    Am I missing something? Because the http://codex.bbpress.org/type/functions/ has only about 5 functions. Surely there is a list of functions somewhere?

    Thanks

    #138631

    In reply to: Custom Import

    connielk
    Participant

    An hour later and it still adding dashes. It says

    ——————————————————— etc etc
    Starting Conversion

    So… I posted my code to github. If you don’t mind taking a look I’d really appreciate it.

    https://gist.github.com/anonymous/7267096

    #138628
    Mailhilfe
    Participant

    Do anybody know where I add these in bbpress:

    
    <?php $prev = get_permalink(get_adjacent_post(false,'',true)); if ($prev != get_permalink()) { ?><a href="<?php echo $prev; ?>">Vorheriger Artikel</a><?php } ?> 
    <?php $next = get_permalink(get_adjacent_post(false,'',false)); if ($next != get_permalink()) { ?><a href="<?php echo $next; ?>">Nächster Artikel</a><?php } ?>
    Robin W
    Moderator

    Another plugin sounds possible – try disabling them one at a time and see if without one it works ok.

    Otherwise, you could try adding this to your functions file

    function pw_bbp_auto_checK_subscribe( $checked, $topic_subscribed  ) {
    
        if( $topic_subscribed == 0 )
            $topic_subscribed = true;
    
        return checked( $topic_subscribed, true, false );
    }
    add_filter( 'bbp_get_form_topic_subscribed', 'pw_bbp_auto_checK_subscribe', 10, 2 );

    That sets it to checked, so presumably if you changed line

    $topic_subscribed = true;to

    $topic_subscribed = false;

    it should uncheck it

    Give it a try

    jazinsa
    Participant

    Is it possible to show a user’s forum topic count(or post count) in the buddypress profile page? It feels like it should be simple enough but hours of googling and reading topics here has left me more confused than when I started.

    I can see its possible on a bbpress profile page, where it’s using:

    <p class="bbp-user-topic-count"><?php printf( __( 'Topics Started: %s',  'bbpress' ), bbp_get_user_topic_count_raw() ); ?></p>
    <p class="bbp-user-reply-count"><?php printf( __( 'Replies Created: %s', 'bbpress' ), bbp_get_user_reply_count_raw() ); ?></p>

    Should I be calling a different function altogether, or is there a specific way to put bbPress functions inside a BuddyPress template page?

    A good example of what I mean is at Tamriel Foundry, where the various counts are listed under the heading Post Details. (The design of that site in general is amazing)

    Any help would be greatly, greatly appreciated! And apologies if you are reading this for a second time, I wasn’t sure whether to post my query at the Buddypress or bbPress forums.

    pekmez
    Participant

    the path is just like for the version 2.4.1

    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    As JarretC wrote before

    Change the line 30

    <?php bbp_list_forums(); ?>

    to

    <?php bbp_list_forums( array ( 'separator' => '<br />' ) ); ?>

    Thanx JarretC

    #138611

    In reply to: Remove Sidebar

    Robin W
    Moderator

    ok, try this – I have culled it from varous other posts, in particular

    Full-Width Forum

    Don’t swear it will work, but give it a go

    1. Create a page called “forums”,
    2. make this page a full width page – if your theme doesn’t support this, then you’ll need to create a child theme and add a full page template.
    3. Put this shortcode on the page [bbp-forum-index]
    4. edit the following file
    wp-content/plugins/bbpress/templates/default/css/bbpress.css
    by removing the left float from div.bbp-breadcrumb(line 405)
    5. In your style.css add the following

    .bbPress #primary {
    display: none;
    }
    .bbp-forums {
    width: 100%;
    }

    let us know if that works

    #138610
    FreeWPress
    Participant

    Is not good idea to change core code… And when bbpress is updated you lost all your modifies…

    #138609
    pekmez
    Participant

    as garindan post, pls try this file to edit.

    wp-content/plugins/bbpress/includes/common/template.php

    Line 2249

    change

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';

    to this

    // Add the breadcrumb
    // $crumbs[] = '<a href="' . esc_url( $root_url ) . '">' . $r['root_text'] . '</a>';
    $crumbs[] = '<a href="/forum/">Forum</a>';
    #138602

    In reply to: Remove Sidebar

    Robin W
    Moderator

    you can add this function to your functions.php

    function disable_all_widgets( $sidebars_widgets ) {       
        if ( function_exists('is_bbpress') ) {
            if (is_bbpress()) {
                $sidebars_widgets = array(false);
                remove_all_actions('bp_register_widgets');
                unregister_sidebar( 'bp_core_widgets' );
            }
        }
        return $sidebars_widgets;
    }
    
    add_filter('sidebars_widgets', 'disable_all_widgets', 1, 1);

    or this to your style.css

    .bbPress #primary {
    display: none;
    }
    #138599

    In reply to: Custom Import

    Stephen Edgar
    Keymaster

    Where does it say that? 😉 I just changed it to MySQL 😉

    https://codex.bbpress.org/import-forums/custom-import/

    Take a look at the following for some reading material to help get you going.

    Importing from DotNetNuke Active Forum

    The basis of what ended up being used is here.

    Mix all that in with this on converting from Microsoft SQL to MySQL (This was Access but the same tools should do MSSQL fine)

    Documented import from snitz access database

    Let me know how that all goes for you and I will follow up with more 🙂

    #138593

    In reply to: Persistant login form

    baylock
    Participant

    Thank you for your answer Robin W.
    I would rather use the shortcode as I don’t even use a sidebar.
    How come I can’t see the login form through all the views as they are all part of the same WP page (which has the shortcode) ?

    Thank you.

    #138581
    Rogelio
    Participant

    Hi,

    I managed to create a TinyMCE plugin and add it to wordpress editor (which is the same as bbpress).

    So far so good.

    Using

    $ args ['teeny'] = false;

    config, my tinymce plugin’s button show normal.

    But, I need to be displayed in the default editor for bbpress, in teeny editor.

    Any ideas?

    Thanks a lot.

Viewing 25 results - 13,526 through 13,550 (of 32,585 total)
Skip to toolbar