Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,651 through 10,675 (of 32,511 total)
  • Author
    Search Results
  • Hugo Ashmore
    Participant

    There is a hack suggested on the S2 member github thread that I would not advise using but if people do then modify a copy of the file not the core one!

    The fix suggests circumventing the template part include in content-single-topic.php calling single-topic-lead.


    @johnjamesjacoby

    The issue appears to be – in S2 members case? that the conditional check on bbp_show_lead_topic() is returning false when it was returning true, why? not sure why at the moment.

    #151894
    Kaliceos
    Participant

    Hi @stigolsen

    What you should try :
    (- read https://codex.bbpress.org/amending-bbpress-templates/ )
    – create a folder named “bbpress” in your theme’s folder
    – create a loop-forums.php file in it
    – copy+paste the content linked in loop-forums.php (click the third button just above the first line of code in pastebin.com, then use Ctrl+C to copy)
    – upload this new file in its new folder on your server

    That should be OK. Be careful when you update your theme, the loop-forums.php may be deleted.

    #151887
    dawfliz
    Participant

    I’m newbie with wordpress, where can fix this?

    View post on imgur.com

    I search in all code, but I find no way to edit size of this bar

    #151878
    stigolsen
    Participant

    Hi,

    Im a total newbie and I have the socute theme trying to integrate this code.
    I have this “socute child theme” that holds the folders : cache, woocommerce and woocommerce_2.0x.
    There are not wp-content/your-theme/bbpress/ in the child theme. So where should I put the file loop-forums.php?

    In my socute original theme I find the loop-forums.php in the following folder: wp-content\plugins\bbpress\templates\default\bbpress
    Should I remover this file from this place, edit it by removing everything that is already in that file and paste the code that you suggest? And where to put the file afterwards when I dont have the directories you are telling me about?

    And one last question:

    What should I do with the code written below “RAW Paste Data”?

    I really appreciate if some of you please can help me with this total newbie questions. It will help me have a good start with learning this.

    Thanks

    All the best, Stig

    #151866
    ernstl
    Participant

    Hi Folks,

    i had problems with the pagination on a huge bbpress installation ( fresh import from other forum software ).

    In normal cases pagination problems giving 404 on /page/2/…
    But my problem didn´t so i ended up checking everything down to server settings :-(.

    And tada! I already had

    ini_set( 'mysql.trace_mode', 0 );

    set in my php.ini, but this didn´t worked for the bbpress installtion in this case.

    So i ended up in adding the setting in the theme functions file to bring the pagination back to work.

    Hope it helps somebody 😉

    #151853
    yfnne
    Participant

    I wish to merely change the color of my website and the font sizes.

    Thank you.

    I need to have the bbpress codes so I can search for them in my code and easily alter them. I have spent hours so far searching, in vain

    #151851
    donalyza
    Participant

    Nevermind. I fixed it.

    I placed the code on my child theme functions.php file rather stated on the guide on loop-single-forum.php.

    Cheers! 🙂

    #151850
    donalyza
    Participant

    Thanks Stephen @netweb for looking on to this.

    I really wish I could say it fixed the issue apparently I’m still getting the same error. 🙁

    ( ! ) Fatal error: Cannot redeclare bbp_codex_remove_counts() (previously declared in C:\wamp\www\wp\wp-content\themes\twentytwelve-child\bbpress\loop-single-forum.php:9) in C:\wamp\www\wp\wp-content\themes\twentytwelve-child\bbpress\loop-single-forum.php on line 14

    StargateCarterPack
    Participant

    I’ve got the same problem all my topics are just gone but they are still there in the back end they’re just aren’t showing up in the front-end.

    I only updated to 4.0 and other than BBpress I don’t have much other plugins installed here’s a list:

    adminimize
    adsense-click-fraud-monitoring
    amr-shortcode-any-widget
    baw-login-logout-menu
    bbpress
    bbpress-admin-bar-addition
    bbpress-custom-css-file
    bulletproof-security
    google-adsense-dashboard-for-wp
    google-analytics-dashboard-for-wp
    inactive-user-deleter
    limit-login-attempts
    theme-my-login
    wp-user-avatar

    I do think it is a conflict with the code and the newer version of WordPress as I only updated wordpress to 4.0 and the errors started to appear.

    #151843
    BidBoxUSA
    Participant

    Here are lines 1356 – 1395 of the said file in the error message:

    /**
     * Adds ability to include or exclude specific post_parent ID's
     *
     * @since bbPress (r2996)
     *
     * @global DB $wpdb
     * @global WP $wp
     * @param string $where
     * @param WP_Query $object
     * @return string
     */
    function bbp_query_post_parent__in( $where, $object = '' ) {
    	global $wpdb, $wp;
    
    	// Noop if WP core supports this already
    	if ( in_array( 'post_parent__in', $wp->private_query_vars ) )
    		return $where;
    
    	// Bail if no object passed
    	if ( empty( $object ) )
    		return $where;
    
    	// Only 1 post_parent so return $where
    	if ( is_numeric( $object->query_vars['post_parent'] ) )
    		return $where;
    
    	// Including specific post_parent's
    	if ( ! empty( $object->query_vars['post_parent__in'] ) ) {
    		$ids    = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__in'] ) );
    		$where .= " AND {$wpdb->posts}.post_parent IN ($ids)";
    
    	// Excluding specific post_parent's
    	} elseif ( ! empty( $object->query_vars['post_parent__not_in'] ) ) {
    		$ids    = implode( ',', wp_parse_id_list( $object->query_vars['post_parent__not_in'] ) );
    		$where .= " AND {$wpdb->posts}.post_parent NOT IN ($ids)";
    	}
    
    	// Return possibly modified $where
    	return $where;
    }
    #151842
    StargateCarterPack
    Participant

    Hey there everyone,

    I’ve just registered to post this problem I’m currently experiencing which happens with the latest update of WordPress.

    The boards all work however the threads and the post in the frontend are all gone, they’re actually still present in the backend of the wp-admin but on the actual site they can’t be seen anymore.

    This only happened after the latest wordpress 4.0 update so I’m sure it has something to do with that.

    Here is a link to my website: http://sg-carterpack.com/forum/

    Thanks in advance for anyone who can assist me with fixing this as I sadly did not make a backup and the forum is our sites main focus so it’s really important for me to get this fixed asap!

    MODERATOR EDIT: Here is a copy of your content from your other post below

    I’ve already seen a couple threads but without much avail, I’m not running any plugins mentioned in that thread yet I still experience the problem after updating to WordPress 4.0

    I’ve already reverted my wordpress installation as I can’t really put the forum out for more than a day, I’m running the following plugins on my site:

    Adminimize
    AdSense Click-Fraud Monitoring Plugin
    amr shortcode any widget
    BAW Login/Logout menu
    bbPress
    bbPress Custom CSS File
    BulletProof Security
    GD bbPress Tools
    Google Adsense Dashboard
    Google Analytics Dashboard for WP
    Inactive User Deleter
    Limit Login Attempts
    Theme My Login
    WP User Avatar

    Does anyone know what plugin could be causing the problem if this isn’t a problem with BBpress?

    Yolle
    Participant

    I made a quick fix, I added this code into content_single_topic.php under bbpress/templates/default/bbpress

    <?php echo "<div style=clear></div>"; ?>
    	<?php echo "<br />"; ?>
    	<?php bbp_topic_content(); ?>

    just after

    <?php else : ?>
    
    		<?php bbp_topic_tag_list(); ?>
    
    		<?php bbp_single_topic_description(); ?>
    
    		<?php if ( bbp_show_lead_topic() ) : ?>
    
    			<?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    
    		<?php endif; ?>

    and before

    <?php if ( bbp_has_replies() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'replies' ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'replies' ); ?>
    
    		<?php endif; ?>

    It shows the content, but it is not properly formatted.
    Any other fixes?

    #151824
    Stephen Edgar
    Keymaster

    All function names need to be unique:

    See the WordPress Plugin Handbook for more details:

    Sanity Practices

    You can achieve this simple by prefixing the function names with your name: 🙂

    
    function donalyza_remove_counts() {
    $args['show_topic_count'] = false;
    $args['show_reply_count'] = false;
    $args['count_sep'] = '';
    return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'donalyza_remove_counts' );
    

    Our codex articles will need to be updated to include prefixes so there are none of these conflict, suggestion might be bbp_codex_ so that way a hint is also given where the custom function may have originated from 😉

    #151820
    donalyza
    Participant

    I was trying to follow the step by step guide to bbpress forum – part 3

    I copied the the function below and add it on line 9 of loop-single-forum.php file.

    function remove_counts() {
    $args['show_topic_count'] = false;
    $args['show_reply_count'] = false;
    $args['count_sep'] = '';
    return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );

    Then I ran my forum site and got this error.. I’m doing this locally to test.

    Fatal error: Cannot redeclare remove_counts() (previously declared in C:\wamp\www\wp\wp-content\themes\twentytwelve-child\bbpress\loop-single-forum.php:9) in C:\wamp\www\wp\wp-content\themes\twentytwelve-child\bbpress\loop-single-forum.php on line 14

    #151818

    In reply to: current in forum root

    Robkk
    Moderator

    ok i havent really messed with breadcrumbs that much i usually remove them but there suppose to show home > forums > forums i think from what i just tested on my localhost.

    since it shows the root anyway if you are already on the forum archive.

    but i did end up removing one of the forums link this weird way

    ok i dont know for sure what i did because i was basically just fiddling around so here are all of what i did

    i had this in my functions php in my own thematic child theme.

    function mycustom_breadcrumb_options() {
        // Home - default = true
        $args['include_home']    = false;
        // Forum root - default = true
        $args['include_root']    = true;
        // Current - default = true
        $args['include_current'] = true;
     
        return $args;
    }
     
    add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');
    
    add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
    
    Function change_breadcrumb_text ($trail) {
    $trail = str_replace ('No Labels Community Forum','N L C F',$trail) ;
    return $trail ;
    }

    then i removed the add_filter line for the mycustom_breadcrumb function
    so i have this now.

    function mycustom_breadcrumb_options() {
        // Home - default = true
        $args['include_home']    = false;
        // Forum root - default = true
        $args['include_root']    = true;
        // Current - default = true
        $args['include_current'] = true;
     
        return $args;
    }
    
    add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
    
    Function change_breadcrumb_text ($trail) {
    $trail = str_replace ('No Labels Community Forum','N L C F',$trail) ;
    return $trail ;
    }

    this removed one of the NLCF links in the breadcrumbs.

    i even removed the my custom breadcrumbs function and its still only shows one NLCF link…

    its weird :/

    #151811
    Learner
    Participant

    Hi !

    Using the Plugin Shortcodes Ultimate I have created tabs in my WordPress Install.

    Anyway I can do the same in bbPress ?

    As an example please see :

    Songs to Ponder Over

    the starting post has tabs and was made in WordPress.

    The replies are coming from the bbPress side and I’d like to make similar tabs in the same…

    Shortcodes Ultimate plugin doesn’t seem to be working in bbPress.

    All advise / Workabouts much appreciated. thanks !

    #151803
    Robkk
    Moderator

    I did contact them but they told me that it would be custom development and it would be outside of the scope of their support :/

    did you tell them that your topic and posts count should be beside the subforums.

    if you just told him categorized layout they might be just thinking of the way the layout is structured , like this layout in the link where the subforums are alligned up to the categories.

    http://tamrielfoundry.com/forums/

    in all seriousness you should get some support from them.

    The templates you should mess with are content-archive-forum.php content-single-forum.php loop-forums.php loop-single-forum.php

    other than that its really hard for me to help from here since its a premium theme.

    Maybe could I request for this thread to be moves to the Themes board?

    i dont really know what your saying here, but i guess like i said try to contact them, they should help you out more since its most likely the themes problem.

    #151795

    In reply to: current in forum root

    Jerry
    Participant

    Hi,

    I have additional information.

    Even if I include my home page in breadcrumbs ($args['include_home'] = true;), on the Forum Page the page title still links to itself and in breadcrumbs there is still an additional link prior to current that links to the Forum Page – itself. Everything after that in breadcrumbs is fine.

    Thank you for your time.

    Jerry

    #151785
    Stephen Edgar
    Keymaster

    Your theme is doing this:

    Look at your CSS file, line #95

    
    ul li:before {
      position: absolute;
      font-family: Arial, sans-serif;
      content: "\e98a1e";
      color: #f6cf08;
      font-size: 14px;
      line-height: 20px;
      left: 0;
      top: 0;
    }
    

    It’s inserting content: "\e98a1e"; before every unordered list element.

    You see the same issue on your about page http://bmslifttruck.com/about/

    I’d suggest contacting the theme authors, about this, it has nothing to do with any encoding issues, and p.s. any encoding issues in a WordPress world you should use UTF8 😉

    #151782
    Robin W
    Moderator

    bbp_has_topics has a ‘reset’ in it, it executes

    new WP_Query( $r )
    

    what is the loop in your sidebar?

    #151777
    Robkk
    Moderator

    2014 bbPress Survey Results

    6. Twenty-three percent of participants have not added any bbPress add-on plugins nor custom code at the time of survey. Additional research showed the majority of those who have not installed such are those who use bbPress for their own sites.

    For the rest of the participants, there are a few who mentioned that they have too many plugins in their installations to list in the survey form. For those who shared what plugins they have activated in their installations, following shows the top ten plugins which are either bbPress-specific or those with expressed support for bbPress.
    visualization of plugins used

    a) GD bbPress Attachments
    b) GD bbPress Tools
    c) bbPress Enable TinyMCE Visual Tab
    d) BuddyPress
    e) Buddy-bbPress Support Topic
    f) Custom private code
    g) bbPress – Private Replies
    h) bbPress Stay Checked
    i) bbPress Topics for Posts
    j) bbPress – Mark As Read

    Robin W
    Moderator

    this box has 3 classes allocated

    #link-modal-title
    #link-selector
    #submitbox

    so something like

    #link-modal-title,
    #link-selector,
    #submitbox {
    Background #21201f !important ;
    }
    
    

    added to your style.css should fix it.

    Come back if that is not clear.

    #151747

    In reply to: login button size

    Robin W
    Moderator

    the line for the button is

    <button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>

    so class is “button submit user-submit”

    #151745
    m1000
    Participant

    Hi!

    There is one loop on main content with topics of one tag (archive) and second loop on the sidebar:

    if ( bbp_has_topics( array( 'author' => 0, 'order' => 'DESC', 'paged' => 1, 'posts_per_page' => $number_of_topics ) ) ) :
    		bbp_get_template_part( 'loop', 'mytopics' );

    This second loop should display all global topics but it shows the same topics like the 1st loop. How to fix it?

    #151730
Viewing 25 results - 10,651 through 10,675 (of 32,511 total)
Skip to toolbar