Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 4,651 through 4,675 (of 11,589 total)
  • Author
    Search Results
  • #147275
    Stephen Edgar
    Keymaster

    It depends how you are replacing the WordPress comments with bbPress replies, if your using a plugin for this then I would look to the plugin being an issue and go to that plugins support forums to find any known issues.

    If you are doing this manually using bbPress then per your original post here:

    For the past two weeks or so I’ve had a problem in the forums on my site where members comments no longer appear immediately. It can take a while for them to appear. I’m not sure how long, but several minutes.

    This could be a performance issue, I would start by running some tests on a test post, add a reply and time how long it takes to appear in your sites backend as you state that the ‘do appear’, just not immediately, try using the Twenty Fourteen theme and disable all your other plugins except bbPress and time how long it takes now.

    You might find your theme and plugins and using all the resources available in your web hosting plan, if this is the case contact your host to see what options or suggestions they may have for you.

    Robin W
    Moderator

    getting it to display is easy !

    bbpress deosn’t use ‘the content’ function in its loops, so we need to hook to the bbpress content function which is bbp_get_reply_content

    So you just add a second filter after line 15, this then puts the ratings in the display

    {
        add_filter('the_content', 'spr_filter', 15);
    	add_filter ('bbp_get_reply_content', 'spr_filter') ;
    }

    Then the next bit of the plugins code looks at whether we have an individual post/page or are in a loop – a list of pages/posts.

    If just one (is_singular) then it will display the rating, and let you add one.
    If in a loop then it simply displays, and doesn’t let you alter, or that’s what I think it’s doing

    so to get it to understand that we’re in a list of replies (ie loop-single-reply) we test that we’re in bbpress

    so we add a test for bbpress into the first function viz

    foreach ($list as $list_)
        {
            if (is_bbpress() )
            {
                if ($options['position']=='before')
                {
                    $content=spr_rating().$content;
                }
                elseif ($options['position']=='after')
                {
                    $content .= spr_rating();
    			
                }
                break;
            }
    		if (is_singular($list_)&&$options['where_to_show'][$list_]&&$disable_rating!='1')

    Ok so that does the display (at the moment for both topics and replies, but that’s easily fixed later)

    What I can’t work out quite is why the amend doesn’t work. I think it is because the javascript/ajax is using spr_rate, but expects that to be part of $_post, but that’s may be failing as we are sort of in a bbpress loop at that stage, not in an individual post, so I dontl know what’s it looking for as post_id.

    Anyway I’m rubbish at ajax/js etc. so am just poking code in the hope of finding a fix.

    So that’s as far as I’ve got for now !!

    demonboy
    Participant

    Got some strange permalink thing going on with existing users. They are all part of a private group as per Robin’s private group plugin. I created a new user to test and that user can post new topics as normal in the forum. However existing users, when they post a new topic, are creating topics with the ?post_type=topic&p=6609 type slug, not the pretty permalink.

    I have reset Permalinks under settings. I have tried changing them and then changing them back but this doesn’t seem to be relevant since new subscribers can post no problem.

    I checked the private group members and noticed that they had a couple of permissions set to ‘deny’ that the new user had set to ‘allow’. These included View Private Topic, but again this can’t be relevant as the forum is actually public. I have checked and double checked the differences between the existing forum members and the new forum member and they are now the same, but the existing users can still not post creating the pretty permalink.

    Any clues/pointers/checks?

    Jerry
    Participant

    Hi Robin. To answer your questions; I only need this to attach to books, so only for bbpress topics. I don’t want replies rated. I tested it on wordpress posts, and it works there, but I’m not using wordpress posts. Probably the only modification I’ll make is to let users change their rating. Right now, once you give a star rating, it won’t let you change it later. Yes, I agree; it needs to hook to bbpress. It seems like it would be easy to do that, but I’m not certain.

    #147187

    In reply to: Newby a little lost

    kowarler
    Participant

    Just to be clear, here is the index page…

    http://thesaabenthusiasts.co.uk/forums/

    if I click on a forum link – I get this layout

    http://thesaabenthusiasts.co.uk/Forum/forum/category-test/

    any idea what could be causing this?

    #147166
    JLent14
    Participant

    Hello,

    I am using the latest BuddyPress with the bbpress forums. For some reason on my forums page my images and margins are out of whack. I didn’t do anything different to them. You can see here http://www.passingrass.com/forums/ Ive tried re-sizing them and it didn’t help. I also tried to re-install them.

    Any advice would help. Thanks.

    #147149
    Anonymous User 13302461
    Inactive

    I mean of course a forum parent (category) –
    putting its ID in the widget should show all the latest replies from the category’s sub forums….but doesn’t work.

    Anyone?

    #147129
    Hymer
    Participant

    I test BBPress forum in http://varosvedo.hu/forums/forum/kozter/ and I see that the forum visitors have no possibilities to attach images or other files. If I am inlogged as admin, I can attach media, but I have access to all the media in the homesite.

    #147123
    Anonymous User 13302461
    Inactive

    Oh to change your recent reply link text, for anyone who is more of a newbie than myself, you change the word TEST in the $reply_link line – change this to whatever, I think will use an (little arrow)…

    #147122
    Anonymous User 13302461
    Inactive

    In wp-content/plugins/bbpress/includes/common/widgets.php

    At around line 807 I added some code from the recent replies widget:

    
    // Verify the reply ID - TESTING
    $reply_id   = bbp_get_reply_id( $widget_query->post->ID );
    $reply_link = '<a class="bbp-reply-topic-title" href="' . esc_url( bbp_get_reply_url( $reply_id ) ) . '" title="' . esc_attr( bbp_get_reply_excerpt( $reply_id, 50 ) ) . '"> TEST</a>';
    // END TESTING	
    

    Then near line 830 I changed

    
    <div><?php bbp_topic_last_active_time( $topic_id ); ?></div>
    

    to include the code to print the “recent reply” link after the date/time.

    
    <div><?php bbp_topic_last_active_time( $topic_id ); 
    //print latest reply link
    printf( _x( '%1$s',              'widgets', 'bbpress' ), $reply_link);
    ?></div>
    
    Robin W
    Moderator

    ok, quick and messy way (based on some code I did elsewhere)

    create a directory in your theme root called bbpress

    wp-content/themes/%your-theme-name%/bbpress

    copy

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

    loop-replies.php
    and
    loop-single-reply.php

    into this directory

    bbpress will now use these files instead

    in loop-replies change from line 40 to

    <li class="bbp-body">
    
    		<?php if ( bbp_thread_replies() ) : ?>
    
    			<?php bbp_list_replies(); ?>
    			
    			
    		<?php else : ?>
    			<?php global $countr ;
    			$countr=0 ; ?>
    		
    			<?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    			
    			<?php 
    			$countr ++ ; 
    			
    			<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    
    			<?php endwhile; ?>
    
    

    This is basically just putting a count into this, so that we can see that the topic is count 0

    then in loop-single-reply change line 45 to read

    <?php if ($countr !=0) bbp_reply_author_link( array( ‘sep’ => ‘<br />’, ‘show_role’ => true ) ); ?>

    I’ve not tested this, but you should be able to get it to work.

    #147094
    Robin W
    Moderator

    Integration is not an option for us, as explained in my original post.

    was just trying to help by giving you a test site that you could fix the issue in – only an option 🙂

    therefore yes you are doing wp and bbpress on a sub-domain, should work quite easily !

    fumbling
    Participant

    Hi there! I am using bbpress v 2.5.3 and wordpress v 3.9.1.
    I would like to use an email for notifications from the forum, that is different then the one I’ve setup in wordpress settings. Is this possible? Its just different people in our organization will deal with the forum, and others with support on the contact page.
    Any help would greatly be appreciated!!!

    http://fumblingfitnesscom.fatcow.com/test/wordpress/

    #147058
    Robin W
    Moderator

    @smileyriley21 did this do what you needed? latest version is at

    bbp Private Groups

    #147052
    Robin W
    Moderator

    There should be no reason they won’t integrate.

    However the first thing you should do is create a test site see

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

    The you can do everything without any pain !

    From what you describe, if you really want to go to a separate route, then the simplest route is for you to have two domains the primary and a subdomain. On the subdomain you would install wordpress, and the same theme as your main site and then add bbpress, put the files in there. As you then say, you’d just call this subdomain from your main site.

    #147030

    In reply to: Newby a little lost

    Robin W
    Moderator

    ok, I think you basically have forums and categories a bit mixed.

    Forums tend to belong to categories, rather than as you have, so I would get rid of the forum called “forums”

    Then change the ‘Category test’ category to have no parent

    Then set up a forum called forum 1, and put it’s parent as ‘category test’
    Then set up a forum called forum 2, and put it’s parent as ‘category test’
    Then set up a forum called forum 3, and put it’s parent as ‘none’

    You should now be able to click the menu and see category test with 2 forums belonging to it, and a 3rd forum that exists in it’s own right.

    Do you intent to have more than one forum, or just one forum with all topics in that?

    #147029

    In reply to: Newby a little lost

    kowarler
    Participant

    OK, I’ll do my best…

    question 1) yes it does take me to a page with a forum on it. However I have to click on ‘Forum’ again to see the actual forum

    question 2) how can I help you with listing this – ie: is there anything in the ‘page-source’ that would help?

    question 3) Looking at the dashboard, under Forums – I have two entries:
    1) is called Forums and is set up as a Type: ‘Forum’, Status: Open, Visibility: Public, Parent: no parent, order: 0
    Permalink shows as http://thesaabenthusiasts.co.uk/Forum/forum/forum/
    2) is called – category test and is set up as Type: Category, Status: Open, Visibility: Public, Parent: Forum, order: 0

    If there’s any other info I can send you, just let me know…

    #146984
    flipdamusic
    Participant

    Hi,
    i have the challenge to show the latest topics for the role members in the topic index view. I’m new to bbpress so i’ve to learn a lot.

    I’m using buddypress with sidewide and group forums. Each group has one forum.
    When I’m using a site and shortcode [bbp-topic-index] only all topics from the sidewide forums are shown. What I’ve learned is that this is a default behavior – i hope i’m not wrong 🙂

    Now I want to show all latest topics / posts for all members belonging to their group / group forum – optimal on the latest topic page. The users are members (bbpress) and abonnents (WordPress).
    How do i accomplish that ?

    #146976
    2scope
    Participant

    Hi

    I’ve just tried installing bbpress and after following the guides I find that setting my test forum to visibility: public does not work. It will asks for a username and password when you try to visit the forum. You can see an example here:

    http://www.2scopedesign.co.uk/support/

    Does anyone know why this is happening?

    Thanks

    #146966
    Stephen Edgar
    Keymaster

    Not sure if this is related, but on my test install when there are second-level replies to import it messes bbPress list of replies.

    Yes, saw the same thing, because the replies it tries to list are linking to parent topics that do not exist.

    EDIT: do not believe I haven’t read your own posts LOL. I just wanted to describe the path I have followed in case it would bring some light on your side…

    Thinking ‘out loud’ is all good, helps ideas for even funkier SQL queries 😉

    Unfortunately, it seems the converter doesn’t accept this…

    No it doesn’t, it is pretty limited in how we can do joins and joining a table with the same name it ignores when it comes time to merge all the sections field mappings. We can work around this for now by putting all of the join bits in the from_expression thus the following works:

    
    'from_expression' => 'INNER JOIN wp_symposium_topics t ON symposium_topics.topic_parent = t.tid WHERE symposium_topics.topic_parent != 0 AND symposium_topics.topic_group = 0 AND t.topic_parent = 0',
    

    I also setup some groups (and what a painful experience that was), I agree it would be nice to get the group topics imported also but lets do that in v2 after I add some of the previously mentioned changes to improve the capabilities of the main converter script.

    Pull request sent with above change…

    #146955
    lagrou
    Participant

    Problem I see, is that with this version all of the replies are imported, including second-level ones which have the topic ID as parent instead of their parent ID. Not sure if this is related, but on my test install when there are second-level replies to import it messes bbPress list of replies. Whereas with no second-level replies in WPS forum, it works fine.

    To get only first-level replies, I have changed the above into:
    "SELECT s.* FROM wp_symposium_topics s INNER JOIN wp_symposium_topics t ON s.topic_parent = t.tid WHERE s.topic_parent != 0 AND s.topic_group = 0 AND t.topic_parent = 0"

    Which works fine as dumped in a PHP page. And then into:

    // Reply id (Stored in postmeta)
    $this->field_map[] = array(
    	'from_tablename'  => 'symposium_topics s',
    	'from_fieldname'  => 'tid',
    	'join_tablename'  => 'symposium_topics t',
    	'join_type'       => 'INNER',
    	'join_expression' => 'ON s.topic_parent = t.tid',
    	'from_expression' => 'WHERE s.topic_parent != 0 AND s.topic_group = 0 AND t.topic_parent = 0',
    	'to_type'         => 'reply',
    	'to_fieldname'    => '_bbp_post_id'
    );

    Unfortunately, it seems the converter doesn’t accept this…

    EDIT: do not believe I haven’t read your own posts LOL. I just wanted to describe the path I have followed in case it would bring some light on your side…

    #146937
    iclimb
    Participant

    nhadsall, this is great..! thumbs up and great work. i’ve tested it a little bit and it seems to work when a new forum i created.

    I really don’t want to sound demanding, because i’m really appreciating the work you’re doing!
    But one thing i think it is missing, is when a new user is created, he is not subscribed to existing forums. He will only be subscribed to new ones. Do you think it would be possible to make new users subscribed to all forums when created? i realize that it probably means some work, but i think it will make most sense that way.

    Best regards, Christian

    #146932
    Stephen Edgar
    Keymaster

    It looks like we won’t get the threaded replies in v1, I had a similar issue with vBulletin 5 and which is not included in bbPress at this stage. Trying to get a single query to handle all of the replies doesn’t look good at the moment for WPS.

    You can take a look at the vBulletin5.php importer, rather than just ‘Forums’, ‘Topics’ and ‘Replies’ sections I had to add a 4th, ‘Comments’ this then meant I had to extend the main converter to handle this extra step.

    https://bbpress.trac.wordpress.org/attachment/ticket/2440/

    I’ll have a think about this over the next couple of days and come up with some options, there is a chance I can add this extra section to bbPress and then included WPS threaded replies, vBulletin5.php in the next version of bbPress. There is just a ton of testing needed to ensure the ~20 other importers continue to work and fix any issues that arise…

    #146929
    Stephen Edgar
    Keymaster

    Reply to Replies, I had a look and they are stored in symposium_topics like other replies, so we should have them with little effort. In case you’d like to give it a try on WPS side, and be able to test their import, they are activated using roles, “Forum comment roles” under “Forum” tab.

    I’ve added some ‘replies to replies’ to my test WPS forum before converting it… In bbPress, in the backend they are not displayed in the list of replies, although I do see ‘hidden’ replies in the count that I cannot access to. In the frontend, the forum topic does not show those replies, nor do the counters. However!! When dumping wp_posts table WHERE post_type = ‘reply’, they are there, so they were converted ok, it’s just that they don’t show. I did set bbPress threated replies 2 levels deep before conversion. Any advice…?

    Looking at this now, threaded replies are using the same topic_parent field, though they are using this as a pointer to the ‘reply parent’ rather than the topic parent.

    This is the reply query: (My test results) Notice the ‘threaded replies’ topic ID, it is not the actual topic ID it is the reply ID they are a reply to.

    
    SELECT CONVERT( symposium_topics.tid
    USING  "utf8" ) AS tid, CONVERT( symposium_topics.topic_category
    USING  "utf8" ) AS topic_category, CONVERT( symposium_topics.topic_parent
    USING  "utf8" ) AS topic_parent, CONVERT( symposium_topics.topic_owner
    USING  "utf8" ) AS topic_owner, CONVERT( symposium_topics.topic_post
    USING  "utf8" ) AS topic_post, CONVERT( symposium_topics.topic_started
    USING  "utf8" ) AS topic_started
    FROM wp_symposium_topics AS symposium_topics
    WHERE symposium_topics.topic_parent !=0
    LIMIT 0 , 100
    

    Working on tweaking the query now….

    I’ll be happy to contribute to the bbPress Codex as well, with issues etc.

    Appreciated 🙂

    Browsing other converters’ Codex, I do see where there will be issues with WP Symposium, [youtube], custom smilies {{cloud}}, etc.

    I haven’t looked at this yet, most of it should be easy enough from work on the other importers, just a matter of creating a list of all that is required.

    As far as groups forum topics, I would add ‘AND symposium_topics.topic_group = 0 ‘ to the ‘from_expression’ of both the topic ID and Reply ID sections to get rid of those posts. Cleaner until v2.

    I’ll add that shortly and do some tests.

    #146924
    Tom Dyer
    Participant

    as a side note, it’s probably worth utilising the bbp_get_forum_post_type(), bbp_get_topic_post_type() and bbp_get_reply_post_type() from bbPress instead of hard-coding the ‘forum’, ‘topic’ and ‘reply’ in there. It’s not affecting what I’m doing right now, but you can bet it’s going to upset somebody sometime 😉

    – You may already have that in mind but I just figured, since you want people testing it, that it’s worth pointing out.

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