Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,676 through 26,700 (of 32,481 total)
  • Author
    Search Results
  • #68512

    In reply to: Error on logging out

    _ck_
    Participant

    This happens because there was a bug in early bbPress 1.0 alpha where it does not handle a blank query OR your HTACCESS file is missing a way to handle empty topics names.

    Edit your .htaccess file and add these two rules to the bottom of the rule list (before </ifmodule>)

    RewriteRule ^topic(|/)$ /forums/ [R=302,L,QSA]
    RewriteRule ^forum(|/)$ /forums/ [R=302,L,QSA]

    Note that you have to change /forums/ to the base of your forum path, whatever it might be if it’s not forums. ie. /discussions/

    /community/

    whatever, etc.

    #68517

    In bb-settings.php I changed the line that excluded some PHP errors (error_reporting(E_ALL ^ E_NOTICE);) to error_reporting(E_ALL); hoping to see something in /myforumdir/error_log

    I’ll keep looking for the switch.

    #4185

    I read earlier in this post where _ck_, chrishajer et al weighed in on what may generate a bbPress error.

    I am increasingly running into the standard Your attempt to do this has failed message, which is better than browning-the-internet but not as good as ice-cream.

    From a user perspective, my issues appear to be form related, as I only step in it once I click on it, haha.

    The plugins are used by others with dissimilar complaints ;) This points to my environment (patch level etc.)

    If it’s the blend of bbPress + plugin, I’d like to be in the position to start beating on errors with my hammer.

    And there’s the rub: to find the errors. I am bereft of grok.

    #68109

    Minor gotcha’? The bbPress blog must have XML-RPC enabled in it's settings I was going to install this to take a peek but I see someone suggested that their site hung. I’m on this ice with my host (WPMu :D )and can’t risk it just now…

    I remember that there was much drama trying to authenticate with Flikr API via XML-RPC… It required a .htaccess file at the domain root with: `<Files xmlrpc.php>

    SecFilterInheritance Off

    <Files>`

    Of course, the ‘Use XML’-thingy setting in the WP Admin/settings needs to be enabled too…

    Fingers crossed…

    I must say that I’m afraid of my shadow when it comes to turning off security filters to get something to work, especially since there was a recent thread on these forums about deleting that file altogether!

    #52824

    I’m not sure if this worked but …

    I added in the standard Plugin header to the bad-behavior-generic.php file (see below) and then copied it and the rest of the bad-behavior folder up to bbPress. It turned on. I’m trying to sort out how to hack the wordpress plugin. I’m running the same DB for wp and bb so, in theory, this should work easily. It’s not ;) Fatal errors.

    /*
    Plugin Name: Bad Behavior
    Version: 2.0.24
    Description: Deny automated spambots access to your PHP-based Web site.
    Plugin URI: http://www.bad-behavior.ioerror.us/
    Author: Michael Hampton
    Author URI: http://www.homelandstupidity.us/
    License: GPL

    #4184

    Topic: Beernews.org Forums

    in forum Showcase
    beernews
    Member

    No integration yet, just a lot of plugins from CK (I hope this guy is on the Automattic payroll!) and others..should make a donation probably ;)

    This board is for craft beer (or ‘microbrews’ which is a term the mainstream still uses but is dead in our world).

    Beernews. org Forum

    I should probably start a noobs forum for people that are interested and want to find out more about these higher end beers.

    #68107

    I am passably decent at arrays, but when I toss in <?php bbpress_live_get_topics(); ?> or anything, I get no data at all. Not even a splorg of unsorted data (which at least would give me an idea of what I need to do). Frustrated me enough that I just gave up. I tried every method I know of to print an array, and I don’t even get an error message.

    An example of ‘Make a bullet list of the recent posts’ would be nice to help people get started.

    #50459

    In reply to: Google sitemap

    macgeekco
    Member

    i also have the same problem with version 09.02

    <url>

    <loc>://</loc>

    <lastmod>2008-09-02</lastmod>

    <changefreq>monthly</changefreq>

    <priority>0.0625</priority>

    </url>

    What can i change, in order to be validate by google webmaster tools

    #60779

    In reply to: PHPBB3 Converstion

    yazerty
    Member

    It seems not to work for my phpbb3 board :(. Perhaps the 13000 messages are for something in this… ?

    If you succed, tell us bryan868 :) !

    And will passwords be “ok” ?

    #68479

    I think you can fix that in your bb-config.php file by overwriting.

    Under define('BB_LANG', '');

    Add in this: $bb->wp_table_prefix = 'wp_';

    #68463

    No, I’m not using it yet, and likely won’t. It’s cool, though, just outside my scope :)

    (I’m totally digging on this vanilla forum, with a total lack of features I never use!)

    #65965

    Yeah, I like that. I guess a template option for show/supress child fora would be better. Then you could use that db option…

    I’m still choosing templates but will work on it.

    This is what I had based on _ck_’s snippets:

    The theme’s front-page.php just after the forum list titles:

    </tr>
    <?php $forum_id = 0; //musnake: supress child fora: https://bbpress.org/forums/topic/hiding-subforums-subforums-from-subforum-pages#post-20150 ?>
    <?php $forum_parent=$forum_id; //musnake ?>
    <?php while ( bb_forum() ) : ?>
    <?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { //musnake ?>

    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class=num><?php echo $GLOBALS['forum']->views; ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php } //musnake ?>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    That theme didn’t have the breadcrumbs I wanted, so after much searching (including PHPXref!) I found this: which gets put in your theme’s forum.php:

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> <?php bb_forum_bread_crumb(); ?></h3>

    Hope that helps. Thanks All.

    Oh, just to be clear, the //musnake are to point out where the changes are, not to claim any credit!

    #68489

    In reply to: Hiding subforums

    _ck_
    Participant

    You mean not list them in the main list?

    (not actually completely hide them)

    The same approach should work in 1.0 as 0.9

    I showed the exact code to do it in a topic around here somewhere.

    Hiding subforms on your home page

    https://bbpress.org/forums/topic/hiding-subforums-subforums-from-subforum-pages#post-17436

    #68174

    In reply to: Second Page Gone!

    _ck_
    Participant

    Ah you have the exact situation I had made a note of in the back of my mind but had not made a fix for yet because I didn’t think it would be common – bb-attachments is like a page access for every image load because it loads bbPress. You have so many images, it’s trigging the “too fast” feature.

    I haven’t addresses that yet. You can turn off the ban feature by setting these to zero:

    $mini_track_options['ban_speed'] = 0;
    $mini_track_options['ban_pages'] = 0;

    #62618

    In reply to: TalkPress

    beernews
    Member

    Been a few months. Where does one keep up with the developments (other than the trac/code stuff which I dont understand)?

    #67237
    Tom Lynch
    Participant

    Please, can some one help, this is still not working and no one seems to be helping I have no idea what to do or who to ask but here as its the bbpress code that is at fault.

    #68459

    Ok,

    I added the following:

    <IfModule mod_security.c>
    <Files admin-ajax.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    to this file:

    mydomain.org/forum/bb-admin/.htaccess

    This fixed the issues. I can add fora with the sexy yellow flash and all.

    Security people, does this tear a hole in the universe?

    Please advise!

    #64728
    kunia
    Member

    I have my answer :

    file : bb-include>template-fonction.php

    search : “bb_allowed_tag”

    Include :

    // Add Tags with allow_tags
    <p> function allow_more_tags( $tags ) {<br />
    $tags['p'] = array('style' => array());<br />
    $tags['span'] = array('style' => array());<br />
    $tags['b'] = array('style' => array());<br />
    $tags['em'] = array('style' => array());<br />
    $tags['ol'] = array('style' => array());</p>
    <p> return $tags;<br />
    }</p>
    <p> add_filter( 'bb_allowed_tags', 'allow_more_tags' );

    under this…

    // format=list or array( 'format' => 'list' )<br />
    function get_allowed_markup( $args = '' ) {<br />
    $args = wp_parse_args( $args, array('format' => 'flat') );<br />
    extract($args, EXTR_SKIP);</p>
    <p> $tags = bb_allowed_tags();<br />
    unset($tags['pre'], $tags['br']);<br />
    $tags = array_keys($tags);</p>
    <p> switch ( $format ) :<br />
    case 'array' :<br />
    $r = $tags;<br />
    break;<br />
    case 'list' :<br />
    $r = "<ul class='allowed-markup'>nt
    <li>";<br />
    $r .= join("</li>
    nt
    <li>", $tags);<br />
    $r .= "</li>
    nn";<br />
    break;<br />
    default :<br />
    $r = join(' ', $tags);<br />
    break;<br />
    endswitch;<br />
    return apply_filters( 'get_allowed_markup', $r, $format );<br />
    }

    #55709
    kunia
    Member

    Hello, I have the same probleme as csseur3. When I publish content with TinyMCE, markers re encoding like text and not as html…

    The code produced is <p><b>exemple</b></p>

    How can we fix that?

    Thanks 4 help !

    #68458

    Absolutely no response. Not even a twitch…which does smell like an ajax problem. Hence, the .htaccess fix for the e.g. from WP where my ajax won’t work unless it’s exempt from that apache mod.

    Do you know which file and what permission would be involved?

    Thanks.

    G’Night!

    Elements
    Index Id Name Type Value Label Size Maximum Length State
    0 fieldset
    1 forum-name forum_name text Forum Name:
    2 forum-desc forum_desc text Forum Description:
    3 forum-parent forum_parent select
    4 forum-is-category forum_is_category checkbox 1 Forum is Category:
    5 order-nonce hidden c2ee0a0be6
    6 _wp_http_referer hidden /forum/bb-admin/content-forums.php
    7 _wpnonce hidden d5944257a4
    8 _wp_http_referer hidden /forum/bb-admin/content-forums.php
    9 action hidden add
    10 Submit submit Add Forum ยป

    #68457
    eagano
    Member

    @musnake

    Does the page respond at all when you click ‘Add Forum’? Does it refresh and do nothing? Or does the page not even refresh? And you are able to do all the other admin tasks?

    If you just click ‘Add Forum’ with no input you should get the red error message box below the add form with “An unidentified error has occurred.”.

    There are at least two nonces for security and quite a few hidden fields that need to be there. Here’s what I’m seeing:

    <p class="submit">
    <input type="hidden" name="order-nonce" value="beb39845e6" />
    <input type="hidden" name="_wp_http_referer" value="/bb-admin/content-forums.php" />
    <input type="hidden" name="_wpnonce" value="84424fd1b7" />
    <input type="hidden" name="_wp_http_referer" value="/bb-admin/content-forums.php" />
    <input type="hidden" name="action" value="add" />
    <input name="Submit" type="submit" value="Add Forum »" tabindex="13" />
    </p>

    I’m wondering if the HTTP POST is happening with no result, or if the submit is not even working. If you don’t get any error message when you click submit, it’s probably an ajax problem.

    #68455

    Just to be clear, guys: I’m working on a WP2.6.2 site, not the WPMu version…

    @eagano: I hear you man. I did as you suggested and I made sure /wp-admin/options.php matched as well.

    I’m using FF3 and the error console shows only warnings generated by the theme’s CSS (doesn’t like the asterisk in declarations: Kakumei 0.01 theta-beta by Bryan Veloso)

    I’m not using Google Gears to cache anything.

    @Ipstenu: I linked to the cookiefix in the first post. Now that you both pointed out that it’s a WPMu-specific fix I have removed it from the WP code. Did you mean a link to the test site?

    I appreciate you looking into this.

    Is there some sort of trace I can place on the submit button? A setting I can toggle to make it/something verbose?

    Cheers.

    #68436
    eagano
    Member

    Ooops – please see my conversation with Donncha in the ticket above.

    The short story: defining COOOKIEHASH as md5(get_option(‘site_url’)) will work for the main blog but not any other blogs if you are using VHOST (subdomains).

    There is a fix/hack: calculate the md5 hash of your domain, and use that value to define COOKIEHASH.

    define('COOKIEHASH', md5('http://yourdomain.com');

    No subdomains, no trailing slashes, will work fine.

    You can also get this value from bbPress speedup settings, found at Settings, WordPress Integration, and the bottom of the page.

    $bb->authcookie = 'wordpress_biglonghashvalue';
    $bb->secure_auth_cookie = 'wordpress_sec_biglonghashvalue';
    $bb->logged_in_cookie = 'wordpress_logged_in_biglonghashvalue';

    In your wp-settings.php,

    define('COOKIEHASH', 'biglonghashvalue');

    #4174

    I’m about this close to making my new forums live. I’ve got WP 2.6 and bbPress alpha tied in together pretty well, but they recently announced the lockdown on 2.7, which means that may come out by years end.

    Has anyone started testing with 2.7 yet? I’m not asking if I should not go forward and get my forums started, just wanted to know what kettle of worms I was opening ;)

    #68453
    eagano
    Member

    musnake –

    One thing you could try, which seemed to get everything working for me. Copy the hashes/salts directly from your wp-config.php file and prefix each one with BB_. Might be excessive, but seems to work for me.

    define('AUTH_KEY', 'blah');
    define('SECURE_AUTH_KEY', 'blah');
    define('SECURE_AUTH_SALT', 'blah');
    define('LOGGED_IN_KEY', 'blah');
    define('SECRET_KEY', 'blah');
    define('SECRET_SALT', 'blah');
    define('LOGGED_IN_SALT', 'blah');

    becomes:

    define('BB_AUTH_KEY', 'blah');
    define('BB_SECURE_AUTH_KEY', 'blah');
    define('BB_SECURE_AUTH_SALT', 'blah');
    define('BB_LOGGED_IN_KEY', 'blah');
    define('BB_SECRET_KEY', 'blah');
    define('BB_SECRET_SALT', 'blah');
    define('BB_LOGGED_IN_SALT', 'blah');

    I just couldn’t get the descriptions in bbPress setup page to match all the keys in wp-config.php, so I copied them all over in a brute-force cop out. I am on a subdomain install, not folder, so this might not help.

Viewing 25 results - 26,676 through 26,700 (of 32,481 total)
Skip to toolbar