Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,301 through 3,325 (of 32,517 total)
  • Author
    Search Results
  • #206466
    huetherb
    Participant

    Here is what I needed to do:

    add_filter( ‘bbp_register_topic_post_type’, ‘enable_restAPI_bbpress_topics’, 10,1);
    function enable_restAPI_bbpress_topics ($args) {
    $args[‘show_in_rest’] = true;
    $args[‘supports’] = array( ‘title’, ‘editor’, ‘author’ );
    return $args;
    }
    Notice the supports variable. By including author that ensures post_author is set.

    Seriously, BBPress should simply include a setting in backend to enable restAPI. That is the direction that the web is heading in already, with headless CMS, decoupling front and and backend.

    #206437
    Chuckie
    Participant

    Well, I am using your bbp style pack. Is it possible that some kind of vent hook had a priority change with the numbers in the source code which is not reflected in the style pack? Ie. Is it possible that in some instances hooks might not get executed? I recall the one instance where the number had been changed. This is only a hunch.

    Andrew

    #206434
    tomijolkkonen
    Participant

    phpBB version is 3 but not the newest version of it. I’m doing this for another person, who has custom code on the site and he said that he is unable to update the version.

    The row amount. I get the same results with either 100 or 1000.

    The problem is just that it doesnt recognize the forum folder to get the top parent forums. 2nd problem. The importer changes posts into replies and now every post is a reply.

    #206422
    Robin W
    Moderator

    I can create the problem now on my test site. If I add the plugin (which I was doing to de-bug) the problem goes away. This is despite it just being the code that the function uses !

    I would like to eliminate that you posted to a closed topic.

    I would however like you to look at this situation

    Forum a – forum, open, public parent 0
    Forum b – sub forum, public, parent forum a
    Topic x – an OPEN topic
    Reply 1 – a reply to the above topic
    reply 2 – a second reply

    can you get the problem with this set up and my plugin deactivated ?

    #206421
    Chuckie
    Participant

    So is there any way that I can provide for you the results for:

    $ancestors = array_values( array_unique( array_merge( array( $topic_id, $forum_id ), (array) get_post_ancestors( $topic_id ) ) ) );

    Or

    foreach ( $ancestors as $ancestor )

    ?

    #206419
    Chuckie
    Participant

    This could be why? In your code:

    			// Reply meta relating to most recent reply
    			if ( bbp_is_reply( $ancestor ) ) {
    				// @todo - hierarchical replies
    

    I had just made a most recent reply. So it is doing nothing. I dunno. You know the code better.

    #206400
    Robin W
    Moderator

    No, I’m deep in code, this is not simple !

    In your case, If you move the private forum out from under a public forum, I suspect you will work.

    #206394
    J.Parra
    Participant

    Thanks for your quick response.

    I have included this in my css file of the child theme.

    # bbpress-forums li.bbp-body ul.forum .bbp-forum-title {
    float: none! important;
    }

    Would it be a correct solution?

    What is strange to me is that my theme includes this concrete for bbbress and that it breaks the site when it has always worked well.

    Anyway, solved, thank you very much.

    #206378

    Looks like an issue with the CSS in the theme:

    https://www.racingonlineclub.com/wp-content/themes/sportcenter/css/leaf-bbpress.css?ver=5.3

    Line 741: float: left;

    Remove the float, and everything snugs back up nicely, and the div below the title stops overlapping it.

    #206365
    Chuckie
    Participant

    I have read this topic:

    Issues inserting/embedding videos

    But when I insert the “bbpress shortcodes” there are two problems:

    1/ The new setting does not show on my TinyMCE Advanced toolbar
    2/ Going to their support forum results in an invalid domain

    According to TinyMCE the [video] shortcode it support to render as a video. But when I paste it I just get the text. Now, I tried adding the functions.php to return video(...) but I got the same error for video being unknown.

    So I am abit stuck.

    I was hoping to use the dedicated TinyMCE “Video” but that only works for admin and I have no solution about the frustrating escaping of the chevrons. Thus I am looking at this video shortcode as an alternative.

    #206362
    J.Parra
    Participant

    Hi community, I have a problem with bbpress

    After the upgrade to bbpress 2.6.2 the links of the titles of both topics and forums do not work.

    For example in: https://www.racingonlineclub.com/foros/

    The first title don’t link to forum “Ayuda y preguntas Frecuentes”

    Instead the html code seems correct in the inspector

    <a class="bbp-forum-title" href="https://www.racingonlineclub.com/foros/foro/ayuda-y-preguntas-frecuentes/">Ayuda y preguntas frecuentes</a>

    Thanks for your help and regards.

    Dale Reardon
    Participant

    Hi,
    I know the main WP code is now adding the new Google link tag of UGC to links in comments – could BBPress be amended to allow an option of automatically adding this UGC tag to all external links?

    Thanks,
    Dale.

    #206337
    Robin W
    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    change line 31 from

    <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>

    to

    <?php if ( bbp_current_user_can_access_create_topic_form() && is_user_logged_in() ) : ?>

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    #206329
    Chuckie
    Participant

    The ALT + SHIFT + M hotkey does not work inside the editor of bbPress (even though I have the media plugin enabled and the functional button on the toolbar.

    I raised this both on TinyMCE GitHUB:

    https://github.com/tinymce/tinymce/issues/5223

    And WordPress:

    https://wordpress.org/support/topic/insert-media-hotkey/#post-12174886

    TinyMCE support said:

    TinyMCE doesn’t provide any shortcuts for the image, nor media plugin by default so this is likely an issue with wordpress or wordpress plugin you’re using. Since there is nothing we can do to fix the issue, I’m going to close this and suggest you log an issue with wordpress or wordpress plugin directly.

    WordPress support said:

    AFAIK that hot key is unique to the post edit screen only when using the classic editor. It’s not the editor itself that it’s tied to, but the edit screen for posts. If the block editor had a media button it would probably still work there. However, the bbPress forum post screen is not the same as a WP post edit screen. You would need some JavaScript code that listens for the specific keyboard event and when it occurs, launch the media modal.

    Therefore, it sounds to me that bbPress needs some tweak to cater for the advertised hotkey for inserting images. Can this be considered please? All other hot keys are functional.

    Thank you.

    #206318
    Chuckie
    Participant

    Go to Settings | Discussions and increase the limit for allowed links. Or switch off moderation altogether by adding this to your child theme functions.php or add a snippet:

    // ==============================================================
    // Switch off bbPress Forum moderation
    add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
    // ==============================================================
    #206304

    In reply to: sub topics not showing

    hydrogriff
    Participant

    @robin-w, as of version 2.6.2 I am still facing these three issues – css not loading, subforums not loading, replies to topics not showing up.

    #206263

    In reply to: sub topics not showing

    haddly
    Participant

    I would like to second what @hydrogriff said. After installing 2.6-beta-1 the sub-topics reappeared.

    #206251
    tapiohuuhaa
    Participant

    Would it be possible to create share functionality for each replies like

    https://www.sanaristikkofoorumi.net/wordpress/wp-content/uploads/2019-11-24-21.59.59-keskustelu.suomi24.fi-23ec2cec98bd.png

    (Jaa = share).

    I would try it myself and give some code to add, if I would get some advice how to do it.

    #206250
    mrmillercoach
    Participant

    Found the code you referenced.

    #206248
    Chuckie
    Participant

    This is my complete configuration if it helps.

    I don’t understand why my “Meeting Schedule Assistant” forum has rather sporadic ordering of the forums!

    General Information - Category - Public - Order 0
     FAQ - Forum - Public - Order 0
     Misc - Forum - Private - Order 1 
    
    Meeting Schedule Assistant - Category - Private - Order 0
     General Discussion - Forum - Private - Order 0
     Assignments Editor - Forum - Private - Order 2
     Midweek Editor - Forum - Private - Order 2
     Midweek Editor Custom Templates - Forum - Private - Order 2
     Calendar Sync - Forum - Private - Order 3
     MWB Info - Forum - Private - Order 4
     Translations - Forum - Private - Order 4
    
    Public Talks - Category - Private - Order 1
     General Discussion - Forum - Private - Order 0
     Custom Report Scripts - Forum - Private - Order 1
     Custom Report Scripts Samples - Forum - Private - Order 2
     Calendar Sync - Forum - Private - Order 3
     Send Outlook - Forum - Private - Order 4
     Talk Outlines - Forum - Private - Order 5
     Translations - Forum - Private - Order 6
    
    Visits Rota - Category - Private- Order 2
     General Discussion - Forum - Private - Order 1
     Translations - Forum - Private - Order 2
    #206243
    Robin W
    Moderator

    @cassel – also is this just starting – when I looked at 2.6 code that does this bit, it has not changed much from 2.5 so couldn’t see anything that should affect on the change to 2.6?

    #206236
    Robin W
    Moderator

    I’ve just taken a look at the code, and yes in 2.6 it is reversed

    includes/common/widgets.php

    in 2.5 it says

    'orderby'             => 'menu_order title',
    			'order'               => 'ASC'

    in 2.6 it says

    // Order
    			'orderby' => 'menu_order title',
    			'order'   => 'DESC',

    There is no available filter to change this


    @johnjamesjacoby
    was this change deliberate ?

    #206235

    In reply to: sub topics not showing

    hydrogriff
    Participant

    I tried 2.6.2 as well. As reported in the Child CSS post, I am facing this issue as well. Sub-forums are not displayed. I did purge the cache and tried saving forums too. The following things are not working.

    • Subforums wont display
    • Replies to topic wont display
    • Custom CSS won’t load


    @johnjamesjacoby
    , if it’s any help, I found these info after testing other versions of BBPress.

    The subforums and replies were still working in 2.6-beta-1 and 2.6-beta-2.

    Additional information:

    • CSS stopped working since 2.6-beta-1.
    • Replies to topics stopped working since 2.6-rc-1.
    • Subforum display stopped working in 2.6-rc-7.
    #206227
    Chuckie
    Participant

    This is a nightmare from what i can see unless you use the TEXT editor and the CODE tag ONLY.

    If I insert some sample XSL script into CODE blocks. Example:

    <xsl:choose>
      <xsl:when test="@ItemPosition='1' and Assistant!=''">
        <xsl:text><span style="background-color: #ffff00;">1st:</span> </xsl:text>
      </xsl:when>
      <xsl:when test="@ItemPosition='2'">
        <xsl:text><span style="background-color: #ffff00;">2nd:</span> </xsl:text>
      </xsl:when>
      <xsl:when test="@ItemPosition='3'">
          <xsl:text><span style="background-color: #ffff00;">3rd:</span> </xsl:text>
      </xsl:when>
    </xsl:choose>

    I can edit it to my hearts content. But if I use the TinyMCE edit to edit this post (with the TinYMCE editor being the default at the moment I edit) it strips all the XSL syntax.

    Now, I realise that I can add a load of XSL tags into my custom functions.php class to permit these syntax words but that will be a nightmare. XSL has a lot of syntax. Is there really no standard (TinyMCE compatible) where we can insert code snippets and they look correct to the user and still be editable afterwards in either editor?

    #206214
    Chuckie
    Participant

    I created a new topic today:

    https://www.publictalksoftware.co.uk/support-forums/topic/is-it-possibly-to-modify-1st-2nd-3rd-translations-on-the-new-s-89-template/

    It is a private forum post. I used TinyMCE editor and it has:

    – Paragraphs
    – Table
    – Background colour
    – Code snippets
    – Heading 3

    I hit “Submit” and the topic looks good.

    I click “EDIT” and alot of all the underlaying HTML is stripped.

    So I hit BACK in my browser. I set the default editor as TEXT and then I clicked EDIT and this time the whole text showed in the TEXT editor.

    Why did the TinyMCE editor strip the content?

    I am using:

    – WordPress 5.3 (it uses TinyMCE 4.9.6 internally)
    – bbp Style Pack
    – TinyMCE ADvanced
    – Advanced TinyMCE Configuration

    I seem to recall I used to have the same problem in general in Wordress when editing posts that had code in them would show funny. I really don’t know enough about the mechanics of the whole system to know where to look or who to direct the issue towards.

    If anyone can replicate this problem or can direct me to a resolution I would be grateful. Thank you.

Viewing 25 results - 3,301 through 3,325 (of 32,517 total)
Skip to toolbar