Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,276 through 3,300 (of 32,481 total)
  • Author
    Search Results
  • 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.

    #206209

    In reply to: sub topics not showing

    Clivesmith
    Participant

    OK I think if you look here you should see old forum code
    https://wateratairports.com/oldforumscode/

    and here is new
    https://wateratairports.com/newforumcode/

    #206204
    Robin W
    Moderator

    ok, change your code to

    @media only screen and (max-width: 600px) {
      #new-topic-0.bbp-topic-form, .bbp-reply-form {
        width: 50%;
      }
    }
    #206197
    Chuckie
    Participant

    Hi @robin-w

    1/ Yes, moderation is switched off. Since the “links” might potentially include any type of item that has a URL in it I did not see it practical to just increase the number of links. So moderation has been switched off for several days now:

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

    2/ It is never random. It is on the demand. Every reply to a topic I made yesterday needed me to run the tool to fix everything.

    I am assuming that there is breakage in rolling freshness results back up the hierarchy.

    #206195
    Chuckie
    Participant

    I still have a bug with the inserting of videos. If I am creating the topic / reply as an ADMIn then the code is correct:

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

    When you hit SUBMIT the video can be played etc.

    But when you are NON-ADMIN and hit SUBMIT the outer chevrons of the inner SOURCE tag get escaped. I don’t know where this issue lies:

    – WordPress 5.3?
    – TinyMCE Insert Media Plugin 4.9.6 ?
    – bbPress 2.6.2?

    #206193
    demonboy
    Participant

    I’ve sorted it (excuse formatting):

    if (( $forum_id == 40088) ){
    ?>
    	<?php $args = array( 'post_type' => 'topic', 'posts_per_page' => 1, 'post_parent' => '40088' );
    				$loop = new WP_Query( $args );
    				while ( $loop->have_posts() ) : $loop->the_post();?>
    				<li class="fa-thumb"><div text-align="center"><a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon'));?><br>
    				<span class="fa-link"><?php bbp_topic_title(); ?></span></div></li>
    		<?php			
    				endwhile;
    		?>
           
    <?php
        }
    #206192
    Chuckie
    Participant

    @robin-w If it helps, I did a search for _bbp_last_active_time in the post meta table and only one entry had today’s date (the reply I had made).

    I then did a search for my forum in question as “post_id” to see what it shows:

    _bbp_last_active_time 2019-11-20 19:01:31, 
    _bbp_last_active_id 3546, 
    _bbp_last_reply_id 3546, 
    _bbp_last_topic_id 3546

    If I then run the tool to get the freshness correct in the forum and examine the same records again:

    _bbp_last_active_time 2019-11-24 08:06:38, 
    _bbp_last_active_id 3580, 
    _bbp_last_reply_id 3580, 
    _bbp_last_topic_id 3546

    So the database is not getting updated with the freshness and it is not a caching issue.

    #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.

    kent25
    Participant

    @barryhughes-1 Thanks Boss, it worked so well……..
    your the MAN.

    do you have any code for voting?

    wolowe
    Participant

    Yes, I tried many of them(don’t try reCAPTCHA-like plugins), they can work when uncheck “Allow guest users without accounts to create and replies”. They disapear when checking “Allow guest users without accounts to create and replies”.
    So I want to ask if there something like add or delete some php code to solve the problem?

    #206153
    hiugregg
    Participant

    Hi there!

    I’m trying to get a bbpress forum set up on my site, and while we’ve got the majority of it set up the way we’d like, there’s an issue when someone tries to access the forum via mobile/smartphone.

    The reply box seems to overflow over the edge of the screen, such as in this picture:

    bbp-topic-form overlow on mobile

    I tried to adjust the width of the bbpress-topic-form using the Custom CSS on my theme, but while this seems to work for narrow browser windows on desktop, the mobile view remains the same as it does in the picture above.

    For reference, this was the code I was trying:

    @media only screen and (max-width: 600px) {
      #new-topic-0.bbp-topic-form{
        width: 50%;
      }
    }

    I was wondering if anyone had any ideas on what might be going on here? I’m running the Gridmag theme (not pro) at the minute, could that be causing a conflict?

    #206147

    In reply to: Child CSS

    lflier
    Participant

    Thanks for the 2.6.2 update, which attempts to address this issue.

    Unfortunately, it’s not working in my theme. I still require bbpress.min.css.

    I’m running a custom theme under Genesis 3.2.1. I’m pretty sure I’m following the instructions for theme compatibility. The css file is in a folder labeled “css” in the theme root.

    This does not appear to be a cache issue. The appearance of the page changes when I switch back and forth.

    I’ve reproduced this bug on a LocalbyFlywheel development site and a live staging site.

    I’ll monitor this thread. Let me know what else you’d like me to try.

Viewing 25 results - 3,276 through 3,300 (of 32,481 total)
Skip to toolbar