Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 2,651 through 2,675 (of 11,571 total)
  • Author
    Search Results
  • #176140
    darkoned12000
    Participant

    Just to describe my process in this trial run I am doing with the import of IPB 3.47 to bbpress 2.6a:

    – Install latest version of WP
    – Download and install latest version of bbpress
    – Open ‘Tool -> Forums -> Import Forums’
    – Selected ‘Invision’ and put in all my database info. I did set ‘Table Prefix’ to ‘ipb_’ since all of my tables in my ipboard setup start with ‘ibp_’
    – Row Limit and Time Delay (set to default), Convert Users is checked and nothing else is checked and I clicked ‘Start’

    Here is a listing of the sql code executed, I only listed items that there was something done, ‘no conversions’ for items are not listed:

    Code for convert Forum:
    <p class="" title="SELECT convert(forums.id USING &quot;utf8mb4&quot;) AS id,convert(forums.parent_id USING &quot;utf8mb4&quot;) AS parent_id,convert(forums.topics USING &quot;utf8mb4&quot;) AS topics,convert(forums.posts USING &quot;utf8mb4&quot;) AS posts,convert(forums.name USING &quot;utf8mb4&quot;) AS name,convert(forums.name_seo USING &quot;utf8mb4&quot;) AS name_seo,convert(forums.description USING &quot;utf8mb4&quot;) AS description,convert(forums.position USING &quot;utf8mb4&quot;) AS position FROM ipb_forums AS forums LIMIT 100, 100">Converting forums (100 - 199)</p>

    Code for Forum Heirarchy:
    <p class="" title="SELECT post_id AS value_id, meta_value FROM wp_postmeta WHERE meta_key = &quot;_bbp_old_forum_parent_id&quot; AND meta_value > 0 LIMIT 0, 100">Calculating forum hierarchy (0 - 99)</p>

    Code for Topics:
    <p class="loading" title="SELECT convert(topics.tid USING &quot;utf8mb4&quot;) AS tid,convert(topics.posts USING &quot;utf8mb4&quot;) AS posts,convert(topics.forum_id USING &quot;utf8mb4&quot;) AS forum_id,convert(topics.starter_id USING &quot;utf8mb4&quot;) AS starter_id,convert(posts.post USING &quot;utf8mb4&quot;) AS post,convert(topics.title USING &quot;utf8mb4&quot;) AS title,convert(topics.pinned USING &quot;utf8mb4&quot;) AS pinned,convert(topics.start_date USING &quot;utf8mb4&quot;) AS start_date,convert(topics.last_post USING &quot;utf8mb4&quot;) AS last_post FROM ipb_topics AS topics INNER JOIN ipb_posts AS posts ON(topics.tid = posts.topic_id) WHERE posts.new_topic = 1 LIMIT 1100, 100">Converting topics (1100 - 1199)</p>

    Code for Topic Stickies:
    <p class="" title="SELECT post_id AS value_id, meta_value FROM wp_postmeta WHERE meta_key = &quot;_bbp_old_sticky_status_id&quot; AND meta_value = &quot;sticky&quot; LIMIT 0, 100">Calculating topic stickies (0 - 99)</p>

    Code for Topic Tags:
    <p class="" title="SELECT convert(core_tags.tag_meta_id USING &quot;utf8mb4&quot;) AS tag_meta_id,convert(core_tags.tag_text USING &quot;utf8mb4&quot;) AS tag_text FROM ipb_core_tags AS core_tags LIMIT 1800, 100">Converting topic tags (1800 - 1899)</p>

    Code for Replies:
    <p class="" title="SELECT convert(posts.pid USING &quot;utf8mb4&quot;) AS pid,convert(posts.topic_id USING &quot;utf8mb4&quot;) AS topic_id,convert(posts.ip_address USING &quot;utf8mb4&quot;) AS ip_address,convert(posts.author_id USING &quot;utf8mb4&quot;) AS author_id,convert(posts.post USING &quot;utf8mb4&quot;) AS post,convert(posts.post_date USING &quot;utf8mb4&quot;) AS post_date,convert(posts.edit_time USING &quot;utf8mb4&quot;) AS edit_time FROM ipb_posts AS posts LIMIT 400, 100">Converting replies (400 - 499)</p>

    Conversion Complete
    Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 319

    <Script started over again with ‘Converting Fourms’

    #176139
    Stephen Edgar
    Keymaster

    noticed that it had created several duplicates of each forum area and replicated posts more than once. It’s almost like it didn’t know it finished and restarted the process all over.

    Hmmmm, that is weird, especially the forum duplicates

    Is there any logs or debugging that I can turn on

    Right click, “inspect element” will show you the actual MySQL queries in the raw web page source code that are taking place that importer uses for each step.

    If there is mods installed on IPB could this mess with the importer at all?

    Possibly, I’ve not tested any of the importable forums with any mods, there are simply far too many permutations and combinations, the MySQL debug above should help with determining if this is a factor or not.

    The ini_set is bbPress’ attempt at bumping PHPs memory limit to 256mb if it can during import, you can ignore this.

    The WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_bbp_converter_translator issue I still need to fix, I’ll try to get that fixed today, see https://bbpress.trac.wordpress.org/ticket/2936

    #176135
    darkoned12000
    Participant

    Hello Everyone

    I just recently installed bbpress 2.6 alpha build because I heard there was some more improvements to the database importer. I was trying a test run of converting my IPB v3.47 forums to bbpress 2.6a and I put in all of the info into the script and it looks like it was working and I went away for a few hours and came back and it was still running. I thought this was odd because the forums/users are not abnormally large.

    I opened up the forums link inside the WP admin and noticed that it had created several duplicates of each forum area and replicated posts more than once. It’s almost like it didn’t know it finished and restarted the process all over.

    Is there any logs or debugging that I can turn on that would provide help into troubleshooting this issue as to why the importer never stops processing? If there is mods installed on IPB could this mess with the importer at all?

    I did find an error_log file and here is some of the issues I saw in it:

    [03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 319
    [03-Jul-2016 17:18:48 UTC] PHP Warning: ini_set() has been disabled for security reasons in /home/darkone/public_html/wp/wp-content/plugins/bbpress/includes/admin/converter.php on line 320

    [02-Jul-2016 17:10:39 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query CREATE TABLE wp_bbp_converter_translator (
    meta_id mediumint(8) unsigned not null auto_increment,
    value_type varchar(25) null,
    value_id bigint(20) unsigned not null default ‘0’,
    meta_key varchar(255) null,
    meta_value varchar(255) null,
    PRIMARY KEY (meta_id),
    KEY value_id (value_id),
    KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by do_action(‘wp_ajax_bbconverter_process’), call_user_func_array, BBP_Converter->process_callback, BBP_Converter->sync_table, dbDelta

    Any help is appreciated, thanks.

    #176133
    Robkk
    Moderator

    If you would want that feature in that particular shortcode, you would have to filter the code, and change the query.

    You can also make a new shortcode or a custom view to display the latest topics and limit the number of topics.

    #176106

    In reply to: Moderation by Forum

    Brian
    Participant

    Appreciate the info. I’m currently testing a different forum, and it looks like it might work with no customization needed.

    #176098
    haddly
    Participant

    Hi Robkk,

    Thanks for the code. unfortunately it doesn’t work for my website. Well, I have a vagrant set up on my computer with a copy website and i test everything there before i make real changes.
    I made a child theme and a style.css file (this works as my wordpress site recognises it) and i made a functions.php file and added the code you gave me. The thing is, i tried some other code that exists on https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#23-show%c2%a0the-bbpress-forum-search-everywhere and they didnt work either.
    any suggestions?
    would greatly appreciate any help.
    thx
    Dan

    #176094
    khunmax
    Participant

    UPDATE and BUMP

    After further testing I have discovered that the error in this code is not due to whether the user is admin or non admin.

    I (admin) have a two word username (blank space in the middle of the two words).

    I created a non admin user account also with a two word user name and get the same error. When that use clicks on the my profile link they are taken to Oops page.

    So in its current form Robins code does not work if the user has a username with more than one word in it.

    Any chance someone can fix this.

    Thanks in advance and kind regards

    Max

    #176058
    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    #176051
    giobby
    Participant

    Hi everybody,

    I’ve just finalised the migration from PhpBB to BBpress.
    I’have noticed that when I open a read a topic for the first time, there’s some processing happening in the background the takes time depending on the number of replies in that topic.

    – hundred of replies can take more than 10 seconds. Once I am in the topic, if I open it again with another user, it’s fast.
    – thousand of replies can end up in a ” PHP Fatal error: Maximum execution time of 30 seconds exceeded”
    – also, a test I did on a topic with about 40K replies ended up in an “Allowed memory size of XXXX bytes exhausted (tried to allocate 4096 bytes) in Unknown on line 0” error.

    I am on a dedicated server and I can change all the memory and execution time limits parameters, but I have the feeling this should not be the solution.
    I don’t understand why there0s so much processing happening.

    After a second look, I’ve noticed that the replies are not paginated. So the system tries to return all the replies in one shot.
    I’ve tried to change the pagination settings and also to deactivate/reactivate the plugin but it didn’t fix the issue.

    Even when I move a topic in the thrash, there’s some php logic that eliminates the replies one by one and can take a minute when the topic has 40 replies.

    Is this normal?

    Anyone who can help?

    Thanks,

    Gio

    #176023
    heero
    Participant

    Latest WordPress and bbPress version. Any idea guys?

    #175989
    Robin W
    Moderator

    ok, I’d either

    change the theme to parent briefly and try it again – see if this fixes

    or try replicating to a test site, where you can play with it

    https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/

    #175975
    Stephen Edgar
    Keymaster

    It’s been a while since I tried it, I’ll have to re-attempt it in a couple of days when I have an opportunity to try it again.

    Cool

    As I recall, it imported the users fine, and then it looked like it was doing the posts, but after, I want to say about 150 posts, it froze there, never indicated further imports. When I checked the database tables, it didn’t appear that it actually brought the content from Dizkus over to bbPress at all.

    Ok, so it did something, thats a good sign in that the database name and password were correct.

    If you’ve ever used Chrome/Firefox “inspect” debugger, you can right click and select “inspect” or (view the source code of the web page) and there is some extra debugging MySQL statements you will see there, if when testing you have issues take a look at the last query and include that MySQL code here when posting back, it will help determine what went wrong.

    As to the localhost problem, I mirrored the Zikula site to my local WIn 10 machine, and then tried to import on a local WP/bbP site and it didn’t do anything. Seems like it just couldn’t find data.

    If it can’t find any data it should thrown an error message to that affect, if you don’t select Dizkus from the dropdown menu on the importer screen and use the default AEF that can be one of the causes, another is that the database is not in the same database server as your WordPress install.

    Did you import that database to your Win 10 machine or were you trying to connect to it remotely?

    #175966
    TriiXx
    Participant

    Hello,

    I want migrate my Joomla website to WordPress.
    I have 23.000 members and more 100.000 messages.

    It’s good for :
    – Members
    – Forums
    – Topics

    But when he must migrate responses, i have an error message :
    “jos_kunena_topics not exists” -> It’s true … the table name is “jo_” not “jos_” … i don’t know why he adds a “s” …

    I use Kunena 3 and latest version of BBpress

    Someone can help me ?
    Thanks and sorry for my english.

    #175961
    JohnP
    Participant

    I’ve already searched both the parent theme and the child theme for the string “bbp”, but can not find it there.

    The previous developer did some rather unorthodox coding, so anything is possible.

    They might have even edited core WordPress files.

    Is there any other way of testing where a bbPress-dependent function might be running?

    #175956
    vivnt
    Participant

    In my main forum page, I only have categories listed. Under each category, there are a couple of forums and people would post under each of these forums. However, on my main forum page, the freshness just states no topics. Is there a way to change it to include the subforums under it?

    I have tested without any other plugins other than bbpress.

    #175931
    Pascal Casier
    Moderator

    @gfxcon @adaman I can confirm it’s inside 2.6 (moderators per forum), you can already test the 2.6-alpha if you want that is very stable.

    Pascal.

    bjornwebdesign
    Participant

    Ok, last time, I promise :p…

    I updated all my users with the above function, but I don’t want it to run every time on the init hook.
    So I changed it into:

    /*
     * Do stuff when the user's xprofile is updated
    */	
    function xprofile_updated ( $user_id, $posted_field_ids, $errors, $old_values, $new_values) {
    	/*
    	 * Change the user_nicename which is used as profile url, we do NOT want the username in url! Bad bad BP...
    	 * Please note: the user profile url can now be changed by the user, direct linking from other places on the web may result in 404.
    	 * Altough this should run AFTER updating profile fields (saving to DB), the nicename is only updated after a second save. So we need to check from $new_values
    	 */
    	$new_display_name = '';
    	foreach ( $new_values as $key => $value ) {
    		if ( is_array($value) && $key == 1 ) { // field display_name = 1, make sure this is correct
    			foreach ( $value as $k => $v ) {
    				if ( $k == 'value' ) {
    					$new_display_name = $v;
    				}
    			}
    		}
    	}
    	//error_log('******** xprofile_updated: '.$user_id.' | NEW DISPLAY_NAME: '.$new_display_name.' *********');
    	$search = array( ' ', '.' ); 
    	$replace = array( '_', '' );
    	$user = get_user_by( 'ID', $user_id );		
    	if ( $user ) {
    		if ( $user->data->user_status == 0 && $new_display_name ) {
    			$new_user_nicename = strtolower(str_replace( $search, $replace, $new_display_name) );
    			if ( strlen ( $new_user_nicename ) > 50 ) {
    				$new_user_nicename = substr ( $new_user_nicename, 0, 50 );
    			}				
    			if ( $user->data->user_nicename != $new_user_nicename ) { // && $user->ID == 80 <-Add this if you only want to run it for 1 user, so you can test it.
    				$args = array(
    					'ID'            => $user->ID,
    					'user_nicename' => $new_user_nicename
    				);
    				wp_update_user( $args );
    				//error_log('******** updated user_nicename: '.$user->ID.' | NEW USER_NICENAME: '.$new_user_nicename.' *********');
    				wp_redirect( get_site_url().'/leden/'.$new_user_nicename.'/profile/edit/group/1/' ); // we cant use bp_core_get_user_domain() here, because it still uses the old user_nicename
    				exit;					
    			}
    		}
    	}
    }
    add_action( 'xprofile_updated_profile',  'xprofile_updated', 100, 5 );

    Please note, it has some site specific code, like the wp_redirect.
    Any questions? Feel free to ask.


    @mod
    : Hoping my code snippet is not too long.

    Regards, Bjorn

    bjornwebdesign
    Participant

    OMG… We webdesigners are never finished 😛

    After some more testing I noticed that the function did not change all user_nicename.
    The DB type of user_nicename = VARCHAR(50) and the type of display_name = VARCHAR(250).
    If the updated user_nicename exceeds 50 chars the DB field will not update and nothing changes. So I added a substr to resolve this.
    Thankfully the wp_update_user() takes care off special characters like ë.

    Updated code:

    /*
     * Change the user_nicename which is used as profile url, we do NOT want the username in url! Bad bad BP...
     * This runs allways (with init hook), we should only do this once and then on user register & profile update..
     * Please note: the user profile url can now be changed by the user, direct linking from other places on the web may result in 404.
     * And offcourse allways use something like: 'bp_core_get_user_domain( $user_id )' when you want to get the user's profile url.
     */
    $search = array( ' ', '.' ); 
    $replace = array( '_', '' );
    $all_users = get_users();		
    foreach ( $all_users as $user ) {
    	$display_name = $user->data->display_name;
    	if ( $user->data->user_status == 0 && $display_name ) {
    		$new_user_nicename = strtolower(str_replace( $search, $replace, $display_name) );
    		if ( strlen ( $new_user_nicename ) > 50 ) {
    			$new_user_nicename = substr ( $new_user_nicename, 0, 50 );
    		}				
    		if ( $user->data->user_nicename != $new_user_nicename ) { // && $user->ID == 80 <-Add this if you only want to run it for 1 user, so you can test it.
    			$args = array(
    				'ID'            => $user->ID,
    				'user_nicename' => $new_user_nicename
    			);
    			wp_update_user( $args );					
    		}
    	}
    }
    bjornwebdesign
    Participant

    LoL, I thought i was finished, but i noticed the second loop isn’t necessary.
    So here’s my finished/tested code:

    /*
     * Change the user_nicename which is used as profile url, we do NOT want the username in url! Bad bad BP...
     * This conversion runs allways, we should only do this once and then on user register & profile update..
     * Please note: the user profile url can now be changed by the user, direct linking from other places on the web may result in 404.
     * And offcourse allways use something like: 'bp_core_get_user_domain( $user_id )' when you want to get the user's profile url.
     */
    $search = array( ' ', '.' ); 
    $replace = array( '_', '' );
    $all_users = get_users();		
    foreach ( $all_users as $user ) {
    	$display_name = $user->data->display_name;
    	if ( $user->data->user_status == 0 && $display_name ) {
    		$new_user_nicename = strtolower(str_replace( $search, $replace, $display_name) );
    		if ( $user->data->user_nicename != $new_user_nicename ) {
    				$args = array(
    					'ID'            => $user->ID,
    					'user_nicename' => $new_user_nicename
    				);
    				wp_update_user( $args );					
    		}
    	}
    }

    Put this in a function and call it on an action hook, can be done in your theme’s functions.php just like the OP already explained here.

    The function will change something like this: ‘Mr. A.T. Testing123’ into ‘mr_at_testing123’.

    #175899
    Robin W
    Moderator

    not tested but this code should allow editing at all times. Add it to your functions file

    add filter ('bbp_past_edit_lock' , 'rew_allow_editing' )
    
    function rew_allow_editing () {
    	$retval = false ;
    	Return $retval ;
    }

    on other posts, I’d wonder if the bbp_reply_id(); might be returning a null or the wrong id.

    As a test the easiest way would be to replace your Edit </a> with

    <?php echo esc_url( home_url( '/' ) ).'conversations/reply/'.bbp_reply_id().'/edit/' ?></a>
    

    That way you’ll see where it is going to send you and can find out what the problem is

    #175887
    Jon Fergus
    Participant

    Ok, so I’ve added the ability to include a featured image for forums and topics. BUT…. the featured image for forums isn’t being recognized as the og:image when I run it through the facebook debugger. Any ideas why that would be?

    Here’s the forum I’m using as the test: http://nexus.universaltheosophy.com/groups/art-of-living-study-group/forum/

    This is the image I set as the featured image: http://nexus.universaltheosophy.com/wp-content/uploads/nexus.jpg

    But facebook seems to be picking up the first image it finds within the forum.

    Also…. I’d like to add a featured image that works as the og:image for groups. Any idea how to do that?

    EliFerreira
    Participant

    I’m using the 2.5.9 version of bbPress plugin in the latest version of WordPress and would like to remove this tab, but I can not. Can someone help me?

    Here’s a print for better understanding: http://www.siteconcursos.com/wp-content/uploads/2016/06/Capturar.jpg

    #175877
    Brian
    Participant

    Folks, I’m new to bbPress, but I’m setting it up for a client’s membership site. They want a general forum for their members, where any member can post at any time (in other words, no moderation before posting).

    Then they want a more-restrictive forum, where members can create drafts which must be approved before they are published.

    I’ve tested bbP with bbPress Moderation by Ian Stanley, and it works in general — but requiring all posts to be moderated. I’m currently working with FV bbPress Tweaks, which appears to be brand new, but also seems to work and has a few more features.

    However, I’m not seeing anything that allows settings for individual forums. Seems like the sort of thing people would want.

    This all-or-nothing approach seems baffling to me, so I’m hoping that I’ve missed something obvious. Any relief here?

    #175866
    Robin W
    Moderator

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #175851
    peter-hamilton
    Participant

    And I wish this forum did a bit more to sell BBPress, where are the showcases, the paid for professionals and why is this theme still sooooo boring.

    Why not integrate more with Buddypress forums, as I can not believe people only using BBPress on its own, I want a better profile.

    Why not have the option to test plugins on this site with live demos.

    Why not have a clear donation button on your site, or do anything to receive funds to spend time improving the BB line.

    Perhaps charge people 1 euro to download BBPress first time then free for life through account, perhaps the free model gives more awareness but BBPress is good enough to compete with expensive forum software.

    Why not compete with codecanyon and offer premium plugins that work without conflicts.

    Why not hire me as vice president of BBCorp and pay me lots, I accept jellybeans as currency.

    Anyway, as mentioned before loving BBPress.

    P.H.

Viewing 25 results - 2,651 through 2,675 (of 11,571 total)
Skip to toolbar