Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 1,476 through 1,500 (of 11,654 total)
  • Author
    Search Results
  • malihamannan
    Participant

    At the top of the forum where it says latest update by XX, it’s showing the latest post even though the post/topic/reply has not been approved yet/still pending. This is causing confusion. Any idea how to fix that? I only want to show the latest approved message time/user, not the ones that are still pending.

    #206186
    demonboy
    Participant

    I should add that this appears in loop-single-forum.php where I am including a condition:

    <?php $forum_id = bbp_get_forum_id(); 
        if (( $forum_id == 40250) or ( $forum_id == 41369) ){
    ?>

    I’d like to then follow this with something that displays the latest topic permalink/title and topic author/avatar.

    #206184
    demonboy
    Participant

    Hi,

    On my forum archive page I’d like to grab the latest topic permalink and title only on certain forums. Using bbp_topic_title() and bbp_topic_permalink(), how do I get only the latest topic?

    Chuckie
    Participant

    So I am using this extra function so that extra HTML tags are not stripped for non-admin users:

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
    
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return array(
    
    		// Links
    		'a'          => array(
    			'class'    => true,
    			'href'     => true,
    			'title'    => true,
    			'rel'      => true,
    			'class'    => true,
    			'target'   => true,
    		),
    
    		// Quotes
    		'blockquote' => array(
    			'cite'     => true,
    		),
    		
    		// Div
    		'div' => array(
    			'class'     => true,
    		),
    		
    		// Span
    		'span'          => array(
    			'class'     => true,
    			'style'     => true,
    		),
    
    		// Paragraph
    		'p'          => array(
    			'dir'    => true,
    			'style'  => true,
    		),
    		
    		// Code
    		'code'       => array(),
    		'pre'        => array(
    		'class'      => true,
    		),
    
    		// Formatting
    		'em'         => array(),
    		'strong'     => array(),
    		'del'        => array(
    			'datetime' => true,
    		),
    
    		// Lists
    		'ul'         => array(),
    		'ol'         => array(
    			'start'    => true,
    		),
    		'li'         => array(),
    
    		// Images
    		'img'        => array(
    			'class'    => true,
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		),
    
    		// Tables
    		'table'      => array(
    			'align'    => true,
    			'bgcolor'  => true,
    			'border'   => true,
    		),
    		'tbody'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'td'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tfoot'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'th'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'thead'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tr'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'video'      => array(
    			'controls' => true,
    			'width'    => true,
    			'height'   => true,
    			'source'     => array(
    				'src'    => true,
    				'type'	 => true
    			)
    		)
    	);
    } 
    // ==============================================================

    Notice the section at the end for videos? This is the issue. These videos are inserted using the TinyMCE Video plugin. Once it is inserted it looks something like this:

    <video controls="controls" width="300" height="150">
    <source src="https://www.publictalksoftware.co.uk/videos/forum/pts-test-video.mp4" type="video/mp4" /></video>

    The problem is that for a non-admin user the < and /> wrapped around the source tag is getting escaped. Thus the syntax is not correct and the video module will not play.

    Robin suggested I switch off moderation:

    add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
    And to try removing this filter:

    remove_filter( 'bbp_new_reply_pre_content', 'bbp_filter_kses', 30 );

    But i can’t get it to work. The only way to insert one of these videos is if a admin user does it so that the escaping of the source tag does not happen.

    Can this be resolved?

    It is not a bug with the TinyMCE Video plugin. It is a bug only with non admin users inserting the videos. I assumed BBPress is escaping the inner content. Anyone got any ideas?

    Thanks.

    #206175
    maksanse
    Participant

    Hello John,

    I was doing you a staging site to test that behavior, and I realized this issue is related to Learndash plugin (the [bbp-single-forum] is included in learndash page, and that is what make the pagination links fail).

    So I assume you cannot handle this (and I just used some css trick to make the page numbers disappear on learndash pages for my case…).

    Sorry for the noise then… 😐

    #206173

    In reply to: sub topics not showing

    Clivesmith
    Participant

    Hi Robin,

    I have just been testing on my development site as the sub forums are a major part. I will change the front page and update now. The website is wateratairports.com the countries sub forums should be on the front page under countries.

    Clive

    #206162
    Robin W
    Moderator

    depends on the mobile see

    http://mobiletest.me/

    and select the phone – you’ll see the css width listed under each

    Pascal Casier
    Moderator

    @kent25
    The basic reasoning of a forum is: When a topic gets a reply, then the topic has changed so it will show first because the default ordering is by ‘topic last activity’.
    It did not test what @barryhughes-1 wrote, but the reasoning looks to be correct for keeping them shown in the order of topic creation date (not modification)

    #206044
    Chuckie
    Participant

    I can comment on this one. I do have the “attach media” GD plugin but not tested it. We don’t use WordPress add media here. We use the tinymce insert image and put a link it.

    As previously mentioned yesterday, I can’t insert videos anymore if not admin because of the escaping of the HTML in the source tag which is crippling.

    #206040
    Robin W
    Moderator

    can you upgrade to 2.6.1 and retest please

    #206031
    Robin W
    Moderator

    I’ve just trued it in my test site, and it seems to work ok.

    I presume you mean that on then topic or reply form, the user is clicking the IMG link and entering the details?

    and is it just an image within a post, or is the whole post not showing?

    #206024

    In reply to: Private forums

    Robin W
    Moderator

    Suggest you test it

    #205948
    Robin W
    Moderator

    last active time on a topic would pick up if there had been replies.

    I loaded your code onto my site, and it worked fine.

    I’m not sure what other help you want

    1. topic will do what you want, it is saying that there are new topics within the period
    2. I don’t understand this question, works fine on my test site]
    3. yes it is counting any new topics or topics where there have been new replies – is that nit what you want?

    #205945
    Chuckie
    Participant

    @robin-w

    I am struggling with your other request. Something isn’t right. I have moderation still switched ON …

    If I try to insert a video (only one video) as a non-admin and hit enter the video won’t play. When I edit the post the content looks like this:

    <video controls="controls" width="300" height="150">
    **source src="pathtovideo/pts-test-video.mp4" type="video/mp4" /**</video>

    bbPress has escaped the < and > symbols.

    If I log back in as admin and perform the same task. I get a functional video link:

    <video controls="controls" width="300" height="150">
    <source src="pathtovideo/pts-test-video.mp4" type="video/mp4" /></video>

    I know it is a side issue but I don’t understand how to fix that and until I do I can’t complete the testing you wanted.

    #205938
    Robin W
    Moderator

    If you want to remove moderation, I think this will do it

    add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );

    Put this in your child theme’s function file – or use

    Code Snippets

    If someone could test and report back, that would be useful. I have no time availability to do this 🙂

    #205937
    Robin W
    Moderator

    I’m just looking at that code are to try and understand it.

    Yes, admins and moderators skip the moderation rules.

    Thanks for the useful testing of the first part – ie the links.

    Images and videos are just links as far as I can see, so should obey the same rules as above and be included in the count.

    so 1 links, I video and 1 image = 3 links.

    can you retest based on that and see if just 1 image is going into pending, or if it is the combination.

    #205903
    Chuckie
    Participant

    @johnjamesjacoby

    Please look at the associated, more active discussion on this subject. There are lots of users who now have to approve every post. I have provided comments in that discussion instead.

    I suggest you review that discussion. True, there are complaints, which are all to easy to roll of the tongue, but the point it things have changed. I don’t want to repeat my feedback so please see the other thread.

    I personally need to find a way to control things going into pending. It should only do so if it thinks it needs moderation. Not all posts. The other discussion I found the function that changed the way posts are moderated so so thing must be askew there.

    If your forum is working ok then are you on WordPress 5.3? What are your WordPress discussion settings set to for moderation? It might be an idea to become a admin on one of our sites. Best way to test because I expect this is a common solution.

    See: https://bbpress.org/forums/topic/need-users-to-be-able-to-posts-without-posts-being-approved/

    Advansys
    Participant

    I have the same problem, although I haven’t rolled back yet to test the earlier version. When doing a search, the summary of hits is displayed (twice – I guess that’s for top and bottom of results list) and yet there is no search results content listed for these hits.

    i.e. the search results looks like this:

    Viewing 15 results – 1 through 15 (of 28 total)

    Viewing 15 results – 1 through 15 (of 28 total)

    Robin W
    Moderator

    strange, just tried setting various orders in my test site, and it seems to work fine – so I canlt replicate your issue.

    But as long as you are happy that you are fixed, then I’ll not dig further

    #205808
    mrmillercoach
    Participant

    After applying the latest BuddyPress plugin update to bbPress 2.6.0 the Forums List Widget now displays the forums in reverse order on the dashboard.

    I updated the bbPress to 2.6.1 but this did nothing.

    https://community.careerpivot.com

    #205803
    Chuckie
    Participant

    By the way, your forum shows differently. At all times it is showing a list of actual topics and not a list of forums inside a category and pulling out the most recent topic info per forum. So your context is different. Please go to my forum and create an account and a test message and / or a reply in one of the forums and you will see.

    Andrew

    #205771
    hardel
    Participant

    I think I’m having a similar issue. I have widgets for latest posts and replies. They are displaying in the sidebar as +5 hours old, but when you click the topic, it shows the correct time…

    #205741
    bttmrc
    Participant

    Well sir, you are nothing short of amazing.

    It worked perfectly as far as I tested

    #205733
    boberry
    Participant

    Strangely it is working now. I had a user who is actually an admin who could not type into the reply box under an established topic. The cursor wouldn’t even appear and could not click the submit button. I just did all the tests you asked and they all worked. Very strange.

    #205730
    Robin W
    Moderator

    suggest you create a test ‘user’ and see if you can reply.

    If not, then let us know exactly what ‘not able to post replies to posts in the forums’ means

    eg can you create topics? – can you access the reply form? – can you press submit ? do you get an error? etc.

Viewing 25 results - 1,476 through 1,500 (of 11,654 total)
Skip to toolbar