Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,851 through 13,875 (of 32,503 total)
  • Author
    Search Results
  • PureLoneWolf
    Participant

    Hi there

    I used the code in my themes function.php file, as detailed above and it worked perfectly. That is, until I upgraded to 2.4 a few minutes ago, now the open forums changed position with the private ones (no problem) but the subforums are back listed on one line again.

    The function.php file still contains the code, so I guess something has changed with bbpress.

    Would someone know what I should do now?

    Many thanks

    #136610
    MediaSVI
    Participant

    Ok thanks for the 2.4 update, I installed it but it does not fix this issue. Maybe this is something I could just edit myself if I had the code and knew the place to add it. Also it would be cool to add an option in bbPress to have the User info to the “left” or “across the top”.

    With it to the left there is a lot of wasted page real-estate and it is not responsive friendly.

    Forums have always had the user info to the left but I think it’s time to change this or at least have the choice.

    Thank you for your time.

    #136609

    In reply to: A bi-language site

    Anonymous User 5853594
    Inactive

    First of all, did you copy the extra Dutch language files for bbPress and BuddyPress? You need those in addition to the Dutch language files for WordPress itself.

    https://codex.bbpress.org/bbpress-in-your-language/ will point you in the right direction for making things work with bbPress. (I suggest that you take the “dev branch” for the files, as the other link is outdated.)
    https://translate.wordpress.org/projects/buddypress/dev points to the BuddyPress version of the language files.

    If you’ve got those up and working, you should be able to use the Dutch settings… Although I don’t know if the plugin will enable you to switch languages for the bb’s, as I can’t find that they support them.

    In ieder geval veel succes!

    #136608
    Guru
    Participant

    Hi,

    I would like to put in my WP menu a customized navigation button that leads the logged in current user to his/her bbpress profile.

    Basically, I want the WP menu bar to have a button that enables the user to navigate to his/her bbpress profile. What is the CCS function code to put in the menu bar?

    Currently it’s too complicated for a user to find his/her bbpress profile and navigate to the forum area. Any information would be appreciated.

    #136597
    lwyndham
    Participant

    I have just managed to solve this issue by using:
    bbp_get_user_profile_url( get_current_user_id() )

    Those looking to create a simple link to the profile could use:
    <?php echo bbp_get_user_profile_url( get_current_user_id() ); ?>

    #136591
    zerocoolflo
    Participant

    Hell everyone,

    First I want to thank the developers for doing such a great job with this plugin (I just discovered it) and I hope I’ll get it working.

    I installed bbPress on my website and observed it ruined the forum’s sidebar (practically, the old sidebar was still active but pushed down and looked weird and at the top of the forum’s sidebar I had a message “comments are closed on this page”).

    Nonetheless I discovered the problem:

    Well, I am using the thesis theme on my website and I customized all my posts to show related posts by inserting this code in custom.css file:

    function my_related_posts() {
    if (is_single()) {
    global $post;
    $current_post = $post->ID;
    $categories = get_the_category();
    foreach ($categories as $category) :
    ?>
    <div class=”my-recent-posts”><h4>Additional Reading…</h4>

      <?php
      $posts = get_posts(‘numberposts=5&category=’. $category->term_id . ‘&exclude=’ . $current_post);
      foreach($posts as $post) :
      ?>

    • “><?php the_title(); ?>
    • <?php endforeach; ?><?php endforeach; ?>

    </div>
    <?php
    }
    wp_reset_query();
    }
    add_action(‘thesis_hook_after_post’,’my_related_posts’);

    I absolutely want to keep related posts on my posts.

    When I delete this “related posts code”, the sidebar works as it should.

    Any workaround/Suggestions?

    #136590

    In reply to: MyBB Import to bbPress

    Stephen Edgar
    Keymaster

    Thanks for reporting this 🙂

    I’ll try to update the importer as soon as I can to import any username that includes white space eg. Member Name to member_name or member-name.

    This needs a bit of thought on a patch as it will affect all of the bbPress importers 😉

    #136565
    Stephen Edgar
    Keymaster

    Categories are currently only imported as a forum type and each of these can be changed in WP-admin forums panel.

    Sub-forums in phpBB and bbPress are all just forums with a parent forum for the forum hierarchy, these can be changed re-ordered etc also in WP-admin forums panel.

    Your forum title ‘Obutto’ is just a title name for the site, you can set the title of your WordPress site title in WP-admin.

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

    https://codex.bbpress.org/import-forums/phpbb/

    #136562
    robkhoo
    Participant

    Hi guys,
    Have a problem working out how to use the archive page and shortcode to create a forum index.

    Currently, the default archive page created for forums gives me an unstyled archive page without a H1. My archive page slug is “forum”

    So, Instead of this I have decided to make a regular page, name it forum and stick the shortcode for the forum index in. Perfect!! I thought…..

    2 The issues remain. Although the index page looks good as a regular page, the breadcrumbs when in a single forum / topic take users back to the archive page, not the new forum index page.

    The second is that the archive page actually still exists…. I would like if possible to be able to overwrite access o the old forum archives when creating the forum index.

    Basically, I don’t want 2 archive or forum index pages to exist for the site.

    Aimee
    Participant

    Hello,

    I want to include WP template tags in bbPress templates and vice versa.

    For example in user-profile.php in my bbPress template, I want to include <?php echo get_the_author_posts(); ?> (http://codex.wordpress.org/Function_Reference/get_the_author_posts), which is a WP template tag.

    Similarly, for author.php in my WordPress template, I want to include topics started by the author.

    I imagine I’d have to query the user, so is there a way of doing this?

    #136560
    julienborne
    Participant

    Thanks for your answer, I did add the code snippet in the theme’s functions.php file but nothing shows… 🙁

    In BBpress forum settings, a crossed the wordpress fancy editor’s box as well as the Auto-embed links and the Fancy editor full ones.

    My problem mainly is that there is NO editor at all.. I would be happy even to have a non-fancy one ^^

    #136546
    Erlend
    Participant

    The fancy editor is disabled by default. You have two choices:

    Enable Visual Editor


    https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    It’s for good reason that it’s disabled though. It considerably slows down mobile devices and is just all around far more unpredictable than the plain editor in terms of how users might mess up with it.

    #136538
    ncshort
    Participant

    Is it possible to remove the parenthetical topic and reply number from the index as it appears when one uses the bbp-forum-index shortcode? If so, what do I do?

    Many thanks

    #136526
    hitkid
    Participant

    I’m trying to edit "user" started the topic "Topic" in the forum "Forum" in the activity header of my buddypress activity page. I looked forever to try and find it in wp-content/pluggins/buddypress/bp-languages/buddypress.POT and couldn’t find this: %1$s started the topic %2$s in the forum %3$s I eventually found it in
    wp-content/plugins/bbpress/languages/bbpress.POT I then did this:

    1. edit the file bbpress.pot file in poedit.
    2. create the folder “bbpress” in the wordpress content languages folder. Make the languages folder if you need to so your path looks like this: wp-content/languages/bbpress
    3. save the edited bbpress.pot file as bbpress-en_US.po
    4. upload the created po and mo files to the bbpress folder in lanugaes. reset your cashe to see it working

    I found that in this thread: http://bbpress.org/forums/topic/language-file-isnt-working/

    I also tried
    define ('WPLANG', 'en_US');

    Nothing. Am I doing this right?

    Please help, I’ve been stuck for weeks on this.

    #136458
    b a
    Participant

    Hello,

    I’m developing theme for my site where I made it look pretty much like this one here.

    So how I did it:

    First of all in bbpress.php (in the root)

    <?php if (is_post_type_archive( 'forum' )) { ?>
    	<div class="entry-content row">
    		<div class="forum-sidebar span3">
    			<h3 style="float:left;margin-bottom:11px">Forums:</h3>
    			<?php bbp_get_template_part( 'bbpress/content', 'archive-forum-home' ); ?>
    		</div>
    		<div class="span7">
    			<h3 style="float:left">Recent Topics:</h3>
    			<div class="bbp-new-topic-form" style="float:right">
    				<button id="bbp_forums_new_topic" class="btn"><i class="icon-edit"></i>&nbsp;&nbsp;New Topic</button>
    			</div>
    			<?php bbp_get_template_part( 'bbpress/content', 'archive-topic-home' ); ?>
    		</div>
    	</div>
    <?php } else { ?>

    so in my achive-topic-home I use this template:

    
    	<?php if ( bbp_has_topics() ) : ?>
    		<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    		<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    	<?php else : ?>
    		<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    	<?php endif; ?>
    	<?php do_action( 'bbp_template_after_topics_index' ); ?>
    

    I didn’t touch much of the template files.
    The problem is pagination.
    For example second page in pagination links to http://example.com/page/2
    where my forums are located at http://example.com/boards
    where I try to navigate to http://example.com/boards/page/2 it gives me an 404.

    ——

    Also interesting what I found:
    first archive-forum-home template:

    
    <div id="bbpress-forums" class="forum-news">
    	<?php do_action( 'bbp_template_before_forums_index' ); ?>
    	<?php if ( bbp_has_forums() ) : ?>
    		<?php bbp_get_template_part( 'loop',     'forums-home'    ); ?>
    	<?php else : ?>
    		<?php bbp_get_template_part( 'feedback', 'no-forums' ); ?>
    	<?php endif; ?>
    	<?php do_action( 'bbp_template_after_forums_index' ); ?>
    </div>
    

    so when I delete everything inside, now pagination points to
    http://example.com/boards/forum/SOMEFORUMNAME/page/2/

    I don’t get how it chose this SOMEFORUMNAME..

    Maybe you guys here have an idea what going on
    If you need any more information I can provide, please ask

    Thanks

    #136425
    markemark
    Participant

    bbpress 2.3.2 on WP 3.6

    get 3 errors logged in php errors.

    [Thu Aug 29 14:41:32 2013] [error] [client 202.46.56.52] 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 /var/www/html/wp-includes/functions.php on line 3012
    [Thu Aug 29 14:41:44 2013] [error] [client 119.63.193.196] 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 /var/www/html/wp-includes/functions.php on line 3012
    [Thu Aug 29 14:42:11 2013] [error] [client 54.246.119.211] 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 /var/www/html/wp-includes/functions.php on line 3012

    searching all my files this only seems to occur in the bbpress plugin.

    find . -name “*.php” -print | xargs grep bbp_setup_current_user
    ./plugins/bbpress/includes/core/sub-actions.php: * @uses do_action() Calls ‘bbp_setup_current_user’
    ./plugins/bbpress/includes/core/sub-actions.php:function bbp_setup_current_user() {
    ./plugins/bbpress/includes/core/sub-actions.php: do_action( ‘bbp_setup_current_user’ );
    ./plugins/bbpress/includes/core/actions.php:add_action( ‘set_current_user’, ‘bbp_setup_current_user’, 10 );
    ./plugins/bbpress/includes/core/actions.php:add_action( ‘bbp_setup_current_user’, ‘bbp_set_current_user_default_role’ );

    #136420

    In reply to: Membership counter

    Stephen Edgar
    Keymaster

    That site is the old bbPress 0.9/1.x version… The bbPress 2.x plugin does not support number of or users online.

    For the other stats you can use the bbPress shortcode [bbp-stats] To display the forum statistics on any page or the widget for your sidebar.

    #136404
    jezza101
    Participant

    I wanted to enable a WP shortcode I have written within bbpress, it seems the common way to do this is to use do_shortcodes($content) on the post, this works fine and I’ve seen it in a number of published plugins.

    The problem with this is that it enables all shortcodes including the bbpress ones such as login, stats etc. In fact a number of published plugins suffer from this issue (oops).

    The best solution I’ve come across is using the whitelist plugin:
    http://wordpress.org/plugins/bbpress2-shortcode-whitelist/

    But I was wondering if anyone had any other ideas?
    Could a new bbpress action for registering shortcodes be added? Then any plugin author just has to register their own new one and not have to worry.
    My other idea is to do a find/replace on “[” before my do_shortcodes call, switch them to something else, and then switch them back after, but leaving my own shortcodes unchanged.

    Anyone else had this prob? Anyone using a plugin that hasn’t taken this into consideration?! (try adding a bbpress shortcode to a post and seeing what happens!)

    #136392
    Unsal Korkmaz
    Participant

    If you willing to use https://wordpress.org/themes/firmasite theme for bbpress, i can make customization for it.

    Default forum example: http://demo.theme.firmasite.com/forums/ (You can change style from top-left icon)

    There is a customized version of bbpress style: http://social.theme.firmasite.com/forums/

    Before i start to build your theme, you have to provide some things:
    ▶ Your custom website design ideas. All details. You cant change this one after i start to build your theme.
    ▶ All design assets if you need any. (logo,images etc)
    ▶ Your preferred custom/premium bootstrap skins. Yes, you can select multiple and change whenever you want! (Please dont request more then 5) You can create yourself or buy from: http://codecanyon.net/category/skins/bootstrap
    ▶ Your preferred custom/premium icon font pack. (I can include my premium icon pack for your theme. Example icons: http://shop.theme.firmasite.com/premium-icons/ )

    I can finish this in 10~days with 3 revision for 700$ and 1 year bug fix support. You can pay from paypal. If you want to keep your theme up-to-date after 1 year, you can pay 200$ per year.
    You can contact me from http://unsalkorkmaz.com/iletisim/

    #136388

    In reply to: Import Forums error

    MediaSVI
    Participant

    Ok Steve I got the forum all imported and install and looked over it and for the most part it worked out great things imported nicely.

    I think your added code to the Convert VB.php file will come in handy to others.

    Thanks for your help.

    #136358
    mst
    Participant

    Thank you @lynq for the initiative writing this up 🙂

    If you like to show the sub-forum description you could use get_post() and modify the code from @lynq to fetch it.

    Something like this:

    $get_sub_desc = get_post( $sub_forum->ID );
    $show_sub_desc = $get_sub_desc->post_content;

    then add $show_sub_desc to the output.

    #136357
    Nitac
    Participant

    Ive managed to get a full forum migration to complete. After upgrading our server and trying on my local machine (mac laptop) i thought i’d have a try on my local machine at work (iMac with decent processor & ram), and after ~6.5hrs the whole forum had been migrated over.

    After speaking with a couple of people it turns out that wp_insert_post has a memory leak, and could be causing the import process to slow down and eventually stall on a large migration. I’m happy for anyone to jump in and clarify whether this may be the case and expand on this.

    After the migration I ran all the ‘repair forum’ functions and it assigned all the topics and replies to their correct parents.

    Hope this helps.

    Thanks

    strangelife
    Participant

    Hi Everyone!

    For my main forum homepage or the archive i want to display different forums into sections rather than having a list of forums that is the bbpress default.

    So this is the code used to display all the forums,

    <?php while ( bbp_forums() ) : bbp_the_forum(); ?>
    
    	<?php bbp_get_template_part( 'loop', 'single-forum' ); ?>
    
    <?php endwhile; ?>
    

    So how would i add some arguments to this to display certain forums from there ID’s?

    Also on the main page i want to show 5 recent topics, i believe the loop code is this,

    <?php while ( bbp_topics() ) : bbp_the_topic(); ?>
    
    	<?php bbp_get_template_part( 'loop', 'single-topic' ); ?>
    
    <?php endwhile; ?>
    

    If anyone has managed to use a custom loop using the above code to display 5 recent topics or a custom WP_Query, i’ll be very grateful if you could show some example code.

    Kind Regards
    ~ Matt

    #136352

    In reply to: Forum Page Layout

    strangelife
    Participant

    Hi,

    Your best bet would be to create a custom page template for your WordPress theme where you basically display the header and footer without the sidebar.

    Create three custom templates, sidebar, left sidebar and right sidebar, for your default page.php file in your wordpress theme make it so it doesn’t have any sidebars. Then by default bbpress will use this page to display the forum.

    #136351
    strangelife
    Participant

    You can use the following css,

    th.bbp-forum-info {
    	text-align: left;
    	width: 85%;
    }
    th.bbp-forum-topic-count, td.bbp-forum-topic-count {
    	text-align: center;
    	width: 5%;
    }
    th.bbp-forum-reply-count, td.bbp-forum-reply-count {
    	text-align: center;
    	width: 5%;
    }
    th.bbp-forum-freshness, td.bbp-forum-freshness {
    	text-align: center;
    	width: 5%;
    }

    ~ Matt

Viewing 25 results - 13,851 through 13,875 (of 32,503 total)
Skip to toolbar