Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,976 through 16,000 (of 32,581 total)
  • Author
    Search Results
  • #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?

    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

    #46074

    Topic: Getting error

    in forum Troubleshooting

    I have installed Buddypress and enabled Forums feature in my wordpress website (using NEWS child theme).

    I’m getting following error:

    Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 122880 bytes) in /home/travels/public_html/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php on line 922

    — SoundManager 2 failed to load (security/load error) —

    soundManager.disable(): Shutting down

    soundManager: Failed to initialise.

    soundManager: Verify that ./soundmanager2_debug.swf is a valid path.

    soundManager: No Flash response within expected time. Likely causes: Loading soundmanager2_debug.swf may have failed (and/or Flash 8+ not present?), Flash blocked or JS-Flash security error.

    soundManager: Getting impatient, still waiting for Flash…

    soundManager::initMovie(): Waiting for ExternalInterface call from Flash..

    soundManager::initMovie(): Got EMBED element (created via JS)

    soundManager::createMovie(): Trying to load ./soundmanager2_debug.swf

    — SoundManager 2 V2.97a.20110123 (AS2/Flash 8), normal polling —

    Can any1 help by this??

    Regards,

    Ankur

    #46051
    AAShepAA
    Participant

    Here is the link to the page I am talking about:

    http://stratoliner.me/topic/churchnerd-org/

    However any reply or post that I make turns out the same way with the sidebar at the bottom and the page messed up.

    The only way I have been able to get any of my forums/replies to look good, has been to add the code I found here on the forums that gives me the option of not having the sidebar (sorry looked but I can find it again).

    I had to modify the base code, but it gave me the ability to do a “full-page” without sidebar. But I have to do that with each and every /page/post/topic etc.. And it really doesn’t solve the problem, because when a new reply is made – it has the same issue.

    Any help is greatly appreciated – I have been tweaking for 2 days now and this is one of the last things.

    Shep

    • This topic was modified 14 years, 2 months ago by Stephen Edgar. Reason: Removed spam topic tags

    If the theme is all you’re worried about, don’t use bbPress 1.x. It’s outdated and no longer under active development, so you’re investing in a dead-end. bbPress 2.1 can be themed to look like anything you want it to later; you’re better off starting clean with the newer engine than trying to fix up the old one because you like the paint. :)

    #113989
    Jaja..
    Member

    @Docchewbacca

    Contact your hosting-provider and ask them to upgrade the PHP memory. Give them an example of your Error and they’ll know what to do.

    http://ocaoimh.ie/2012/05/16/fatal-error-allowed-memory-size-of-67108864-bytes-exhausted/

    Those memory bumps only work if your hosting-provider let you increase this memory. If they don’t and have blocked this feature you have to contact them and ask them friendly to increase it for you.

    Most providers don’t care and help you with this problem but sometimes the very cheap M.F&#krs providers don’t and start complaining about everything that is wrong in this world.

    ;)

    Best changelog I have is in our trac. It outlines every ticket and code change since 2.0 was released.

    Thanks for your offer to help. What do you want to do? You can basically write your own ticket. If you’re familiar with IRC, you can join #bbpress on freenode; many of us idle there together to chat about what we’re working on.

Viewing 25 results - 15,976 through 16,000 (of 32,581 total)
Skip to toolbar