Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,926 through 15,950 (of 32,519 total)
  • Author
    Search Results
  • The URLs do follow the same structure as WordPress, exactly actually.

    Keep in mind that WordPress has never needed to have a mixed post-type URL structure, except for the case of attachments (which don’t really count.)

    None of the words in the URL are ‘useless’ since they’re all indicative of where the content lives.

    bbPress and WordPress are designed to allow those with specific needs and wants to customize the codebase, and contribute the changes they needed up-stream to the parent project. If this is something multiple people would like, I suggest you group up and build it. If it works, and more people want it, we absorb it into bbPress core.

    Boom. :)

    #114373
    Lynq
    Participant
    #114364
    Jim R
    Participant

    It would be super if there was a way to have layout options. :-)

    How tough would it be to port over the layout? Is the code similar enough in terms of functions?

    Pixeldrum
    Member

    Now I am getting confused. I could have sworn that I replied to your post John a few days ago… but I don’t see it.

    Here it is again then, my apologies, I didn’t mean to transgress a forum convention. Still, if at all possible, I’d like some direction as to how I can block access via direct URL to user profiles. From user profiles someone can track back to posts attributed to the user and use and post via that ‘back door’.

    I have bbpress installed and protected (I thought) behind the membership wpmudev.org membership plugin and want the forum area available for specific members only including the profile information. What files need to be customized to make this possible?

    I can block posts and content in pages with short-codes from the membership plugin, but I don’t know where I would place those within the structure of bbpress. Is there a way, please? I am not a coder, but have friends who are I just need to be pointed to the files that are involved in getting this done. Thanks for ANY help with this matter.

    #114246
    LabSecrets
    Participant

    You posted what appears to be the bbPress functions.php, which is not what I would need to see. I would need to see the functions.php from myriad parent, child, or perhaps any includes that have the function below:

    In sum: your myriad parent has a function, on line 24 of the header.php

    <body class="<?php mysite_body_class(); ?>">

    This function (mysite_body_class()) is what is generating the body class tags. It needs to be modified to allow for the creation of the necessary bbPress body tag for pages that contain bbPress.

    #114001
    #114244

    Can you replace your big code-dumps with links to pastebin, or some other place? Thanks! :)

    #114332
    Lynq
    Participant

    You will probably need to add a counter to check if it is the first reply, something like this:

    <?php i == 0; ?>

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <?php if(i == 0) { ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post'); ?>>
    <?php } else { ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>
    <?php bb_post_template(); ?>
    <?php } ?>
    <?php i++; ?>

    <?php endforeach; ?>

    #114242
    AAShepAA
    Participant

    Spence – I really do appreciate you trying to help me on this.

    I am using a child theme >themes>>myriad-custom with myriad being in the same directory. There is no header.php in the child theme but this is the content of the header.php of “mother” theme myriad:

    <?php

    /**

    * Header Template

    *

    * @package Mysitemyway

    * @subpackage Template

    */

    ?><!DOCTYPE html>

    <!–[if lt IE 7]> <html class=”ie ie6 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>

    <!–[if IE 7]> <html class=”ie ie7 lte9 lte8 lte7″ <?php language_attributes(); ?>> <![endif]–>

    <!–[if IE 8]> <html class=”ie ie8 lte9 lte8″ <?php language_attributes(); ?>> <![endif]–>

    <!–[if IE 9]> <html class=”ie ie9 lte9″ <?php language_attributes(); ?>> <![endif]–>

    <!–[if gt IE 9]> <html> <![endif]–>

    <!–[if !IE]><!–> <html <?php language_attributes(); ?>> <!–<![endif]–>

    <head>

    <meta charset=”<?php bloginfo( ‘charset’ ); ?>” />

    <title><?php mysite_document_title(); ?></title>

    <link rel=”profile” href=”http://gmpg.org/xfn/11&#8243; />

    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />

    <?php mysite_head(); ?>

    <?php wp_head(); ?>

    </head>

    <body class=”<?php mysite_body_class(); ?>”>

    <div class=”multibg”><div class=”multibg”></div></div>

    <div id=”body_inner”>

    <?php mysite_before_header();

    ?><div id=”header”>

    <div id=”header_inner”>

    <?php mysite_header();

    ?></div><!– #header_inner –>

    </div><!– #header –>

    <?php mysite_after_header();

    ?><div id=”content”>

    <div id=”content_inner”>

    <?php mysite_before_main();

    ?><div id=”main”>

    <div id=”main_inner”>

    <?php mysite_before_page_content(); ?>

    As far as the setup pf bbPress – it is standard – all of the >plugins>bbPress>bbp-themes>bbp-twentyten “contents” copied over to the child theme of myriad-custom.

    I hope that helps you enough to help me :)

    Grateful!

    Shep

    #114241
    LabSecrets
    Participant

    To make your forums full width, please add this to css:

    .right_sidebar #main { width: 100%;}
    .right_sidebar #main_inner {margin-right: 0;}
    .right_sidebar #content {padding:10px;}

    The bigger issue, unfortunately, is that you don’t have the proper body class (the way you setup bbPress on this theme) to allow you to limit these css modifications to only bbPress pages. So these mods will apply on ALL pages of your site. This is the ideal way to ensure your mods won’t effect other template pages.

    To get around this small issue, you should add some logic to your header.php to generate the proper class which you can then prefix on to your css above. For example, when done properly, you would have css of:

    body.bbPress .right_sidebar #main { width: 100%;}
    body.bbPress .right_sidebar #main_inner {margin-right: 0;}
    body.bbPress .right_sidebar #content {padding:10px;}

    and this would limit all your styling to only bbPress pages. I don’t see any other body class tags that are limited to bbPress pages which we could use ;-(

    Since I cannot see your header.php or functions.php, my guess is that you have some logic in there now which is generating the body classes, but filtering out the native .bbPress class (I can’t tell from outside how you setup your bbPress installation)

    See: https://img.skitch.com/20120703-8m1xdyam239qxprwrfenry4qtk.jpg

    Cheers!

    Spence

    http://labzip.com

    http://labsecrets.com

    #114343
    LabSecrets
    Participant

    First suggestion:

    I would add this css to give your topic title some breathing room:

    th.bbp-forum-info {width:50%;}

    Cheers!

    Spence

    http://labzip.com

    help@labsecrets.com

    #114063

    In reply to: Magazine Basic

    LabSecrets
    Participant

    We have turnkey child-themes that make it simple to get bbPress, BuddyPress and WooCommerce running beautifully on your site. If you want some help, drop us a line at help@labsecrets.com.

    It is possible, with some CSS and minor PHP experience, to make bbPress look great on just about every theme ;-)

    Cheers!

    Spence

    http://labzip.com

    #46512
    billa3
    Member

    Hello,

    I’m using the standalone bbpress 1.1. I want to make a little modification to hide the thread replies from the non-logged users. So, the non-logged users can see only the very first post but can not see the replies to the topic. How can I do that?

    I tried to remove following from the topic.php file in the theme, but it removes the first post as well. I’ll appreciate any help.

    Code:
    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id=”post-<?php post_id(); ?>”<?php alt_class(‘post’, $del_class); ?>>
    <?php bb_post_template(); ?>

    <?php endforeach; ?>

    #114319

    look in the code, or in the settings menu

    #114122
    html_guru
    Member

    Is there somewhere to download a file of version 2.1? I see the code on the download page, but no folder that I can just copy and paste.

    #114276
    enderandrew
    Participant

    I do think bbPress was setting the posts to Pending before putting them through moderation, but this may not be a bbPress bug.

    I’ve been trying most any troubleshooting step I can find.

    I turned off EnableSendfile in Apache, and every forum post has come through successful since then. But since the issue was intermittent and only a few people are testing the forums right now, it’s hard to tell.

    http://httpd.apache.org/docs/2.0/mod/core.html#enablesendfile

    My memory utilization is still pretty high, but I cranked down my Apache settings considerably (using recommended settings for a 256MB VPS on my 2GB VPS) and I turned off eaccellerator in PHP as well.

    If I get a few more successful test posts from users, then I’ll close the ticket in Trac.

    Memory utilization could really be any bad piece of PHP code on my site, and I’m not sure where that is coming from yet. But if no one else reports it, then my case is anecdotal.

    #46269
    marizka
    Member

    I have a WordPress (v 3.4.1) site with a custom theme. I have my permalinks set to %postname% and my navigation is hard coded with relative urls (<a href="about">About</a>)

    I have installed bbpress (v 2.0.3) and everything works great until I try to leave the forum page. From the forum page, when I click on any link in the nav, it adds /forum to all my urls resulting in a 404 error.

    In the bbpress settings I have unchecked the “Prefix your forum area with the Forum Base slug (Recommended)” option, and that did not fix it.

    Any help would be appreciated as this site is due to a client by the end of today and I don’t want to use a different Forum plugin.

    #114275
    enderandrew
    Participant

    If I’m reading this correctly, it does like bbPress can put the posts in pending status.

    Here is an Apache error log cranked up to debug level when it happened.

    http://pastebin.com/gF23AQXy

    /** Topic Moderation ******************************************************/

    $post_status = bbp_get_public_status_id();
    if ( !bbp_check_for_moderation( $anonymous_data, $topic_author, $topic_title, $topic_content ) )
    $post_status = bbp_get_pending_status_id();

    #112850

    In reply to: "start new" link

    Create a WordPress page, and use the new topic shortcode: [bbp-topic-form]

    #114302

    Probably out of memory. Both bbPress and BuddyPress are large plugins. Loading up all that code takes resources that your host may not have. If you deactivate one ore the other, does everything come back up?

    #46174
    mememe123
    Member

    I already have Buddypress installed on my wordpress theme. After I install bbpress, I can’t access my dashboard anymore. When I click on dashboard I get this message:

    Server error

    The website encountered an error while retrieving http://www.


    . It may be down for maintenance or configured incorrectly.

    How do I fix this?!

    #46144
    Zephyr
    Member

    Good Day,

    Please forgive me for being a complete Village Idiot in regards to WP + bbPress…

    I am working on a 2nd site, it’s in development right now. I have BuddyPress installed and inactive, bbPress 2.1 RC 2 installed and active (working well so far, I might add).

    I am also using the Custom-Community-Pro theme by ThemeKraft because the young lady that will manage this site is even more clueless than I am and needs the easy CSS updates this provides.

    Per the below (copied in the text I’m referring too at bottom of post), I thought with 2.1 we no longer needed to make child themes, etc., for bbPress to match our WP theme. Am I missing something (most likely)? Do I need to still create a child theme or follow the other directions below on making bbP match my site seamlessly?

    Again, my apologies if this has been addressed elsewhere…

    Thanks and Regards ~ Alisa

    Codex Home → Theme Compatibility

    As of 2.1, bbPress has built-in theme support. All required elements such as front-end editing are included. This means that all functionality will work, even when a theme has no specific bbPress coding.

    All bbPress compat can be overridden using a theme or another plugin. Check bbp-theme-compat template wrappers for what a normal theme should include.

    To customize bbPress::

    Create a new directory within your theme root called ‘bbpress’ for example: wp-content/themes/YOURTHEME/bbpress

    Copy any files from bbPress/bbp-theme-compat/ to the new directory within your theme

    Edit the new files for complete control over bbPress display in the theme

    You can completely disable the included front-end elements by adding the following to your theme’s functions.php:

    add_theme_support( ‘bbpress’ );

    #114281
    Jarret
    Participant

    Yep, always a good idea to make a backup :)

    #114280
    RT77
    Member

    Ok Awesome Thanks Dude ;)

    Will make a backup just in case though..

    #114260

    In reply to: Getting error

    Jarret
    Participant

    You need to increase the memory limit for PHP as it is being exhausted from a script.

    https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Viewing 25 results - 15,926 through 15,950 (of 32,519 total)
Skip to toolbar