Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,601 through 6,625 (of 32,505 total)
  • Author
    Search Results
  • #173640
    aaachiaki
    Participant

    Pascal, thank you for responding! Downloaded 2.6 and uploaded it without problem.

    Went to import, and got a new error–>

    WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci

    dtmember
    Participant

    Hi, I just add the bbpress search code posted above by robkk, and it works too fine Some private topics are also show up. How could I use this search function but not include the private topic. Or maybe it could only shows the topic name but not content. Thanks

    Is there anyone might able to solve this?

    #173633

    Topic: Sidebar

    in forum Showcase
    johnzoro
    Participant

    Not sure if this is the right place.

    On my normal pages in wordpress I have the option of using full width or having a sidebar.

    Is there this option on bbpress or do you need to create a page, then post shortcode then modify that page to full width?

    #173632

    In reply to: Delete own posts

    tech55541
    Participant

    Hello,
    Where does this code go?

    Thanks.

    #173626
    Stephen Edgar
    Keymaster

    I’ve just added support to the XenForo importer to support deleted users.

    https://bbpress.trac.wordpress.org/ticket/2922

    If you update your 2.6-alpha via this zip file you’ll have that included for your import.

    What this does is if a user has been deleted from XenForo their topics and replies are not actually deleted (they are kept to maintain context) but during import because that user no longer exists they cannot be imported and the topic/reply would then be attributed to the anonymous user. Now the topic/reply is still attributed to the anonymous user but includes the original author name, basically the same way XenForo handled this.

    Edit: You can see the difference from when the Member Two user still existed and was imported per https://cloudup.com/c_epfx4Q4z8/f, I then deleted Member Two and the result looks like this https://cloudup.com/cNnYv-3eSyl https://cloudup.com/c5iQ-iIOoW4

    #173623
    Stephen Edgar
    Keymaster

    I’ve just got my copy of Xenforo up and running locally, I don’t have an issue with reply authors here, see this screenshot https://cloudup.com/c_epfx4Q4z8

    Can you open up phpMyAdmin and run this SQL query on your Xenfor database:

    
    SELECT 
    convert(post.post_id USING "utf8mb4") AS post_id,
    convert(thread.thread_id USING "utf8mb4") AS thread_id,
    convert(post.thread_id USING "utf8mb4") AS thread_id,
    convert(post.user_id USING "utf8mb4") AS user_id,
    convert(post.message USING "utf8mb4") AS message,
    convert(post.post_date USING "utf8mb4") AS post_date 
    
    FROM xf_post AS post 
    LEFT JOIN xf_thread AS thread 
    USING (thread_id) 
    WHERE thread.first_post_id != post.post_id 
    

    You might have to change the following two lines if your database does not use xf_ as the forum prefix:

    From:

    
    FROM xf_post AS post 
    LEFT JOIN xf_thread AS thread 
    

    To:

    
    FROM myprefix_post AS post 
    LEFT JOIN myprefix_thread AS thread 
    
    #173620

    In reply to: bbpress login position

    Pascal Casier
    Moderator

    Hi Sander,
    You seem to have the pro version of SKT healing touch theme, so I would propose to ask them what to put exactly, but you will have to load the sidebar first and then the content. An example (for genesis) is here: http://www.billerickson.net/code/move-sidebar-content/

    Pascal.
    PS: Kom gerust op slack, HowTo staat op casier.eu/wp/slack

    #173616

    In reply to: Delete own posts

    LeGuerg
    Participant

    Hi,

    This code allows the author of a topic/reply to trash his own posts. This way, there is no need to give a moderate capability to Participants.

    Regards.

    #173604
    Pascal Casier
    Moderator

    Hi Biorn,

    Create a standard WordPress page and put the slug ‘forums’. Creating this page will override the standard page that comes out.

    You can then add the [bbp-forum-index] shortcode on that page (see https://codex.bbpress.org/features/shortcodes/) and change the title of your page.

    Pascal.

    #173593

    In reply to: Delete own posts

    tech55541
    Participant

    Hello there,
    What exactly does this code do? Does it allow participants to delete or trash posts? That is my question.
    I enable the capability for participants to delete posts, but they cannot delete if they cannot trash the post first. The only way for trash to show up is to enable the moderate capability which opens up way to many options. Is there any way to modify this code to only allow participants to trash their posts?

    Thanks.

    tech55541
    Participant

    Hello,
    I would really appreciate it if someone could help me get this working. I understand it is going to take some coding, but that is what it is. A forum should not require this much coding to begin with. Why do the roles have to be so confusing? Remember, if normal people cannot understand how to do something by reading the codex, that creates more threads for the more advanced issues.

    I am pretty much a nonprofit organization with my blog and a small forum, I do not have money to pay a developer, so I am asking the wonderful volunteers here to please provide some assistance.

    Thanks.

    #173570
    LeGuerg
    Participant

    Hello,

    I get an issue with the bbPress capabilities. My forum Participants are set with edit_replies, delete_replies, edit_topics, delete_topics capabilities, but they can not delete their own posts because the links are not displayed. Keymasters and Moderators have no problem since they are moderators on the whole forum.

    So I checked the code in ./includes/topics/capabilities.php and includes/replies/capabilities.php and added the code below to fix the issue:

    ./includes/topics/capabilities.php, line 174 and
    ./includes/replies/capabilities.php, line 156

    // Moderators can always edit forum content
    	} elseif ( user_can( $user_id, 'moderate' ) ) {
    		$caps[] = 'moderate';
    					
    // -------------------------------- 
    // User is author so allow edit if not in admin
    	} elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
    	        $caps[] = $post_type->cap->delete_posts;
    // --------------------------------
    					
    // Unknown so map to delete_others_posts

    So my question is: is this intended ? Otherwise is there a fix planned for a next update?
    Thank you for your help.
    Regards.

    #173567

    In reply to: Reverse Title Order

    Pascal Casier
    Moderator

    Hi,
    Copy this code into your functions.php:

    function casiepa_bbp_has_topics() {
      $args['order'] = 'ASC'; // 'ASC' (Ascending), 'DESC' (Descending, Default)
      return $args;
    }
    add_filter('bbp_before_has_topics_parse_args', 'casiepa_bbp_has_topics' );

    Pascal.

    #173562
    Robin W
    Moderator

    you need header.php
    not the body part of the code

    #173554
    stewmills
    Participant

    Tried the CSS route and could not get it to work.

    So, in looking at Robin W suggestion I could not locate the exact section to wrap. I could not locate <div class=”header-area”> with a closing of </div>. Here is what I have (starting with the body section of my page code)

    <body <?php body_class(); ?>>
    <?php if ( 'true' == $boxedlayout ) {echo '<div id="tt-boxed-layout">';}else{echo '<div id="tt-wide-layout">';} ?>
    <div id="wrapper" <?php if (is_page_template('template-homepage-3D.php') || is_page_template('template-homepage-jquery-2.php')) {echo 'class="big-banner"';} ?>>
    <div id="header" <?php if (is_page_template('template-homepage-3D.php')){echo "style='height: 560px;'";} ?>>
    <?php 
    // show the toolbar if selected by the user :
    if ($ka_toolbar == "true"): 
    ?>
    <div class="top-block">
    <div class="top-holder">
    
      <?php truethemes_before_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
      <?php if(has_nav_menu('Top Toolbar Navigation')): ?>
      <div class="toolbar-left">  
      <ul>
      <?php wp_nav_menu(array('theme_location' => 'Top Toolbar Navigation' , 'depth' => 0 , 'container' =>false )); ?>
      </ul>
      </div><!-- end toolbar-left -->
    
      <?php
      //if top toolbar menu not set, we show dynamic sidebar  
      elseif(is_active_sidebar(1)): 
      ?>
      <div class="toolbar-left">  
      <ul><?php dynamic_sidebar("Toolbar - Left Side"); ?></ul>
      </div><!-- end toolbar-left -->
      <?php endif; ?>
      
      <?php if(is_active_sidebar(2)): ?>
      <div class="toolbar-right">
      <?php dynamic_sidebar("Toolbar - Right Side"); ?>
      </div><!-- end toolbar-right -->
      <?php endif; ?>
    
    <?php truethemes_after_top_toolbar_menu_hook();// action hook, see truethemes_framework/global/hooks.php ?>
    </div><!-- end top-holder -->
    </div><!-- end top-block -->
    <?php endif; //end if($toolbar == 'true') ?>
    
    <?php truethemes_before_header_holder_hook();// action hook, see truethemes_framework/global/hooks.php ?>
    <div class="header-holder">
    <div class="rays">
    <div class="header-area<?php if (is_search()) {echo ' search-header';} ?><?php if (is_404()) {echo ' error-header';} ?><?php if (is_page_template('template_sitemap.php')) {echo ' search-header';} ?>">
    
    <?php // Website Logo
    if ($ka_logo_text == ''){
    ?>
    <a href="<?php echo home_url(); ?>" class="logo"><img src="<?php echo $ka_sitelogo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
    <?php }else{?>
    <a href="<?php echo home_url(); ?>" class="custom-logo"><img src="<?php echo get_template_directory_uri(); ?>/images/_global/<?php echo $ka_logo_icon; ?>" alt="<?php bloginfo('name'); ?>" /><span class="logo-text"><?php echo $ka_logo_text; echo '</span></a>';}?>
    
    <?php truethemes_before_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>
    <?php if(has_nav_menu('Primary Navigation')): ?>
    <nav>
    <ul id="menu-main-nav">
    <?php wp_nav_menu(array('theme_location' => 'Primary Navigation' , 'depth' => 0 , 'container' =>false , 'walker' => new description_walker() )); ?>
    </ul>
    </nav>
    <?php endif; ?>
    
    <?php truethemes_after_primary_navigation_hook();// action hook, see truethemes_framework/global/hooks.php ?>
    #173552
    Pascal Casier
    Moderator

    Add this in your functions.php or in a plugin:

    add_filter( 'manage_edit-forum_columns', 'casiepa_edit_forum_column' ) ;
    function casiepa_edit_forum_column( $columns ) {
    	$columns['id'] = __('ID');
    	return $columns;
    }
    
    add_action('manage_forum_posts_custom_column', 'casiepa_manage_forum_columns', 10, 2);
    function casiepa_manage_forum_columns($column_name, $id) {
        global $wpdb;
        switch ($column_name) {
        case 'id':
            echo $id;
                break;
        default:
            break;
        } // end switch
    }   
    

    It will add the ID column when you go in your Dashboard to ‘Forums’.
    Pascal.

    #173550
    Wendell
    Participant

    I reset the forum, then upgraded to bbpress 2.6 alpha, checked the “purge previous import” checkbox (just to be sure), then started the import process again and got this lovely error message:

    “WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE blp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key, meta_value) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci”

    So I unchecked the purge option and tried again. It’s currently importing the users.

    #173536
    Stephen Edgar
    Keymaster

    I’m guessing the sync-all-reply-positions fails because of some incorrect meta for the replies, theres also a few known issues with this tool timing out when used on sites with lots of replies.

    The user-role-map repair tool should work fine, no known issues with this one.

    What happens if you create a new user, just a new WordPress user, can that user login, create topics and replies etc? What happens if you now remove all the imported users and run this repair tool again, theoretically it would only be running on “native” WordPress users and not any imported users, (i.e. “admin” and “test user” only), does the repair tool still fail?

    #173533
    Stephen Edgar
    Keymaster

    @eoppegaard The database actually needs to be active in the same MySQL server your WordPress site is running on, not the same database, just available as a database in the MySQL server. Uploading the MySQL .sql dump file or phpBB files to yor site will have no effect and will not work.

    Some of the docs here might also help you out.


    @evildrome
    It might be easy for you, it’s not for me, if it was I’d have done it, if you’d be able to help out and help with some code for a solution to that that would be awesome.

    Stephen Edgar
    Keymaster

    There is a known issue with the Recalculate the position of each reply repair tool, even once it times out can you run it again? In theory the tool is working correctly but on larger batches it times out, running it again resumes from where it left off.

    Stephen Edgar
    Keymaster

    Any chance you could talk to your webhost and have the MySQL version updated?

    WordPress’ minimum requirements per https://wordpress.org/about/requirements/ are WordPress also works with PHP 5.2.4+ and MySQL 5.0+ which you are using but I suspect the phpMyAdmin warning Your PHP MySQL library version 5.1.49 differs from your MySQL server version 5.0.51a. you see are probably related to this issue.

    If your vBulletin database uses utf8_mb4 but your WordPress install is only using utf8 then you’ll run into issues. As Pascal pointed out with that link, you are using MySQL v5.0.x which doesn’t support utf8_mb4, only MySQL v5.5.3 and above does.

    If the vBulletin database used utf8 rather than utf8mb4 then I’d expect the import to work just fine, but because of the different character sets and collation differences the only way around this I see is to resolve this by upgrading to at least MySQL v5.5.3.

    #173530
    Stephen Edgar
    Keymaster

    For sure this would be related to the character set used.

    Have you installed WordPress using the Greek language pack?

    Any chance you could install WordPress using the same character set as the character set used by your Greek vBulletin install and try importing? Or maybe converting your vBulletin database to use a utf8 database?

    New WordPress installs use the character set utf8_general_ci, previously WordPress would use utf8, the Greek locale your vBulletin install is using

    pattz2016
    Participant

    I am using BBpress recent topic widget and i reaslied that it only gives me an option of adding topic author and date. How can i add the recent answers category like it is on this forum? Is there a Plugin for that? If there is not, is there a code i can fix in my templates to get this fuctionality?

    Many thanks,

    #173517
    elovkoff
    Participant

    Hi Rob, thanks for the advice. And thanks to everybody else who took the time to chime in.
    You said: “Also I cannot seem to find the code in the bbPRess plugin responsibe for the no redirect to post after submit after using using this code.”
    Anny pointers where would I look for it, or should I hire a dev to do that?

    When you refer to inline image upload – is that something that would require users to know how to use img html tags? Will it allow multiple image upolads too?

    Thank you.
    Elijah.

    TKServer
    Participant

    Ok @tech55541 I’ve just added a short code option! See if you can get it to work!

    https://wordpress.org/plugins/tk-bbpress-stats/

Viewing 25 results - 6,601 through 6,625 (of 32,505 total)
Skip to toolbar