Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 4,676 through 4,700 (of 11,580 total)
  • Author
    Search Results
  • #146860
    Tom Dyer
    Participant

    Thanks @netweb, I appreciate the concern and I think if this was a live site we were discussing then I’d be much more weary of asking for help. As it happens, this site is not currently public facing, and I have plenty of backups of the data. It would be just be beneficial for @robin-w to see what I’m working with (it’s a pretty big site with a lot of forum users and topics, something that’s hard to replicate for a local test).

    I solemnly swear that I won’t get ugly, and will always just be appreciative of any help that @robin-w is providing, whether it fixes my problem or makes it worse.

    I believe his intentions are in the right place. Just like yours

    #146857
    Stephen Edgar
    Keymaster

    Ok, I’ll take a look at the groups shortly, my computer is being stupid at the moment and isn’t playing nice ๐Ÿ™

    ‘Reply to Replies’ / ‘2nd level replies’, we can do this easily, we support ‘threaded replies’, I can’t find how to make one or a setting though :/

    Basically ‘whatever’ version procedure they use, I will reference that, kind of not important at our end except to say we tested with ‘x’ version.

    #146852
    Stephen Edgar
    Keymaster

    I considered that the content could at least be imported, then the admin would do whatever he wants to with that content. But maybe the groups ownership and membership will be impossible to mimick at bbPress level solely, so itโ€™s better to avoid importing rather than making public content that was private to begin withโ€ฆ?

    – Groups forums (either drop topics, leave them as parentless, or create hidden forums as per the group name)

    I don’t think leaving them parentless is the best way to go, maybe creating a hidden forum might be the way to go. Let’s leave this out for now, we can revisit this in the future easily enough and get v1 out and revisit this for v2.

    Iโ€™m adding a Users section to your own version of the converter module (based on other converters available). If we want to import user-related settings, like forums/topics subscriptions and favorites, is this possible ? WPS uses usermeta, and I would assume bbPress does soโ€ฆ?

    – user meta (forum subscriptions, favorites)

    Yes, mainly, I haven’t looked at importing subscriptions or favorites yet in any of the importers, will get there one day.

    What you have added looks fine via your latest commit here.

    WordPress database error: [Table ‘xxx.wp_bp_groups_groupmeta’ doesn’t exist]

    You only get this error if you don’t have BuddyPress installed and activated, I need to add some inline docs for this and help docs.

    How do you access a parentless topic in bbPress ? Could these be used for WP Symposium groups forum topics ?

    You will see them in the topic list in the backend, you won’t see them on the front end unless you make them a sticky or know the url but they will be publicly accessible. Finding them in the backend is not so easy unless you know the title of the topic. Not the best experience, but also was never really planned for, it was just never enforced that a topic must have a forum either.

    – Could you clarify what a forum and a category refer to, in bbPress terminology ? Is a category a subforum, which has necessarily a parent forum, while a forum has no parent ? In such a case, there should be a test over symposium_cats.cat_parent in callback_forum_type(), otherwise it can be simply disregardedโ€ฆ

    Both a forum and a category can have sub forums or sub categories, forums can have topics, categories cannot have topics.

    Thus symposium_cats.cat_parent is already being used with _bbp_forum_parent_id and this is how we get the forums, sub-forums, categories etc all ordered correctly in their correct nested levels.

    I think we are good, I’ll grab the latest shortly and the patch to bbPress Trac Ticket #2603 and I’ll take it for a test drive then commit it and it will be part of bbPress v2.6.

    #146851
    Avasti
    Participant

    In the main forum i have the configuration for see the latest post. I can change the configuration for show the latest comments?

    #146825
    Robin W
    Moderator

    Great – glad you’re fixed, and thanks for posting the latest code needed ! ๐Ÿ™‚

    #146787
    lagrou
    Participant

    Back to topic, just updated the GitHub repo with the following:
    – Add User section
    – Fix & make use of callback_forum_status, add Forum status (Open or Closed)
    – Fix & make use of callback_sticky_status
    All this tested OK on my nested test install. I’m leaving the “pre-alpha code” warning, though.

    Some more questions raised at this stage:
    – How do you access a parentless topic in bbPress ? Could these be used for WP Symposium groups forum topics ?
    – Could you clarify what a forum and a category refer to, in bbPress terminology ? Is a category a subforum, which has necessarily a parent forum, while a forum has no parent ? In such a case, there should be a test over symposium_cats.cat_parent in callback_forum_type(), otherwise it can be simply disregarded…

    czentnar
    Participant

    function custom_bbp_has_replies() {
    $args[‘order’] = ‘DESC’; // ‘ASC’ (Ascending, Default), ‘DESC’ (Descending)
    return $args;
    }
    add_filter(‘bbp_before_has_replies_parse_args’, ‘custom_bbp_has_replies’ );

    Thank you for the great solution, @netweb!
    However, as I changed the query, the post IDs got messed up (this appears when I click on the ID starting with “#” in the top right corner of the post). Also, after submitting a new post, bbPress jumps to the last page in that topic, despite the fact that the order has already been changed and the latest reply is on the first page (this could be a result of the messed ID’s, I think).

    #146733
    mmscholz
    Participant

    Here is a link that works on a Topic.

    http://scholzmobility.com/forums/topic/testing

    #146665
    Nathan
    Participant

    So, after DAYS of working on this I finally have a solution. I have not done a lot of testing, but this has worked so far.

    Basically what is happening is that for forums (not replies) the logic is inverted. This means that users are subscribed to a forum unless they unsubscribe (ie. are added to the DB).

    Just add this to your theme’s function.php and it should work.

    I hope this helps someone, because it has taken a LOT of work!

    add_filter( 'bbp_get_user_subscribe_link', 'invert_get_user_subscribe_link', 10, 4 ); //invert forum subscription
    add_filter( 'bbp_is_user_subscribed_to_forum', 'invert_is_user_subscribed_to_forum', 10, 4 ); //invert forum subscription
    add_filter( 'bbp_get_forum_subscribers', 'invert_get_forum_subscribers' ); //invert forum subscription
    add_filter( 'bbp_is_user_subscribed', 'invert_is_user_subscribed', 10, 4 ); //invert forum subscription
    
    function invert_is_user_subscribed($retval, $user_id, $object_id, $subscribed_ids) {
    	if (get_post_type( $object_id ) == bbp_get_forum_post_type())
    		return !$retval;
    	else	
    		return $retval;
    }
    
    function strContains($needle, $haystack) {
    	if (strpos($haystack, $needle) !== false) {
    		return true;
    	} else {
    		return false;
    	}
    }
    
    function invert_get_user_subscribe_link ($html, $r, $user_id, $topic_id) {
    	if (strContains( "bbp_unsubscribe", $html )) {
    		$html = str_replace("bbp_unsubscribe", "bbp_subscribe", $html);
    	} else {
    		$html = str_replace("bbp_subscribe", "bbp_unsubscribe", $html);
    	}
    	return $html;
    }
    
    function invert_get_forum_subscribers( $users ) {
    	$args = array('fields' => 'id');
    	$all_users = get_users($args);
    	$send_to_users    = array_diff($all_users, $users);
    	return $send_to_users;
    }
    
    function invert_is_user_subscribed_to_forum( $retval, $user_id, $forum_id, $subscribed_ids ) {
    	return !$retval;
    }
    

    I also include make users “subscribed” to anything they write by default. All they have to do is uncheck the box. The following code is also added to function.php.

    add_action('bbp_theme_after_topic_form_subscriptions', 'subscribed_by_default'); //default subscribe
    add_action('bbp_theme_after_reply_form_subscription', 'subscribed_by_default'); //default subscribe
    
    function subscribed_by_default() 
    	echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>';
    }
    #146661
    jeffacubed
    Participant

    Thx for taking a closer look Stephen! ( @netweb ) – this is seemingly simple – though not simple in seamless execution in a multi-site setup. I’m fairly sure the best way to handle this auto re-direction to the root when registering from WPMS sub-sites is to create a unique wp-signup.php file for any sub-site where one DOES NOT want the re-direction to the root site on registration. I started to test Chris Wiegman’s (& others) method:

    http://chriswiegman.com/2010/02/using-a-custom-wp-signup-page-with-wordpress-mu/

    Which would work – though I didn’t got deep enough (yet) to get the re-direction(s) to the root to stop-happening.

    My ‘temporary’ sol’n @hamsterdj involves two plugins:

    1. Login with Ajax

    2. WP-Members

    While my ‘temporary’ sol’n 100% works (for now) – I’m going to dig-in & try my hand at the custom wp-signup.php sol’n for each sub-site registration as I’m more in favour of soln’s of this nature that do not 100% rely on plugins!

    -Jeff

    #146639
    andyboyce
    Participant

    Hi Robin,

    Thanks for your help.

    I have set up a test user, and tried to edit the profile and get the message ‘You do not have sufficient permissions to access this page’

    Andy

    boblebad
    Participant

    Thanks again for your reply @Robin-W

    I have had a look at the databases, but couldn’t find a difference at that moment, but i’ll export them to csv and compare them, then i’ll find every little difference.

    I don’t remember whether i have had plugins installed that i have deleted again, but i know i have bin very careful about the site and tested on my sandbox. But i know that some plugins leave settings in the database that can mess things up later.

    I’ll sure get back when i find out what’s causing this, so any other can try it out when they have the same missing post problem.

    Robin W
    Moderator

    So your test site works, but you live site doesn’t?

    If there on the same servers, then it has to be a difference in either settings (database) or code.

    I’d try to work out which by backing up my test site, and then restoring my live site database to it

    see https://codex.bbpress.org/creating-a-test-site/

    for details if you’re not familiar.

    That should let you see which is it, and you can progress from there

    come back and let us know how you get on

    #146614

    In reply to: Freshness Date Format

    Morgensonne
    Participant

    Good news! ๐Ÿ™‚

    I have just found out that the web server to which I move, if I have my bbPress finished, PHP5.3 has running. So it is unnecessary for me to make changes. I install your plugin when I’m away from the test server. That’s ok.

    Thanks for this plugin, Robin – und your great and kind support!!

    Morgensonne

    #146590
    Robin W
    Moderator

    ‘I have the theme setup running on two domains, the one i use for testing, the funny thing is when posting on that site, the first post of the thread is shown.’

    This would tend to suggest that something is different or not set the same. Are both on remote servers, or is one on a local PC running wamp or mamp?

    Not showing a topic is a common symptom, but with many different causes, so there is no one solution.

    There are a number of things you can try.

    Resetting permalinks – sometimes fixes – in your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    Repair Forums – Dashboard>tools>forums>repair forum and run one at a time.

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    #146588
    boblebad
    Participant

    Thanks for your reply @Robin W ๐Ÿ™‚

    I got stuck at the first part, cause when trying to start a topic i noticed that the first post of the thread does not show. I can see many have this problem, but no solution for years, can this be true ?

    I have the theme setup running on two domains, the one i use for testing, the funny thing is when posting on that site, the first post of the thread is shown.

    I have tried resetting bbPress, but that didn’t help, any suggestions ?

    #146587

    Topic: Text Justify

    in forum Installation
    Inv_Trdr
    Participant

    I am using the latest version of WP and bbPress. While writing in a topic how can you add colors to text and align the text? I did not see them while editing.
    Thank you.

    #146574
    Robin W
    Moderator

    You would need to cut some code, but basically you would be looking at

    using some code from the widget to find the latest topic

    then maybe using the shotcodes

    [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]

    and if it has a reply

    [bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]

    using the do-shortcode function https://codex.wordpress.org/Function_Reference/do_shortcode

    If you do this, please post the result here for the benefit of others !

    #146561
    Stephen Edgar
    Keymaster

    That is a little disappointing ๐Ÿ™

    If you look at the HybridCore 1.5.5 included with the Spine 2.0 theme there is full support for bbPress built into HybridCore and for whatever reason Spine is not taking advantage of that functionality.

    I just downloaded Spine and tweaked the index.php and bbpress.php files so bbPress will work with your theme, I haven’t the time to fully test if ‘everything’ works but it looks like it does. Both files go in and replace any files of the same name in the root of your theme folder e.g. /wp-content/themes/spine.

    https://gist.github.com/ntwb/1d884eb7bb889906285d

    You could also create a WordPress child theme to put them in which would be a little cleaner and save any pain during theme upgrades. I would expect themehybrid.com to have some tutorials on this so you can get some value for your $29 investment ๐Ÿ˜‰

    (Ignore some of the oddities you see in these pics,

    #146554
    Stephen Edgar
    Keymaster

    ‘It should work’ on a clean installation, I use a translation for approx half the sites I develop bbPress and it works perfectly. I just tested Slovak and is working as expected ๐Ÿ™‚

    I found the issue… You need to name the files bbpress-sk_SK.mo and bbpress-sk_SK.po using the _ underscore character not the - hyphen.

    I have never tried the ‘Polylang’ plugin and I had a quick look in their support forums but couldn’t find any information if they support bbPress or not, maybe posting a question in their support forums may get an answer from others who have tried and had success or not, at least that way you can find out if Polylang is compatible with bbPress.

    #146553
    inventor1
    Participant

    Just a quick update, spine is based on the hybrid core, I’ve tested 3 themes here: http://themehybrid.com/themes and they have the same issue ๐Ÿ™

    Yukon Cornelius
    Participant

    I spent so long trawling google for an answer to this question, so i am sharing what i came up with. It might not be beautiful code (i patched it together from a number of sources), but it works for me.

    Basically, i have a list of forums on my forum home page. I just wanted to show the latest post within each forum as a teaser below the forum description – not just the title, but the excerpt, too. I can’t believe there’s nothing out there explaining how to do this. It seems like a pretty obvious format for the forum index.

    The following snippet will output the latest reply, with post title and post link below the forum description. If there are no replies, it will output the latest topic instead.

    function jag_add_last_reply() { { 
     $jag_last_reply_id = bbp_get_forum_last_reply_id();
     $jag_last_topic_id = bbp_get_forum_last_topic_id();
    $new_args = array(
        'post_type'=> 'reply',
        'p' => $jag_last_reply_id
    );
    $other_args = array(
        'post_type'=> 'topic',
        'p' => $jag_last_topic_id
    );
     
    $nest_query = new WP_Query( $new_args );
    $another_nest_query = new WP_Query( $other_args );
     
       if ( $nest_query->have_posts() ) : while ( $nest_query->have_posts() ) : $nest_query->the_post();
         $this_post_id=$post->ID;
         $this_post_title= get_the_title();
         $this_post_content= get_the_excerpt();
         $this_post_permalink= get_permalink(); ?>   
                                 
         <a href="<?php echo $this_post_permalink; ?>"><h1><?php echo $this_post_title; ?></h1></a>
         <div class="the_content"><?php echo $this_post_content; ?></div>
                         
       <?php endwhile;
    elseif ( $another_nest_query->have_posts() ) : while ( $another_nest_query->have_posts() ) : $another_nest_query->the_post();
         $this_post_id=$post->ID;
         $this_post_title= get_the_title();
         $this_post_content= get_the_content();
         $this_post_permalink= get_permalink(); ?>   
                                 
         <a href="<?php echo $this_post_permalink; ?>"><h1><?php echo $this_post_title; ?></h1></a>
         <div class="the_content"><?php echo $this_post_content; ?></div>
                         
       <?php endwhile; 
       endif; 
        }} 
    // Hook into action
    add_action('bbp_theme_after_forum_description','jag_add_last_reply');

    Just put this in your theme’s functions.php and it should do the trick. Haven’t figured out how to spit out multiple posts and replies for each forum yet, but this is all i needed. Good luck.

    #146526

    In reply to: Freshness Date Format

    Robin W
    Moderator

    @morgensonne

    Interesting – I’ve just deleted and re-downloaded the plugin from wordpress and it activated with no problems.

    However I would be interested if your test server is a ‘local’ one using wamp or mamp? that might be the issue.

    Please come back either way, and I’ll try and resolve for you.

    #146517
    OwenR
    Participant

    Hi,

    I recently installed bbpress onto a newly created wordpress website, I’ve read through loads of different forums on 404 errors but can’t seem to solve this:

    When I click on any forum I have created the next page is a 404 page not found error.

    Any suggestions would be greatly appreciated.

    The error can be seen here:

    mk2.club/forums/

    just click on the test forum

    Thanks

    #146491
    Stephen Edgar
    Keymaster

    Firstly I only included the fields Robin had supplied, I do not have a copy of Snitz to test either. So I commented out but didn’t remove any of the code so that it would stand out and you could update any of these as needed which you have done.

    The forum ‘counts’ I think you may have incorrect in your post above:
    * _bbp_topic_count – The number of topics that are ‘publicly’ visible
    * _bbp_reply_count – The number of replies that are ‘publicly’ visible
    * _bbp_total_topic_count – The total number of topics (includes topics that are are unapproved or hidden)
    * _bbp_total_reply_count – The total number of replies (includes replies that are are unapproved or hidden)

    A clearer explanation of each of these would be helpful and also are each of these fields in the FORUM_FORUM database table:
    * F_TOPICS
    * F_COUNT
    * T_COUNT
    * P_COUNT

    The topic ‘counts’ is the same:
    * _bbp_reply_count – The number of replies that are ‘publicly’ visible
    * _bbp_total_reply_count – The total number of replies (includes replies that are are unapproved or hidden)

    A clearer explanation of T_REPLIES would be helpful and is this fields in the FORUM_TOPICS database table?

    Whilst you answer those I’ll add Topic Author IP, Stickies and Member Status ๐Ÿ™‚

Viewing 25 results - 4,676 through 4,700 (of 11,580 total)
Skip to toolbar