Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

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

    Apologies, I was mixing you up with another user whose hoster does not allow changes. if you have FTP capabilitiy then

    I’d suspect you need a bbpress.php template

    see

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 8

    #232836
    Robin W
    Moderator
    #bbpress-forums {
    	width: xx%;
    }
    #232834

    Until now I had a problem every time a participant wanted to unsubscribe from forum or topic notifications using buddypress profile (forums/subscriptions).
    Since the unsusbscribe buttons on his buddypress profile did not work.
    And he had to go to the forum/topic in question to perform the operation.

    I modified the plugin code to fix the problem and it works. You can review my code and include it in your plugin for future updates.
    Thanks:

    /wp-content/plugins/bbpress/includes/users/engagements.php
    line 840~ (depends version)
    // Bail if actions aren’t meant for this function
    if ( ! in_array( $_GET[‘action’], $possible_actions, true ) ) {

    line 870~ (depends version)
    /** No errors *************************************************************/
    if ( ‘bbp_unsubscribe’ === $_GET[‘action’] ) {

    /wp-content/plugins/bbpress/includes/users/template.php
    line 1375~
    $html = sprintf( ‘%s<span id=”subscribe-%d” %s>%s</span>%s’, $r[‘before’], $object_id, $sub, $url, $object_id, $object_type, wp_create_nonce( ‘toggle-subscription_’ . $object_id ), $text, $r[‘after’] );

    sc00t
    Participant

    Hi everyone,

    I have had no end of trouble with PopularFX support on this issue!

    I managed to get the forums to display within the theme using a shortcode here:

    Forum

    But as you look at an individual forum (i.e. Feedback) the forum is no longer incorporated within the theme. If you then click a thread, neither is that.

    PopularFX changed a margin, somehow thinking that would fix the issue, but instead made containers for all the text on my website 10 pixels wide!

    They then reverted that back and replied a few days ago saying “change your page slugs.” – so ended their support, and replies to my support ticket!

    So are they right in saying changing my page slugs will somehow incorporate the forums into the theme? And if so, how do I go about doing so?

    I’m using Popular FX, Scoops.

    Thanks in advance!
    sc00t

    #232814
    cassel
    Participant

    That css code works!

    And to answer your question, I use that pdf generator plugin for blog posts. I don’t know if it has anything to do with forum posts. Which is why I never made the connection.

    #232807
    Robin W
    Moderator

    ok, install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and you’ll see [bsp-display-topic-index] with lots of options including picking from selected forums – insert this in a text/html/shortcode box – if gutenberg, then a shortcode box.

    #232806
    Robin W
    Moderator

    ok, try this is in the custom css part of your theme

    #TB_window {
        width: 100% !important;
        max-width: 700px !important;
       }

    may or may not improve/fix – it all depends on the load order of your site’s css !

    #232800
    Robin W
    Moderator

    ok, just been playing.

    I susoect this is caused by your plugin pdf-generatorfor-wp-public

    which has a css rule on line 165

    #TB_window {
        z-index: 1000000 !important;
        width: 90% !important;
        max-width: 400px;
        transform: translate(-50%, -50%);
        margin: 0 !important;
        box-shadow: 0 0 0 5000px rgb(0 0 0 / 74%) !important;
    }

    The width 90% and max width are poossibly the problem

    Try deactivating that plugin and see if this fixes. If so, then we can look at some css to fix.

    #232780
    eichenau
    Participant

    I want to use bbpress in sub-site network.
    I was able to install it, create a forum and display it on [bbp-forum-index], but when I click on the permalink to display it, I get an error that not even wordpress itself is loaded. Please let me know if you know a solution.(I cheked it run correctly in main site)

    this is the code what I can show the forum page
    <html>
    <head></head>
    <body></body>
    </html>

    #232770
    Robin W
    Moderator

    yes I suspect it is wordpress update.

    as a punt, try this – I have low hopes of it working ๐Ÿ™‚

    function fnctn_add_thickbox () {
        add_thickbox();
    }
    add_action ( 'wp_enqueue_scripts','fnctn_add_thickbox' );

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets

    #232769
    Robin W
    Moderator

    ok, it is a theme issue.

    2 further things to suggest

    you could look at this

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ item 8

    and/or you could add this to your custom css

    #bbpress-forums {
    	width: 90% !important;
    }

    Otherwise you need to reach out to the theme authors

    #232768
    Robin W
    Moderator
    #232744
    sc00t
    Participant

    Hi everyone,

    global-wrestling.com/forum – I’ve embedded the forums here using the shortcode. however, if you click for example the ‘wrestling’ forum, you’ll note that it isn’t picking up the website layout.

    I’ve tried editing topics, forums, login and newtopic in the pages section of WordPress in pagelayer, and it just comes up blank.

    Can anyone help advise me how I embed the sub forums (i.e. wrestling, OOC, etc) into the website template?

    Thanks,
    Sc00t

    #232701
    simon_a6
    Participant

    I need help. It loads it, but it breaks the website. It seems to add code in the #main DIV of the site, causing it to lose all the full width element so the page on which I place it.

    #232696
    simon_a6
    Participant

    It’s applying “Boxed” as a class to the #main ID of the Container of the website homepage. The theme has a “Boxed” format, which puts spacing around it all, but we are not using that format.

    It only does it when I apply that shortcode right at the bottom of the homepage though.

    Iv’e no idea why

    #232691
    Robin W
    Moderator

    you can use the shortcodes

    Shortcodes

    #232625
    Tao Sheng
    Participant

    I’ve created a page with bbpress shortcode for login, users will need to give their name and email information, but when they are directed to the registration page I set for them, they need to give the password, as a matter of fact, there is a no process when they have required a password, and no emails will be sent to their mailbox, I am confused.

    The page needs support is https://eventmelt.com/

    #232555

    In reply to: Sort topics in a Forum

    theriddler
    Participant

    Hello,

    I also have a question regarding the order of topics in a forum. For me it’s very easy, the topics should be sorted from the date they have been published (old to new) and stay that way. What code do I have to use?

    Thank you!
    Best regards
    Renรฉ

    #232551
    sharkster4000
    Participant

    This really should be added to bbpress. In the meantime, you can use

    https://YourDomain.com/wp-admin/profile.php

    as a permanent link to a user’s profile. HOWEVER: This sends people to their WordPress profile page, not to the more friendly looking bbpress profile. It does still allow them to do all the changes to their settings though.

    #232498
    Robin W
    Moderator

    The easiest way is to create a ‘category’ forum as a holder

    so if you had 3 forums related to say flowers and 3 forums to trees, you would add 2 new forums called ‘flowers’ and ‘trees’

    so in dashboard>forums>add new when adding the forum in ‘forum attributes’ in the top right of the screen change the ‘type’ from ‘forum’ to ‘category’

    then in each ‘flower’ sub forum you would edit these

    dashboard>forums>select forum> edit and change the ‘parent forum’ (right hand side) to the category forum ‘flowers’

    and repeat for trees.

    then in your page use the forum category as the id

    so if the flowers category was forum id 365 then the shortcode would be

    [bbp-single-forum id=365]

    since categories don’t have topics, just the forums show.

    You might want to improve how they look by looking at this plugin

    bbp style pack

    and looking at the 3 first forum tabs. there’s lots of other useful stuff in that plugin as well.

    David
    Participant

    Hi
    I have 6 forums. I’d like to display 3 of them on one page and the other 3 on anoter page in WordPress. I thought that I could use the shortcode [bbp-single-forum id=32] but when using this, the single forum is added to the page but it’s already expanded showing all the topics within that forum. Is there a way to show single forums but in a collapsed format?

    Thanks for any help that you can offer (I’m not a programmer, so please keep replies easy for a non techie ๐Ÿ˜€)

    Thanks – David

    #232481
    Chuckie
    Participant

    It is not new. It is mine. And TinyMCE has not changed for several versions in WP so all I had to do is change readme.

    If I deactivate mine then it just shows an error for EnlighterJS instead (which adds code buttons)

    #232479
    Chuckie
    Participant

    I don’t get this.

    Look here:

    Create New Topic

    I am getting a message under the TinyMCE toolbar. My two icons are now showing either.

    My code is very basic:

    <?php
    /**
    * Plugin Name: Add AutoSave | Fullscreen to TinyMCE
    * Description: This will install the TinyMCE AutoSave | Fullscreen Plugins (version 4.9.11) and register them with TinyMCE.
    * Version: 2.1
    * Author: Andrew Truckle
    * Author URI: https://www.trucklesoft.co.uk/
    **/
    
    /**
     * Add the TinyMCE AutoSave and Fullscreen Plugins.
     *
     * @param array $plugins An array of all plugins.
     * @return array
     */
    function aaft_custom_plugins( $plugins ) {
         $plugins['autosave'] = plugins_url( 'mce/', __FILE__ ) . 'autosave/plugin.min.js';
         $plugins['fullscreen'] = plugins_url( 'mce/', __FILE__ ) . 'fullscreen/plugin.min.js';
         return $plugins;
    }
    add_filter( 'mce_external_plugins', 'aaft_custom_plugins' );
    #232471
    Robin W
    Moderator

    I don’t have a copy of this plugin, but given that calling these functions does by necessity involve specifying all the variables, I’d suggest you simply take out the='' in the function where it is erroring.

    so in your example change

    public function __construct ( $file = '', $version ) {

    to

    public function __construct ( $file, $version ) {

    and do this for all the ones erroring

    #232463
    Chuckie
    Participant

    Recently upgraded to WP 6.1 and this plugin bbPress Advanced Statistics gives deprecation warnings when I have debug mode enabled:

    The official website for the plugin seems dead now.

    The warnings:

    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.utils.php on line 25 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.utils.php on line 64 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.statistics.php on line 153 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.statistics.php on line 332 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.activity.php on line 98 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/public/class.online.php on line 86 
    Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/public/class.extras.php on line 47

    One example:

        public function __construct ( $file = '', $version ) {
            
            $this->init();
    
        } // End __construct ()

    I understand what it means, and I see that the parameter is ot used in the function. Dos that mean we just delete the parameter?

    Another example:

        public static function instance ( $file = '', $version ) {
            if ( is_null( self::$_instance ) ) {
                    self::$_instance = new self( $file, $version );
            }
            return self::$_instance;
        } // End instance ()

    Problem here is that the version value is being used.

    Advice appreciated.

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