Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,776 through 2,800 (of 32,577 total)
  • Author
    Search Results
  • Robin W
    Moderator

    ah, I understand, sorry not really into SEO

    try this

    add_filter( 'wpseo_metatitle', 'rew_meta_title' );
    function rew_meta_title( $title ) {
        global $post;
        if ($post->post_type == 'reply' ) {
    		$order = $post->menu_order ;
    		$post_parent = $post->post_parent ;
    		$topic_title = get_the_title ($post_parent) ;
            $title = $topic_title.' '.$order ;
        }
     return $title;
    }
    #211485
    Robin W
    Moderator

    you could just enqueue it

    bbp_enqueue_script( bbpress-editor-always, 'js/editor.js', array( 'jquery' ), '2.6.4', true );

    Robin W
    Moderator

    thanks – I’m just a user who helps out here, not a bbpress author.

    so

    1. can you confirm that the above plugin is not necessary – bbpress already does this ?

    2.

    can you try this code

    add_filter( 'wpseo_metadesc', 'rew_meta_desc' );
    function rew_meta_desc( $content ) {
        global $post;
        if ($post->post_type == 'reply' ) {
    		$order = $post->menu_order ;
    		$post_parent = $post->post_parent ;
    		$title = get_the_title ($post_parent) ;
            $content = $title.' '.$order ;
        }
     return $content;
    }

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

    Code Snippets

    redevelop
    Participant

    OK thanks for looking at this anyway. I’m now thinking it may relate to the MySQL 8 settings, specifically SQL_MODE which included ‘STRICT_TRANS_TABLES’ (strict SQL mode > no zero dates).

    I’ve tried removing this setting from SQL_MODE (for both session & global), but this doesn’t seem to resolve – when logging in to MySQL as the WordPress user I still get this error

    Error Code: 1525. Incorrect DATETIME value: ‘0’

    when running the query:

    SELECT p.ID FROM wp_posts AS p WHERE p.post_date < ‘0’ AND p.post_type = ‘forum’ AND ( p.post_status = ‘publish’ OR p.post_status = ‘private’ OR p.post_status = ‘hidden’ ) ORDER BY p.post_date DESC LIMIT 1;

    If I make any more progress I’ll post it here 🙂

    reachingout
    Blocked

    The shortcode [bbp-topic-form] is a Form for “Create New Topic” when the user is logged in, and a Log-in-form (“You must be logged in to reply to this topic.”) when the user is not logged in.
    When someone is creating a new subject, it is good to have a wide space to write in, but when someone is logged out, the Log-in form is too wide.
    I think it is the same for [bbp-reply-form], for replying to already created topics (“You must be logged in to reply to this topic.”)

    Is there a solution to this problem?

    #211469
    Robin W
    Moderator

    put this is the custom css part of your theme

    #qt_bbp_reply_content_link {
    display : none ;
    }
    #211465
    zandercent
    Participant

    bbpress doesn’t load the the necessary scripts (reply.js etc) when embedding a topic as a shortcode. This is because of the conditional checks on line 158 of bbpress-functions.php

    if ( bbp_use_wp_editor() && is_bbpress() ) {

    #211464

    Topic: first reply sticky

    in forum Themes
    sadakhanal
    Participant

    what is the code to make the first reply of the topic as a sticky reply by default ?

    i am trying to arrange the replies in descending order and the topic content is not showing on the top of the replies.

    Question 2: Is it possible to show topic content under topic title, not on the replies? This will give me more options to arrange replies according to my requirement. [while i am using <?php bbp_topic_content(); ?> under topic title, the topic content is displaying in replies also]

    #211463
    danielthorpe
    Participant

    Thanks, that helped.

    Its strange - cant get the editor to show like here
    https://www.dropbox.com/s/m421xd2yccla14r/1454511.png?dl=0

    Also cant get rid of this box – doesn`t look like its needed to me.
    https://www.dropbox.com/s/ywdfl4crt9pydwg/gdf4543.png?dl=0

    Any ideas for both?

    Thanks!

    #211455
    jayapramod
    Participant

    For field name change I made changes in these files (in the wp-content >> plugins >> bbpres):

    includes/admin/metaboxes.php
    templates/default/bbpress/form-anonymous.php
    includes/admin/metaboxes.php
    templates/default/bbpress/form-user-edit.php
    templates/default/bbpress/user-profile.php

    Now it’s showing ‘Whatsapp number:’ instead of ‘Website:’. Still, there is a problem remaining, as I didn’t change the php code (not familiar in PHP coding) for website url, after entering the phone number it’s showing like this ‘http://9669856568&#8217;.

    Also made changes in all css files in this directory wp-content/plugins/bbpress/templates/default/css/, for font size change. From font-size: 12px; to font-size: 18px;.

    Robin W
    Moderator

    this code is from a bbpress convertor – no idea why it is running.

    suggest you delete the user and recreate them

    Hammy Havoc
    Participant

    When running debug, this is one of the warnings/errors I get:

    <b>Warning</b>:  register_shutdown_function(): Invalid shutdown callback 'BBP_Converter_DB::__destruct' passed in <b>/home/site/public_html/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php</b> on line <b>33</b><br />
    <br />
    Hammy Havoc
    Participant

    Hi all,

    After about six months of a website working perfectly, one of the admins is now unable to login. They’re presented with this error in Firefox’s JSON viewer, which automatically appears after submitting their login details and landing on wp-login.php:

    success	false
    data	
    0	
    code	"bbp_converter_db_connection_failed"
    message	"Database connection failed."

    Yet they are able to login just fine as other admins.

    #211440
    Robin W
    Moderator

    you could enable the visual editor

    either

    Enable Visual Editor

    or

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Form

    Robin W
    Moderator
    #211418
    scabbrox
    Participant

    Not sure how to easily get a list, but this is what’s in my plugins folder:

    advanced-backgrounds
    4 KB
    Apr 2, 2020, 2:12 PM
    httpd/unix-directory
    0755

    advanced-css-editor
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    advanced-custom-fields-pro
    4 KB
    Today, 5:51 PM
    httpd/unix-directory
    0755

    akismet
    4 KB
    Apr 30, 2020, 11:45 AM
    httpd/unix-directory
    0755

    all-in-one-wp-migration
    4 KB
    May 18, 2020, 4:13 PM
    httpd/unix-directory
    0755

    all-in-one-wp-migration.6.77.zip
    331.74 KB
    Dec 15, 2019, 11:54 AM
    package/x-generic
    0644

    bbp-private-groups
    4 KB
    May 22, 2020, 11:17 AM
    httpd/unix-directory
    0755

    bbp-style-pack
    4 KB
    May 8, 2020, 4:37 PM
    httpd/unix-directory
    0755

    bbp-toolkit
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    bbp-user-online-status
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    bbpress
    4 KB
    Jan 30, 2020, 4:43 PM
    httpd/unix-directory
    0755

    bbpress-enable-tinymce-visual-tab
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    bbpress-mark-as-read
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    bbpress-wp-tweaks
    4 KB
    Jan 15, 2020, 10:12 AM
    httpd/unix-directory
    0755

    bbpress2-shortcode-whitelist
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    bp-custom.php
    302 bytes
    Nov 14, 2019, 2:05 PM
    application/x-httpd-php
    0644

    bsp_test.css
    134 bytes
    Nov 14, 2019, 2:05 PM
    text/css
    0644

    bspstyle.css
    12.2 KB
    Nov 14, 2019, 2:05 PM
    text/css
    0644

    buddypress
    4 KB
    May 15, 2020, 2:15 PM
    httpd/unix-directory
    0755

    category-featured-images-extended
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    contact-form-7
    4 KB
    May 22, 2020, 11:17 AM
    httpd/unix-directory
    0755

    custom-sidebars
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    extended-widget-options
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    facebook-pagelike-widget
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    gd-bbpress-attachments
    4 KB
    May 13, 2020, 4:18 PM
    httpd/unix-directory
    0755

    gd-bbpress-tools
    4 KB
    May 13, 2020, 4:18 PM
    httpd/unix-directory
    0755

    godlike-core
    4 KB
    Today, 1:00 PM
    httpd/unix-directory
    0755

    google-analytics-dashboard-for-wp
    4 KB
    Feb 26, 2020, 3:41 PM
    httpd/unix-directory
    0755

    index.php
    28 bytes
    Nov 14, 2019, 2:05 PM
    application/x-httpd-php
    0644

    jetpack
    4 KB
    May 6, 2020, 7:51 AM
    httpd/unix-directory
    0755

    js_composer
    4 KB
    Apr 25, 2020, 3:27 PM
    httpd/unix-directory
    0755

    kirki
    4 KB
    May 22, 2020, 11:17 AM
    httpd/unix-directory
    0755

    list-category-posts
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    lock-user-account
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    login-with-ajax
    4 KB
    Jan 24, 2020, 9:34 AM
    httpd/unix-directory
    0755

    mailchimp-for-wp
    4 KB
    Apr 28, 2020, 4:44 PM
    httpd/unix-directory
    0755

    members
    4 KB
    Apr 29, 2020, 1:07 AM
    httpd/unix-directory
    0755

    menu-icons
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    mycred
    4 KB
    May 8, 2020, 4:37 PM
    httpd/unix-directory
    0755

    nav-menu-roles
    4 KB
    Mar 28, 2020, 3:21 PM
    httpd/unix-directory
    0755

    nk-themes-helper
    4 KB
    May 6, 2020, 7:51 AM
    httpd/unix-directory
    0755

    nk-woocommerce-swatches
    4 KB
    Jan 26, 2020, 11:20 AM
    httpd/unix-directory
    0755

    notification
    4 KB
    Apr 22, 2020, 10:14 AM
    httpd/unix-directory
    0755

    notification-bbpress
    4 KB
    May 18, 2020, 4:11 PM
    httpd/unix-directory
    0755

    notification-buddypress
    4 KB
    May 18, 2020, 4:14 PM
    httpd/unix-directory
    0755

    paypal-donations
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    post-views-counter
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    quick-pagepost-redirect-plugin
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    recent-posts-widget-with-thumbnails
    4 KB
    Jan 15, 2020, 10:13 AM
    httpd/unix-directory
    0755

    revslider
    4 KB
    May 17, 2020, 11:57 AM
    httpd/unix-directory
    0755

    sociality
    4 KB
    Apr 23, 2020, 9:53 AM
    httpd/unix-directory
    0755

    tinymce-advanced
    4 KB
    Apr 2, 2020, 2:12 PM
    httpd/unix-directory
    0755

    tomparisde-twitchtv-widget
    4 KB
    Apr 30, 2020, 6:56 PM
    httpd/unix-directory
    0755

    ttv-easy-embed
    4 KB
    Mar 11, 2020, 1:58 PM
    httpd/unix-directory
    0755

    updraftplus
    4 KB
    Today, 11:53 AM
    httpd/unix-directory
    0755

    user-role-editor
    4 KB
    May 5, 2020, 10:13 AM
    httpd/unix-directory
    0755

    usp-helper
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    usp-pro
    4 KB
    Apr 9, 2020, 3:30 PM
    httpd/unix-directory
    0755

    w3-total-cache
    40 KB
    Apr 29, 2020, 1:07 AM
    httpd/unix-directory
    0755

    woocommerce
    4 KB
    May 22, 2020, 11:17 AM
    httpd/unix-directory
    0755

    woocommerce-admin
    4 KB
    May 19, 2020, 12:53 PM
    httpd/unix-directory
    0755

    wow-recruitment-legion
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    wp-discord
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    wp-google-maps
    4 KB
    May 8, 2020, 4:37 PM
    httpd/unix-directory
    0755

    wp-optimize
    4 KB
    Apr 2, 2020, 2:11 PM
    httpd/unix-directory
    0755

    wp-slimstat
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    wp-smushit
    4 KB
    May 19, 2020, 12:53 PM
    httpd/unix-directory
    0755

    wpcat2tag-importer
    4 KB
    Dec 15, 2019, 12:04 PM
    httpd/unix-directory
    0755

    youtube-embed-plus
    4 KB
    Apr 17, 2020, 3:40 PM
    httpd/unix-directory
    0755

    #211416
    Robin W
    Moderator

    ok, thanks for the update.

    I loaded your code in my test site and it works fine – eg I can allocate someone to warlord.

    what plugins do you have on your site?

    #211408
    Robin W
    Moderator

    custom roles work on my test site under2.6

    I’ll load your code onto my test site later and see if it works there.

    g28f99
    Participant

    Hi, Robin. I think the above goal to apply the customization only in some specified forums should be practical. For example, I do NOT want the above customization to take effects in two forums with forum id 124 and 126. Or, alternatively, I do NOT want the customization to take effects in forums with menu_order < 10.But I could not find any previous posts with codes to set the effective range among forums.
    How do you think about it? I have no idea how to integrate the following selection information into the above customization code. Could you please make a demonstration?

    
    $current_forum_id = get_forum_id();
    if $current_forum_id !==124 AND $current_forum_id !==126 
    
    #211395
    jamnet.kr
    Participant

    Is this code can I using in functions.php? Not in the child theme…

    #211378
    Robin W
    Moderator

    ok, understand

    if you just want that then

    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    
    function rew_bbpress_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Reply To:' => 'Svar till:',
    			            );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

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

    Code Snippets

    g28f99
    Participant

    So I shall finalize the code for others for reference use. One last optimization for this topic so that it is really powerful:
    I may set forums with “menu_order” <10 (class=”screen-reader-text”) as admin purpose forums and do not want to apply above customization setting. Can I really achieve that goal with some condition setting?

    #211363

    In reply to: Make Forum Full Width

    Robin W
    Moderator

    looks pretty full width to me – have you refreshed your browser?

    the theme is setting a width of 90% well before bbpress gets involved.

    you could try

    .both-sidebars .container {
    	width: 100% !important ;
    }

    but that will affect the whole site

    Robin W
    Moderator
    add_action( 'bbp_theme_after_reply_content', 'new_reply_additional_fields', 10 );
    function new_reply_additional_fields() {
    $new_reply_additional_fields = 'Above is my personal opinion';
    	echo "<p id='new_reply_additional_fields'><font color=red font size='4pt'>".$new_reply_additional_fields."</p>";	
    }
    #211360
    jayapramod
    Participant

    Nothing changed… I applied this as:

    1. created child theme folder in my — wp-content >> themes >> astra-child

    2. created functions.php file inside that folder with provided code.

    3. Showed in themes list.

    On viewing my discussion page nothing changed.

Viewing 25 results - 2,776 through 2,800 (of 32,577 total)
Skip to toolbar