Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,151 through 6,175 (of 32,519 total)
  • Author
    Search Results
  • #176454
    Stephen Edgar
    Keymaster

    if it hangs up and I restart, should it continue from where it stopped?

    Yes, with a caveat, if the importer is processing 100 rows at a time, you may end up with some duplicates as it will re-import that chunk again.

    #176444

    In reply to: BBPress slowness save

    Pascal Casier
    Moderator

    Hi, just given my thoughts: Is your original forum (the first one) also running on a local machine or on shared hosting? I had a bbpress site that locally was running very slow. The moment I moved it to a provider, it was running great…

    My checklist:
    Please note that WordPress requirements/recommendations are on https://wordpress.org/about/requirements/

    Some things to check:

    – Have you run all the repair tools of bbpress after import to be sure your structure is optimized ?
    – Have you deactivated any not-needed plugin ? Is your theme ready for bbPress ?
    – Did you try to run performance tools like the P3 plugin performance profiler to narrow down the possible slow parts ?
    – Did gtmetrix.com indicate something ? Or what did you see using the Pingdom Tools ?
    – Is it for all people in the world the same ? Check with Sucuri performance.

    Plugins:

    – Are you using any cache mechanism to improve speed where possible ?
    – Plugins like W3 Total Cache, Batcache, WP Super Cache or other ?
    – Did you check for CloudFlare or the autoptimize plugin ?

    Some further reading: https://codex.bbpress.org/getting-started/improving-performance/

    If it would come to database queries, then check these plugins:
    https://wordpress.org/plugins/query-monitor/
    https://wordpress.org/plugins/query-monitor-bbpress-buddypress-conditionals/

    Also note that in the upcoming bbPress v2.6, a lot of focus went on possible performance issues.

    Hope it helps,
    Pascal.

    #176430
    Robkk
    Moderator

    Its not available for download. Besides its just a custom made theme made for the bb sites (bbpress.org and buddypress.org and their respective codex subdomains, possibly trac too )

    Choose a theme from here.

    #176419
    Stephen Edgar
    Keymaster

    bbPress queues up its CSS stylelsheet using WordPress’ standard functions wp_enque_stylesheet() so it shouldnn’t cause any issues.

    I’ve never tried Redhat’s Openshift, nor even knew it was a thing until now.

    Do they use a “standard” copy of WordPress or is it modified somehow?

    What versions of WordPress and bbPress are you having this issue with?

    Kineta
    Participant

    I have been commenting out the error that disallows duplicate posts and replies:

    if ( !bbp_check_for_duplicate( array( 'post_type' => bbp_get_reply_post_type(), 'post_author' => $reply_author, 'post_content' => $reply_content, 'post_parent' => $topic_id, 'anonymous_data' => $anonymous_data ) ) )
    bbp_add_error( 'bbp_reply_duplicate', __( '<strong>ERROR</strong>: Duplicate reply detected; it looks as though you’ve already said that!', 'bbpress' ) );

    Obviously this isn’t ideal – everytime we upgrade I have to remember to do this. Is there any way to override this in my theme files?

    Thanks in advance.

    #176409
    magicvish
    Participant

    Hi,
    I want to stop new topic creation on my bbpress groups page, i contacted bbpress and they said i need a customer code to stop new topic creation on bbpress groups. Can anyone on here help?

    Regards
    Vish

    #176392
    marcono
    Participant

    1. Does anyone know how to move the reply box in bbpress forum from the bottom to the top!? I tried to code but it does not work for me!!?
    2. Is it possible to make the reply box as it is in the activity page? (which is very small and handy)
    Thank you!

    #176389

    In reply to: Searching Problem

    Robkk
    Moderator

    Check to see if this is theme specific or see if changing the forum search slug is causing this.

    https://codex.bbpress.org/getting-started/troubleshooting/

    #176385
    Robkk
    Moderator

    I rolled back bbPress since I read they changed their mail headers in 2.5.4 – so I went from the latest (2.5.9) to 2.5.3

    Update it to the latest version.

    Edited the database and added multiple addresses in the wp_options field for admin – still no notifications.

    Maybe consider reverting this to what you had previously.

    Did you do all what is described below @benjieblock?

    Create a forum and subscribe to the forum, and create a topic with your admin account and also subscribe to it on a live test site to test these subscriptions in.

    Create a test participant user to just post test posts in that topic you just created to test topic subscription emails, and create topics in the forum to test forum subscription emails.

    I guess now just check on your Admin/Keymaster email {your admin user email} to see if any of them sent.

    This is just troubleshooting to see if you can even get 1 subscription email, either topic or forum subscription emails using bbPress by default without any new plugins.

    If it works without any plugins we can go from there.

    IF it doesn’t we need to find a plugin/theme/custom code snippet that might be causing an issue.

    Also in the future the larger your forums grow and if you allow both subscription emails for every mod and keymaster in your forum, you will need to consider using smtp and AsynCRONous bbPress Subscriptions.

    #176382
    Robkk
    Moderator

    Follow this. If you theme has a specific way of creating a child theme follow any of their own guides.

    https://codex.wordpress.org/Child_Themes

    The categories and topics are all weird. I just wish it looked standard like every other major forum out there.

    It may be how the default category and forum layout bbPress uses. Maybe consider using this loop-forums.php file in a child theme.

    https://github.com/robkk/bbPress-Hierarchical-Forum-and-Category-Layout

    #176368
    @mercime
    Moderator

    @earl_d I made a tutorial for BuddyPress which you could adjust for the bbPress version. e.g. in the B. Full-width Layout section, instead of creating buddypress.php, create bbpress.php at the root of your theme’s folder. Good luck.

    Twenty Twelve Theme

    #176361
    Earl_D
    Participant

    I am running the latest BBP with WP 4.53 and BP 2.6.1.1 with sitewide and group forums using a 2012 child theme. I would like to show the forum pages full width in twenty twelve. I have tried several options to do this from using CSS to change the site content width along side copying the full with template and remaining Bbpress.php in the 2012 child theme folder as well as copying the Bbpress template folder to my 2012 child theme folder.

    None of that has worked the closest it comes is the removal of the sidebar but the Bbpress content still doesn’t display full width. I have looked through the codex and the forums here but have not found a solution. Is there something I am missing? Can anyone point me to a definitive solution to this nagging problem. thank you

    #176349
    thomasjoseph315
    Participant

    I’ll try it out, but this is pretty annoying that I have to do this manually. If I wanted to learn to code, I wouldn’t be using wordpress to begin with.

    #176348
    Robkk
    Moderator

    Follow this guide and place the CSS files from the bbPress plugin in a child theme then customize it from there. Or use a custom CSS plugin. Whatever works best for you.

    https://codex.bbpress.org/themes/theme-compatibility/

    #176314
    grant512
    Participant

    Hi I am using shortcode [bbp-forum-index] in my wp-page to display my forum.

    My objective is to show sub topics in my main forum homepage

    [IMG]http://i63.tinypic.com/2mcfwnq.jpg[/IMG]

    How can I achieve this? I tried using bb stylepack and its now showing my subtopics.

    Thanks!

    #176309

    In reply to: BBPress slowness save

    Stephen Edgar
    Keymaster

    The “Notice: bbp_setup_current_user was called incorrectly.” will be caused by either your theme or a plugin.

    Try switching theme to Twenty Fifteen to see if the error is fixed, if not deactivate all your plugins except bbPress and then reactivate each plugin one-by-one until the error appears again, then you’ll know which one is causing the problem.

    bbp_setup_current_user was called incorrectly

    #176304
    yckelvin
    Participant

    Dear Sir/Madam,

    I install the bbPress and find the search box and button are in separate line, I review the code of form-search.php

    <form role="search" method="get" id="bbp-search-form" action="<?php bbp_search_url(); ?>">
    	<div>
    		<label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label>
    		<input type="hidden" name="action" value="bbp-search-request" />
    		<input tabindex="<?php bbp_tab_index(); ?>" type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />
    		<input tabindex="<?php bbp_tab_index(); ?>" class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />
    	</div>
    </form>
    

    There is not line break tag <br> between the input element, does anyone know how I can remove the break?

    Best regards,

    Kelvin.

    Schoelje
    Participant

    Glad you found it useful and thanks for posting back your code.

    Dan
    Participant

    @shoelje this worked great for me. Thank you!
    I made a few small tweaks that will make the next person’s set that much easier.

    
    <?php
    include "../wp-config.php";
    
      // If all else fails, use this url.
      $defaulturl = "http://your_domain_goes_here/forums/";
    
      // Build the query according to url parameters p or t.
      $query = '';
      if (!empty($_GET['p'])) {
          $query = "SELECT {$table_prefix}posts.guid FROM {$table_prefix}postmeta
                    INNER JOIN {$table_prefix}posts ON {$table_prefix}posts.ID = {$table_prefix}postmeta.post_id
                    WHERE {$table_prefix}postmeta.meta_key = '_bbp_old_reply_id'
                    AND {$table_prefix}postmeta.meta_value = '" . $_GET['p'] . "';";
      }else if (!empty($_GET['t'])) {
          $query = "SELECT {$table_prefix}posts.guid FROM {$table_prefix}postmeta
                    INNER JOIN {$table_prefix}posts ON {$table_prefix}posts.ID = {$table_prefix}postmeta.post_id
                    WHERE {$table_prefix}postmeta.meta_key = '_bbp_old_topic_id'
                    AND {$table_prefix}postmeta.meta_value = '" . $_GET['t'] . "';";
      }
    
      // Set the new url to the default url
      $url = $defaulturl;
    
      // Check if we need to make a database connection.
      if (!empty($query)) {
        //echo "connecting...<br>";
        // Make a connection
        $mysqli = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die("mysqli connect error: "+mysqli_connect_error());
    
        // Check the connection.
        if (!mysqli_connect_errno()) {
          // Run the query.
          //echo $query."<br>";
          $result = mysqli_query($mysqli,$query) or die("mysqli query error: ".mysql_error($mysqli));
    
          // Get the new URL.
          if ($result) {
            $row = $result->fetch_array(MYSQLI_ASSOC);
            $guid = trim($row["guid"]);
            if (!empty($guid)) {
              $url = $guid;
            }
          }
    
          // Free the result set.
          $result->free();
    
          // Close the connection.
          mysqli_close($mysqli);
        }
      }
    
      //var_dump($url);
    
      // Write the header.
      header("Location: " . $url, true, 301);
    ?>
    
    #176294
    Barry
    Participant

    If you want to take a custom CSS based approach, you could use the body.bbpress selector.

    In your case, an extra selector is needed for the main forum page. It’s not ideal to hardcode page IDs in CSS this way and normally that wouldn’t be required – but you seem to be using a custom page instead of a regular forum archive there.

    Example:

    body.page-id-174,
    body.bbpress {
      background: white url("http://replace.me/with-image.png") repeat top left !important;
    }

    If you add the above to your child theme stylesheet it should get you in the right direction. Please also note if you are able to add it after the existing custom background CSS rule, you can drop the !important modifier.

    Of course, don’t forget to add a legit URL in there!

    Hope that helps 🙂

    #176292
    Barry
    Participant

    Would this snippet work for you? You could add to a custom plugin, or to your theme’s functions.php file if that’s how you like to do things.

    function bbpress_unhook_email_notifications() {
    	remove_action( 'bbp_new_reply', 'bbp_notify_topic_subscribers', 11 );
    	remove_action( 'bbp_new_topic', 'bbp_notify_forum_subscribers', 11 );
    }
    
    add_action( 'init', 'bbpress_unhook_email_notifications', 100 );
    #176282

    In reply to: BBPress slowness save

    TriiXx
    Participant

    Hi,

    Thanks for your answer.

    I’ve run the repair tools after importing and before my last post.

    I have a error on my log :
    “[08-Jul-2016 14:48:02 UTC] PHP Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /wp-includes/functions.php on line 3897″

    I’ve seen it’s not important but i don’t have other error.

    #176269
    nm
    Participant

    Hi Robkk, Thanks for reverting. I cannot disable subscriptions as that would render my website useless since the core is forum discussions. My use case would be, a user subscribes to a topic, anytime they come back to the site they get a notification with the number of replies via the buddypres notification component. As it is, that seems to be working, however I need to stop emails from going out that’s all.

    Another workaround would be having a counter for all unread replies on subscribed topics via bbress code, know how I can achieve this? Either way I need to completely turn off email subscription notifications.

    #176264
    Stephen Edgar
    Keymaster

    What do you have your permalinks set to? /wp-admin/options-permalink.php?

    #176259
    Robkk
    Moderator

    You are going to have to create this by yourself.

    bbPress comprises of custom post types, so you should be able to use post_meta.

    https://developer.wordpress.org/reference/functions/get_post_meta/

    https://codex.wordpress.org/Function_Reference/add_post_meta

    https://codex.wordpress.org/Function_Reference/add_post_meta

    Here is a good example of using custom post meta with bbPress.

    https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/

    There are some bbPress support forum plugins that you may need to look into that may add something similar of the features you want.

    You can create a custom topic form input for the users to explain why this is important, a topic status that indicates where the topic is at and indicate by color, resolution deadline could be time it was closed.

    There is also many hooks that might be helpful.

    http://hookr.io/plugins/bbpress/2.5.8/#index=a

Viewing 25 results - 6,151 through 6,175 (of 32,519 total)
Skip to toolbar