Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,426 through 12,450 (of 32,521 total)
  • Author
    Search Results
  • #143690
    Stephen Edgar
    Keymaster

    This has just been fixed by the WP-E-Commerce team

    https://github.com/wp-e-commerce/WP-e-Commerce/commit/824f56a36ad18fcfed3419ee4430f52a602cae52

    It is part of the Version 3.8.14-dev version so presumably once v3.8.14 is released it will include the bbPress fix 🙂

    #143687
    Daniel Lemes
    Participant

    Sorry, this functions seems to return the topic title, not the forum title. I have ‘googled’ around and got this:

    $forum_object = get_queried_object();
    $forum_id = $forum_object->forum_id; // get the forum id, is it right?
    $forum_title = get_forum_name( $topic->forum_id ); // get forum title by id
    $forum_class = sanitize_title_with_dashes($forum_title); //sanitize

    Not working since get_forum_name doesn’t work outside bbpress (inside WordPress header). Any other idea on how get the forum title (not the topic) and use as body class on WordPress? Thank you.

    #143686
    Stephen Edgar
    Keymaster
    #143682
    Stephen Edgar
    Keymaster

    You should be using a string for permalinks category base, NOT %category%

    Eg. If you like, you may enter custom structures for your category and tag URLs here. For example, using stuff as your category base would make your category links like http://example.org/stuff/uncategorised/. If you leave these blank the defaults will be used.

    #143672

    In reply to: No toolbar available

    Liberty
    Participant

    Thank you very much for your replys.
    I made a lot to get this toolbar work. Here is a list of things I already done to solve my problem:

    • deleted every JavaScript
    • deleted the code of the functions.php file
    • deactivated every plug-in
    • changed bbpress.php to page.php
    • commented the bbPress-CSS in style.css out
    • commented parts of my bbpress.php out
    • enable the Visual Editor

    …and I changed my theme to the default “Twenty Ten” theme and the toolbar appeared. The problem is my theme but I don’t know why. 🙁

    JavaScripts are deleted and I will add header.php and footer.php files. I hope this is the solution but I don’t think so.

    #143669

    In reply to: Displaying Adsense ads

    koendb
    Participant

    Very quick response, think this or something like this would work:

    Create a child theme, copy loop-replies.php and change this part:

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>

    into:

    <?php $i=1; 
    while ( bbp_replies() ) : bbp_the_reply(); ?>
                    <?php if(1==$i or 3==$i) { echo '#adsense code#'; } ?>
                    <?php $i++; ?>
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    <?php endwhile; ?>
    #143660
    Stephen Edgar
    Keymaster

    Try making a copy of your page.php (or page-no-sidebar.php depending on your preference) simplecorp template file and name it bbpress.php

    Also keep an eye on this thread at Site5 http://www.s5themes.com/forums/topic/simplecorp-bbpress-forum/

    #143657
    Stephen Edgar
    Keymaster

    https://codex.bbpress.org/forum-settings/

    Auto Role
    Select the default role for bbPress forum members to be assigned, the roles are Keymaster, Moderator, Participant (Default), Spectator and Blocked. For full details of the permissions assigned by these roles please User Roles and Capabilities.

    I haven’t actually used S2Member so I can’t help to much here, but S2 supports bbPress and there should be something about this on the S2 site (I tried a search and mainly get results for our forums here at bbpress.org :/)

    If you are importing them ‘manually’ I would say you will have to manually assign the bbPress role, though if this is something S2 does on the fly then I presume it should also be adding the bbPress role at the same time and this would be an S2 issue.

    Also to note is that bbPress users don’t actually get the full role assigned to them until they have actually logged into the site.

    #143655

    In reply to: No toolbar available

    Stephen Edgar
    Keymaster

    I can’t see anything obvious that is wrong….

    Your not using the latest jQuery, your using v1.10.2, you should be using v1.11.0

    I would double check your code in any functions.php you are using for your theme, make sure you are using bbPress v2.5.3.

    I’d also suggest strip out all the JavaScript (stickUp.js etc) and the jQuery bits as @Lynq wrote above and get back to an extremely basic header.php, footer.php and bbpress.php (or index.php, page.php etc) and verify everything is working then add back your JavaScript bits one at a time.

    #143651
    Cal23
    Participant

    I have created a forum through bbpress for an existing website and am experiencing 20-40 second page load times for only the forum pages, the rest of the site works fine. There are no posts yet, there are 14 forums with maybe 2-3 topics per forum. I have tried using caching plugins and programs like benchmark and profiler to determine what is slowing it down, but can’t find anything. I am not really familiar with code, but can do some basic things.

    Any ideas on how to speed it up?

    Thanks!

    #143642
    Robin W
    Moderator

    ok, you could try just using a separate page for bbpress.

    Create a file called bbpress.php in your theme folder

    Add the following code to the bbpress.php file

    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    

    If you need a sidebar add

    <?php get_sidebar(); ?>
    

    before the footer line

    See whether that works for you.

    #143640

    In reply to: No toolbar available

    Liberty
    Participant

    Hello Stephen,

    I added this code in my functions.php file and got two button but the toolbar is still not working:
    dhfdth

    I have only 2 plug-ins. bbPress and Aqua Verifier. I already deactivated the Aqua Verifier plug-in to see if the plug-in could cause the problem but it doesn’t. I think the problem is my theme I have created for my site but I can’t find an mistake in my code. I would be really glad if you could take a look on my code: http://snippi.com/s/r6mpul7

    #143639
    Center11Forward
    Participant

    Hi Robin,

    Thank you for the prompt reply.

    Issue 2 is resolved with your code.

    As far as issue 1 goes – I disabled all plugins and it did not resolve the issue. So I went ahead and enabled twentyfourteen and it resolved it – Unfortunately that is not much good to me, as I need to continue using the theme I bought from Themeforest.

    The theme authors general attitude when you post any issue with an external plugin is that they basically don’t care as its not directly related to in-built theme functionality or ‘we haven’t tested that with our theme so can’t comment on your issue’.

    With the above in mind, could you suggest some way I could debug the issue myself and try to resolve it?

    #143636
    Robin W
    Moderator

    On issue no. 1

    the &#039 is the code for a quote mark ie the ones either side of this ‘word’

    so something is displaying rather than interpreting this.

    Not sure why, could ebe a plugin or theme issue

    try

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    come back and let us know if that helped.

    On your issue no. 2, bbp-foums class does the overall border

    	.bbp-header, .bbp-forums   {
    	
    border-top: 1px solid #EEEEEE !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    }

    fixed it on my test site

    Center11Forward
    Participant

    Hey,

    Two hopefully small issues I’d appreciate some help to resolve.

    1. Screenshot to display issue:
    https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Strange%20Search%20Results.png

    In the above screenshot, I searched for Duleek using the bb-press search widget.

    As you can see the characters £#039; appears before and after the search term on the results. page. Any idea how to resolve that?

    2. Screenshot to display the issue:
    https://dl.dropboxusercontent.com/u/70814425/BB%20Press/BBPress%20Rounded%20Corners%20Issue.png

    I am trying to implement a simple border-radius css setting on the BB-Press forums. To achieve that I used:

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: 92px 50% no-repeat rgba(65, 66, 64, 0.941176);

    The issue is that the light grey border (border: 1px solid #eee;) surrounding the entire forums continues to appear in the top left and right corners – That kind of defeats the purpose of the ’rounded corners’ feature.

    I can use border:none; and that removes the border from the forums – But I dont want to do that, I only want to remove the border from the top left and top right corners of the forums header… I tried combinations the following and it doesn’t work:

    .bbp-header {
    border-top: none !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    }

    Any idea on what to try?

    Thanks.

    #143612
    Robin W
    Moderator

    you can add a modal login which looks prettier than the wp-admin

    viz

    Layout and functionality – Examples you can use

    #143610
    Robin W
    Moderator

    Ok, I see you also posted on their support page, which was going to be my next suggestion.

    Since your code is on a local server, I obviously can’t take a look.

    So now let’s try.

    Create a file called bbpress.php in your theme folder

    Add the following code to the bbpress.php file

    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    

    If you need a sidebar add

    <?php get_sidebar(); ?>
    

    before the footer line

    See whether that works for you.

    #143606

    In reply to: Forum Question

    Robin W
    Moderator

    There is no reason that you shouldn’t use the main theme APART from the danger that on an update of the theme you’ll lose the changes. But as you’ve done changes, you have that risk now with your existing changes, and hopefully have a note of them ! As long as you keep a copy of the functions file, you should be able to just add this code to the theme’s functions file at the end.

    If that doesn’t work, come back, and I’ll cut the code into a plugin for you, but would prefer not to do that if I don’t have to (time!)

    #143600

    In reply to: Forum Question

    kdumas123
    Participant

    Hi Robin,

    I got stuck on your step: “Then drop this code into your (child)themes functions file.”

    I haven’t been using a child theme. I looked up directions on how to create a child theme for the theme I’m using but when I activated that child theme, it removed all the customizations I have made to the template using the template’s layout features and built in Custom CSS area.

    http://para.llel.us/support/tutorials/making-an-incentive-child-theme/

    After searching Incentive’s forum some more, I saw this post:

    It’s up to you and will depend on how you intend to use the theme. I don’t usually setup a child theme until it becomes necessary.

    I’ll offer this word of caution. The way Incentive stores its data under a unique identifier based on the theme name, any theme specific settings will not show up in a child theme created after you’ve already started customizing. This means if you start building your site and create 20 custom layouts then later add a child theme you won’t see those layouts in the child theme admin. Each theme has its own set of data so it’s possible to have several installs of Incentive on one site with different settings. It’s not typical for a theme to do this but we find it much safer because it ensures you don’t get data crossover, ever, when there is another install of the theme on the same site.

    What I’m saying, in a very long and complicated way is, if you think there is a chance you’ll need a child theme at some point, create it now and start working that way from the beginning. 🙂

    So, now I’m thinking I can’t do what you want me to do… Any suggestions?

    #143588
    Robin W
    Moderator

    ok, I think you might need to change a parameter.

    Try the following filter in your functions file

    function bbp_increase-forums-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 150 );
        return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forums-per-page' ); 

    Come back and let us know if that worked.

    #143585

    In reply to: max 50 forums ?

    Robin W
    Moderator

    “The problem is, there is no template-tags.php”

    It was renamed to just template.php

    bbpress/includes/forums/template.php

    However you should be able to use the following filter in your functions file, just amend the 100 to whatever you want

    function bbp_increase-forum-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( '_bbp_forums_per_page', 100 );
        return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase-forum-per-page' );
    
    #143564

    In reply to: No toolbar available

    Stephen Edgar
    Keymaster

    If you want to enable the Visual Editor you should use the code from the codex:

    Enable Visual Editor

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    Also make sure you have no other plugins causing a conflict.

    #143559
    Stephen Edgar
    Keymaster

    Someone else here has done the import/conversion when using wp-united, here it is, should be some good tips for you: https://bbpress.org/forums/topic/phpbb3-import-incomplete-and-switches-authors/

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

    Stephen Edgar
    Keymaster

    It is a theme issue… Though I expect you knew that was coming 😉

    You might be able to find some more info for ‘other’ bbPress Atahualpa issues via:
    http://forum.bytesforall.com/search.php?searchid=749383

    With all that said, I was terrified looking at this theme, it seems that it doesn’t use WordPress Template Hierarchy and overrides/creates it’s own templates and far too many options for my liking.

    Create a new file named bbpress.php in your theme folder \wp-content\themes\atahualpa

    Add the following code to the bbpress.php file and you should be good to go:

    
    <?php
    /**
     * bbPress wrapper template.
     */
    
    get_header(); ?>
    
    <?php while( have_posts() ): the_post(); ?>
    
    	<?php the_content(); ?>
    
    <?php endwhile; ?>
    
    <?php get_footer(); ?>
    
    #143557
    Stephen Edgar
    Keymaster

    bbPress uses WordPress’s user profiles code, so any new fields you add to the dashboard profile (with a plugin or otherwise) should be mirrored in the theme. If you need an easy GUI to create profile fields, try BuddyPress.

    There are a bunch of examples on how to do this with WordPress. Follow those instructions and you should be fine.

Viewing 25 results - 12,426 through 12,450 (of 32,521 total)
Skip to toolbar