Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,476 through 13,500 (of 32,521 total)
  • Author
    Search Results
  • #138727
    neotrikz
    Participant

    Your blog’s theme does not have support for bbpress, the same happened with me.

    #138713
    Robin W
    Moderator

    Unfortunately can’t see your issue, as the page is coming up with just the shortcode

    #138710
    channelwiki
    Participant

    channelwiki.org/forums

    I see Forums >> Forums >> Digital Terrestrial

    Whereas only one forum link should be included.

    The root Forum slug is ‘forums’. I have a page called forums (which includes the index shortcode) which is set as the site’s homepage.

    the single forum slug is ‘f’.

    Also, how can I display post count under usernames?

    #138708
    connielk
    Participant

    Notice that when you use the search function, it also sends the user to the unusable page at forums.

    #138706
    connielk
    Participant

    That’s the Forum Root Slug. As set under Settings, Forums.

    Forum Root Slug

    Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.
    Forum Root=forums
    Forum Prefix=Checked Prefix all forum content with the Forum Root slug (Recommended)
    Forum root should show=Forum Index

    The page with the shortcode is:
    redhorsecrm.com/forum

    #138701
    Stephen Edgar
    Keymaster

    Is this a page or a post? redhorsecrm.com/forums

    #138698
    Stephen Edgar
    Keymaster

    Having a quick look you should be able to export the ‘questions’ via /wp-admin/export.php

    As the plugin uses ‘Custom Post Types’ you should be able to then edit the exported XML file and find do a search and replace:

    Find <wp:post_type>question</wp:post_type>

    Replace <wp:post_type>topic</wp:post_type>

    I had issues with the plugin on my site so I am not sure if it uses ‘question’ for the answers or uses ‘answers’ as a CPT for them, if it does use ‘answers’ then search and replace:

    Find <wp:post_type>answers</wp:post_type>

    Replace <wp:post_type>reply</wp:post_type>

    Once you have done that then import them back into WordPress and see how they look, no doubt there will be a few issues such as topics not associated with a forum and depending on how many of these you have editing them in bbPress topic/reply panels should help you fix up any issues, if you have thousands then doing some more tweaking in the XML would be your best bet.

    To get an idea of what you would need the best idea would be to export some bbPress forums, topics & replies and have a look at the XML and this should help you work out what values you need to use for search and replace.

    #138697

    In reply to: Custom Import

    Stephen Edgar
    Keymaster

    Cool, things look good on your site now 🙂

    For the users simply check the following box when you are importing your forum 😉
    Convert Users - Attempt to import user accounts from previous forums
    (Yes, you will have to reset bbPress and run your import again https://codex.bbpress.org/reset-forums/)

    #138685
    connielk
    Participant

    I tried that and it broke the page I was using the shortcode on. Then nothing worked.

    #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

Viewing 25 results - 13,476 through 13,500 (of 32,521 total)
Skip to toolbar