Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,601 through 13,625 (of 32,519 total)
  • Author
    Search Results
  • #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;
    
    #138075
    Stephen Edgar
    Keymaster

    Did you try the Stop wait a few seconds and Start thing again?

    It seems to work now when I set the number of rows very low (10) and give it plenty of delay (5 seconds).

    Now the conversion process seems to have stopped when there’s about eight thousand Replies left to convert… I don’t see the spinning thing anymore indicating progress, but get the same time limit warning.

    I suspect both these are related to your web host is limiting us trying to bump the memory and timeouts it might be a good idea to contact your web host to see if they can at least ‘temporarily’ bump these for you until you have got your forum imported.

    Another option is to setup a local WAMP/MAMP/XAMMP install and try it locally on your PC.

    Resetting the forums does not remove all the imported users, by the way. Is that a problem?

    I’ll take a look at why this isn’t working as it should.

    Should I select “Start a fresh conversion from the beginning” or “Purge all information from a previously attempted import” or both?

    The ‘Start a fresh converesion’ will force the bbPress import to start from the beginning rather than resume from where it left off if it didn’t finish the import last time.

    Also, as mentioned, posts/Replies are all assigned to me, instead of the users who made them.

    Until the import is finished and the repair tools are run to ‘recount’ everything this can be the case until all the ‘metadata’ is sync’d up.

    #138071

    In reply to: How to edit Forum Role

    Within wp-admin their Forum Role is at the bottom of their profile (it’s the only place WordPress allows plugins to hook in and add anything.)

    Theme-side, within a user’s profile, there is a “User Role” section that allows any Keymaster to modify any user’s roles.

    #138063
    Theopt
    Participant

    Well some editor reported me this, then I’ve checked the error log and I’ve found this:

    [13-Oct-2013 21:22:03] WordPress database error Table ‘diytech1_wor5.zhb_bp_groups_groupmeta’ doesn’t exist for query SELECT group_id FROM zhb_bp_groups_groupmeta WHERE meta_key = ‘forum_id’ AND meta_value = ‘2874’; made by require_once(‘wp-admin/admin.php’), do_action(‘load-tools_page_bbp-repair’), call_user_func_array, bbp_admin_repair_handler, call_user_func, bbp_admin_repair_group_forum_relationship

    Since the last update on bbpress editors cant login on wp-admin, they see a blank page.

    How to fix it?

    #138059
    Halo Diehard
    Participant

    I have followed WP-United author’s instructions for removal by disabling in WP, removing the code (by hand to be sure) from all phpBB3 files and deleting WP-United files from phpBB3, deleting the plugin in WP. I then purged the cache in phpBB3, resyncronized in phpBB3, imported to bbPress, and resynched there – – Still only get posts up to five months ago 🙁

    Maybe it’s the Kiss Portal that’s causing the issue? Maybe it puts a difference in the database that the importer doesn’t recognize?

    #138054
    Stephen Edgar
    Keymaster

    My bad, it should be message, copy and paste error on my part.

    I suggest you reset the forums codex.bbpress.org/reset-forums/ and give it another go, I would also suggest due to your web host limiting some of the changes we try to make is to drop some of the values eg. to 50 rows at a time rather than the default 100, set the time to 2 seconds delay.

    If it appears that the importer stalls again, simply click ‘Stop’ wait a few seconds for your host to finish up any tasks its performing and click ‘Start’ and the import should resume from where it left off.

    #138051
    Stephen Edgar
    Keymaster

    No, it doesnt do anything, just spinning. Maybe it needs to be start from beginning next time without “Purge Previous Import” checked. Seems as it try now to do all from very scratch.

    Sometimes the ‘Purge previous import’ gets a little confused 😉

    You can Reset Forums which will remove all forums, topics, topic tags & replies from the WordPress database giving you a ‘clean’ bbPress to start again.

    Dont want to be rude, but make plugin little bit verbose, put some info around, dont be leasy.

    As the converter is constantly being improved in bbPress we will get more verbose/debugging information in there in future versions. Generating this type of information supporting the ever growing ~35 different forum conversion scripts is no easy task and we are trying not to be vague yet at the same time not be to verbose either.

    #138050

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @ricov4 What version of SMF are you trying to import from?

    Make sure you have the correct fields for ALL of the values:

    • Database Name: Name of the database with your old forum data
    • Database User: User for your database connection
    • Database Password: Password to access the database
    • Table Prefix: (Possibly could be smf_)
    #138049
    Stephen Edgar
    Keymaster

    The error is due to a few settings we try to make with your web host to help the importer along with some time limits and memory limits. If you are getting forums and topics imported fine we can probably (for now) ignore the error.

    What version of PunBB are you trying to import from?

    Can you open up phpMyAdmin and confirm you have a _posts table, it may have a prefix eg punbb_posts and does it have the following fields in the table structure:

    id, poster, poster_id, poster_ip, poster_email, message, hide_smilies, posted, edited, edited_by & topic_id

    #138046
    Nick Ottens
    Participant

    Thanks Stephen! I’ve been waiting for this.

    Unfortunately, the converter seems to get stuck at the point where it’s supposed to start importing Replies. It brings over Forums, Topics and Users just fine, though.

    It also repeatedly gives me the following Warning, nor sure if it’s connected..

    Warning: set_time_limit(): Cannot set time limit due to system policy in /customers/e/e/2/[MY URL]/wp-content/plugins/bbpress/includes/admin/converter.php on line 306

Viewing 25 results - 13,601 through 13,625 (of 32,519 total)
Skip to toolbar