Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,576 through 13,600 (of 32,503 total)
  • Author
    Search Results
  • #138187
    Stephen Edgar
    Keymaster

    Spanish (es) is 100% complete in the /dev branch
    https://translate.wordpress.org/projects/bbpress/dev/es/default
    Spanish (es) is 95% complete in the /2.4.x branch
    https://translate.wordpress.org/projects/bbpress/2.4.x
    Spanish (es) is 100% complete in the /2.3.x branch
    https://translate.wordpress.org/projects/bbpress/2.3.x

    via https://codex.bbpress.org/bbpress-in-your-language/

    You should have bbpress-es.po & bbpress-es.mo in /wp-content/languages/bbpress/

    #138184
    Keryn
    Participant

    I have some code to show the sidebar based on what page it is, and it works fine for the pages, but no sidebar shows on any bbpress pages:

    if (is_page(79) || is_child(79) || is_ancestor(79) || is_bbpress()){
    dynamic_sidebar(‘memberbar-sidebar’);
    }

    #138180
    elitetester
    Participant

    If a user makes a nice forum post I would like to be able to choose to post this single topic into a WP post/blog of categoryX. If I see another nice forum post then I would like to be able to choose to post this single topic to the same, or perhaps a different WP post/blog under categoryY. All video/images etc should be presented in WordPress as it would appear in the forum.

    I’d like to see the topic content appearing as an article rather than a forum topic: No reply window shown even if logged in, instead show ‘number-of-replies’. No avatar, just a short comment ‘posted-by-xxx’. The topic title and ‘number-of-replies’ links the user to the respective forum topic in the main forum view.

    ————-
    I was thinking this might be possible using shortcodes. e.g. create a new shortcode based on ‘bbp-single-topic’ (perhaps called ‘bbp-single-topic-post2blog’). Then add a drop-down-list beside each forum topic only visible for admins. The drop-down-list includes all WP posts/blogs. After selecting a WP post from the drop-down-list the shortcode and respective topic-ID gets added to the bottom of the WP post content.

    What do you think? I have quite a clear picture on how this should work.
    If this is possible I would be happy to test it.

    #138178
    ikidre
    Participant

    Yep, I ran all the repair options per Buddypress’s instructions. I ran them a second time after I discovered this issue. I created that test forum after that point, so I ran them again just now for fun. Still no change. 🙁

    The only next steps I can think of are to hit that ominous “Reset bbPress” button or dig up my backups and just try again.

    #138170
    Morgensonne
    Participant

    Hi 🙂

    I have a layout problem with the bbpress-login-widget. See the screenshot.

    Screenshot

    Where can I increase the distance, so that “username” (here in German: Benutzername) is displayed in full. So the last letters are not seen. I suspect in the CSS, but I can not find the relevant code.

    Thanks a lot for your help!
    Morgensonne

    P.S.:
    Ohh, the link to my screenshot is not working……….. (?)
    Any help for me?

    #138164
    FreeWPress
    Participant

    <?php st_last_poster_block ( get_the_ID() ) ?>

    This function not exist in bbpress, it’s home made? you must to search in your functions lists..

    We must to open this function to change a little parameter to remove reply to….

    #138157
    Stephen Edgar
    Keymaster

    I can see all topics and replies just fine in the backend and in the database, though it’s confused me that posts seem to be saved in the wp_posts table, not wp_bb_posts. I also can’t figure out where the new forum gets saved, because it’s not in wp_bb_forums, nor do new topics appear in wp_bb_topics. Anyway, they appear in Buddypress activity streams, and I can edit them in the backend, so it seems they’re just not making it to the page.

    This is correct, bbPress plugin 2.x no longer stores the data in the old BuddyPress DB tables, each type is a WordPress custom post type ‘forum’, ‘topic’ & ‘reply’ which you would see in the wp_posts table.

    After the import did you run the repair tools?
    https://codex.bbpress.org/repair-forums/
    If not (or even if you did) it would be a good idea to run each of these.

    #138151
    Stephen Edgar
    Keymaster

    Run each of these repair tools one by one:
    https://codex.bbpress.org/repair-forums/

    • Recalculate the parent topic for each post
    • Recalculate the parent forum for each post
    • Recalculate private and hidden forums
    • Recalculate last activity in each topic and forum
    • Recalculate the sticky relationship of each topic

    If this still does not fix the issue please cteate a ticket on Trac so we can look further into this.

    https://bbpress.trac.wordpress.org/

    #138148
    Stephen Edgar
    Keymaster

    Check your language settings as per this thread for Dutch

    Problems with the language

    As to why you are using anything with Brazilian Portuguese bbpress-plugin-pt-br.mo I do not know.

    #138141
    Stephen Edgar
    Keymaster

    You may need to run the repair tool “Remap existing users to default forum roles”
    https://codex.bbpress.org/repair-forums/

    Also check your bbPress settings for roles, ideally this should already be set with ‘Default Role = Participant’ and ‘Auto Role’ is checked

    Default user role
    Select the default role for bbPress forum members as assigned by the ‘Auto Role’ option below, the roles are Keymaster, Moderator, Participant (Default), Spectator, Visitor and Blocked. For full details of the permissions assigned by these roles please User Roles and Capabilities.

    Auto Role
    Automatically assigns the default role to new, registered users upon visiting the site.

    https://codex.bbpress.org/forum-settings/

    #138138
    Stephen Edgar
    Keymaster

    Can you try the repair tool “Remap existing users to default forum roles”
    https://codex.bbpress.org/repair-forums/

    #138131
    Fredriks
    Participant

    I have my loop-sinlge-forum.php in my child-theme and it looks like this:

    <?php
    
    /**
     * Forums Loop - Single Forum
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    
    <ul id="bbp-forum-<?php bbp_forum_id(); ?>" <?php bbp_forum_class(); ?>>
    
    	<li class="bbp-forum-info">
    
    		<?php do_action( 'bbp_theme_before_forum_title' ); ?>
    
    	<div class="bbp-forum-header">
    		<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>" title="<?php bbp_forum_title(); ?>"><?php bbp_forum_title(); ?></a>
    		<div class="bbp-forum-content"><?php the_content(); ?></div>
    	</div>
     
    
    		<?php do_action( 'bbp_theme_after_forum_title' ); ?>
    
    		<?php do_action( 'bbp_theme_before_forum_sub_forums' ); ?>
    
    		<?php 
    		
    		if (is_single()) {
    			
    			bbp_list_forums();
    			
    		} else {
    		
    		st_bbp_list_forums( array (
    		'before'            => '<ul class="bbp-forums-list">',
    		'after'             => '</ul>',
    		'link_before'       => '<li class="bbp-forum">',
    		'link_after'        => '</li>',
    		'count_before'      => '<div class="topic-reply-counts">Ämnen: ',
    		'count_after'       => '</div>',
    		'count_sep'         => '<br />Inlägg: ',
    		'separator'         => '<div style="clear:both;"></div>',
    		'forum_id'          => '',
    		'show_topic_count'  => true,
    		'show_reply_count'  => true,
    		'show_freshness_link' => true,
    		)); 
    		
    		}
    		?>
    
    		<?php do_action( 'bbp_theme_after_forum_sub_forums' ); ?>
    
    		<?php do_action( 'bbp_theme_before_forum_description' ); ?>
    
    		<?php do_action( 'bbp_theme_after_forum_description' ); ?>
    
    		<?php bbp_forum_row_actions(); ?>
    	</li>
    <?php if (is_single()) { ?>
    	<li class="bbp-forum-topic-count">
    		<?php _e('Topics: ','bbpress') ?><?php bbp_forum_topic_count(); ?><br />
            <?php _e('Posts: ','bbpress') ?><?php bbp_show_lead_topic() ? bbp_forum_reply_count() : bbp_forum_post_count(); ?>
    	</li>
    
    	<li class="bbp-forum-freshness">
    
    		<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    
    		<?php st_last_poster_block ( get_the_ID()  ) ?>
    
    		<?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    
    	</li>
    <?php } ?>
    </ul><!-- #bbp-forum-<?php bbp_forum_id(); ?> -->

    This because I had to hard code for swedish language on line 41 and 43, just this is changed, nothing more with the code.

    Thanks for taking your time!

    #138120
    krbvroc1
    Participant

    I am trying to use a shortcode such as ‘bbp-forum-index’ on a page. (Trying to replace my existing mingle-forum shortcode). While the index does show up, there is no sidebar on the page. This tells me the shortcode is messing something up. (As if template not being closed properly). If I click on the breadcrumb the sidebar is back.

    Any suggestion on what is causing this?

    using 2.4.1

    #138113
    Robin W
    Moderator

    ok update to the previous

    If you’re using a child theme, or one of your own, you can add this to your css

    #bbpress-forums .bbp-forums-list li {
    	display: list-item !important;
    	font-size: 11px;
    	}

    and then bbpress updates will not overwrite

    #138112
    Robin W
    Moderator

    If you want forums as a list, then you need to change the following

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

    Line 120-122

    #bbpress-forums .bbp-forums-list li {
    	display: inline;
    	font-size: 11px;

    change to

    #bbpress-forums .bbp-forums-list li {
    	display: list-item;
    	font-size: 11px;

    This’ll then produce the vertical list

    Now I expect to be told off for directly editing a plugin file, and if someone else knows how to get it to do the same with a themes functions.php or style.css, then I’d love to see how to do it.

    You will need to make a note of this, as every bbpress plugin update will rub it out

    #138105
    Maartje_1992
    Participant

    You have to rename the documentname also, it has to be bbpress-nl_NL.mo
    What language is set in your WordPress installation (your dashboard, is is in english or dutch?)

    If it is dutch it should work immidiatly, otherwise you have to make a small change in your wp-config file.

    Change this line in wp congif:

    define ('WPLANG', '');

    to:

    define (‘WPLANG’, ‘nl_NL’);

    #138101
    Nate
    Participant

    We have about 23k topics, so maybe that’s the issue. If it is, is there a fix?

    This is what happens when I attempt to merge topics:

    Merge with this topic: 
    Fatal error: Allowed memory size of 67108864 bytes exhausted 
    (tried to allocate 35 bytes) in /home/content/37/9672937/html/wp-includes/wp-db.php on line 1228
    #138100
    Nate
    Participant

    Weird, receiving a similar error when trying to merge two topics:

    Merge with this topic: 
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 35 bytes) in /home/content/37/9672937/html/wp-includes/wp-db.php on line 1228
    #138090
    maniu
    Participant

    Hello

    It took me some time but i finally have figured out that dynamic roles that are getting assigned to users when “Auto Role” is disabled are being unset before bp_forum_enforce_blocked is triggered.
    This results in 404 for users.

    add_action( 'template_redirect', 'bbp_set_current_user_default_role', 7 ); managed to fix it for me but i am not sure what is un-setting dynamically assigned roles and if my fix does not have any down-site.

    Hope my input helps.
    Ticket created(http://bbpress.trac.wordpress.org/ticket/2452#ticket) please delete if forum topic unnecessary.

    Thanks,
    Maniu

    #138088
    Stephen Edgar
    Keymaster

    This what we have in the converter.php file:

    		if ( ! ini_get( 'safe_mode' ) ) {
    			set_time_limit( 0 );
    			ini_set( 'memory_limit',   '256M' );
    			ini_set( 'implicit_flush', '1'    );
    			ignore_user_abort( true );
    		}

    Send that to them and ask in particular the first two, timeout & memory limit.

    You can download something like this http://www.apachefriends.org/en/xampp.html
    (There are heaps of these depending on Mac, PC or Linux https://en.wikipedia.org/wiki/Solution_stack)

    They pretty much work out of the box and you just install WordPress locally, export your punBB database to import locally etc.

    #138087
    Stephen Edgar
    Keymaster

    Your other two topics there are ‘super sticky’ and they will show in every forum list, change those to ‘sticky’ and they will only be stuck in their own forum.

    https://codex.bbpress.org/getting-started-with-bbpress/#adding-a-topic

    You can add tags for organizing your Topics, and you can make the post Sticky or Super Sticky.

    • Sticky posts will stick to top of the Forum which it is in.
    • Super Sticky posts will stick to the top of all Forums.
    #138085
    Stephen Edgar
    Keymaster
    #138081
    Stephen Edgar
    Keymaster

    With some luck after we work out what is going on in that other thread you won’t need to do this, that said it does need doing a simple UPDATE query is all that will be needed.

    This is a good query to have a look around and see the data matches based on what the IP was of the post and the users last known IP address, this no doubt is not going to be accuate if the users IP changed from their first post to their last post and maybe every post in between.

    SELECT 
    phpbb_posts.post_id, phpbb_posts.poster_ip, phpbb_posts.post_text, 
    phpbb_users.user_id, phpbb_users.username, phpbb_users.user_ip 
    FROM phpbb_posts 
    LEFT JOIN phpbb_users 
    ON phpbb_users.user_ip = phpbb_posts.poster_ip

    It would be much better to do an update query using phpbb_posts.poster_id if your database tables are not in a mess but that won’t be known until the other thread is resolved.

    #138080
    Stephen Edgar
    Keymaster

    The best idea I have at the moment would be for you to post on http://pastebin.com or http://gist.github.com an excerpt of your phpBB table with a couple of entries either site of this mysterious ‘5 month mark’

    Fire up phpMyAdmin and open your phpBB database:

    Run the following query substituting > 5 & < 15 values with appropriate values from a couple of rows that shows what data IS being imported and also what is NOT.

    SELECT * 
    FROM  phpbb_topics 
    LEFT JOIN  phpbb_posts ON phpbb_topics.topic_first_post_id = phpbb_posts.post_id 
    WHERE phpbb_topics.topic_id > 5
    AND phpbb_topics.topic_id < 15

    Now at the results of that query at the bottom of the page is export click that and select Custom - display all possible options select the format as CSV and check the Put columns names in the first row check box.

    Upload that file somewhere and post the link here (or send me a DM on Twitter) and I can have a look at exactly what is going on.

    Edit: fixed mysql code formatting

    #138077

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    Could the database port have any effect?

    Yes, make sure that is also correct, the default is 3306 but your web host may use a different port.

    You could also check what your SMF config is by checking the database values in eg. /public_html/smf/Settings.php

    eg.

    ########## Database Info ##########
    $db_type = 'mysql';
    $db_server = 'localhost';
    $db_name = 'smf_database_name';
    $db_user = 'mysql_user_name';
    $db_passwd = 'mysecretpassword';
    $ssi_db_user = '';
    $ssi_db_passwd = '';
    $db_prefix = 'smf_';
    $db_persist = 0;
    $db_error_send = 1;
    
Viewing 25 results - 13,576 through 13,600 (of 32,503 total)
Skip to toolbar