Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,676 through 26,700 (of 32,466 total)
  • Author
    Search Results
  • #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.

    #68433
    eagano
    Member

    musnake –

    I think this must be a big source of the problem for MU and getting it to work with bbPress. And why some get integration to work (standalone) and other can’t (wpmu).

    In the WP standalone install, it does indeed appear to be there (is that where you got the code above?).

    In WPMU 2.6.2 (https://mu.wordpress.org/latest.zip) wp-settings.php, line 317:

    // Used to guarantee unique hash cookies
    $cookiehash = '';
    /**
    * Used to guarantee unique hash cookies
    * @since 1.5
    */
    define('COOKIEHASH', '' );

    $wpdb->hide_errors();
    if( defined( 'MUPLUGINDIR' ) == false )
    define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );

    if( is_dir( ABSPATH . MUPLUGINDIR ) ) {
    if( $dh = opendir( ABSPATH . MUPLUGINDIR ) ) {
    while( ( $plugin = readdir( $dh ) ) !== false ) {
    if( substr( $plugin, -4 ) == '.php' ) {
    include_once( ABSPATH . MUPLUGINDIR . '/' . $plugin );
    }
    }
    }
    }

    Want to know the funny part? I actually debugged it instead of going to the source in WP standalone. At least I came to the same conclusion. This should probably be reported as an MU bug – I’ll let Donncha know.

    #68449

    Ok, I just reinstalled using seperate db’s this time (+WP integration). The installation process is very, very smooth with good feedback at every stage.

    Again, I believe the install was successful.

    Cache cleared etc. but numb ‘Add Forum’ button issue persists.

    I am using the same filebase (with no PHP errors in logs) though.

    The only blank spot I have in the install is:

    >>>>>> WordPress "secure auth" cookie salt not set. which appears to be an acceptable state based on the doc’s.

    The 6 session cookies are all suffixed with COOKIEHASH.

    I am unable to create new fora as keymaster or Admin.

    Can I provide any useful data?

    #68432

    Hey eagno,

    In WP2.6.2 wp-settings.php line 297…

    Doesn’t this block of code get executed whenever one is not installing, i.e. usually. Isn’t COOKIEHASH usually generated?

    if ( ! defined('WP_INSTALLING') ) {
    // Used to guarantee unique hash cookies
    $cookiehash = md5(get_option('siteurl'));
    /**
    * Used to guarantee unique hash cookies
    * @since 1.5
    */
    define('COOKIEHASH', $cookiehash);
    }

    #68427

    It’s in a couple places

    In the profile.php, obviously, there’s the bit for managing them. Also in topic.php there’s a lot of code checking to see it a topic is your favorite.

    I suspect on topic.php you could comment out this:

    <li<?php echo $class;?> id="favorite-toggle"><?php user_favorites_link(); ?></li>

    And then on profile.php comment out this:

    <p><?php printf(__('You can also <a href="%1$s">manage your favorites</a> and subscribe to your favorites’ <a href="%2$s"><abbr title="Really Simple Syndication">RSS</abbr> feed</a>.'), attribute_escape( get_favorites_link() ), attribute_escape( get_favorites_rss_link() )); ?></p>

    That’s all theory, mind.

    #68448

    Caught wearing my underwear on the outside. It doesn’t make me immune to cosmic cookie rays?

    This was a cherry install so I didn’t have any experience with bbPress and its issues etc. The ‘add forum’ button issue existed before I added the quick fix…I found it on my first pass through the support forums trying to see how other WP2.6 success stories started out…

    Did I mention that I have the bbPress files located in a subdomain called ‘forum’ i.e. mydomain.org/forum/ ?

    I’ve just gone through the phpbbb vs SMF review again, just so I can get something going while these small things get cooked off, but I think I’ll stry bbPress as a stand-alone in its own db and integrate later…Do you see any drama with that path?

    I just noticed that I didn’t add the SECRET_KEY value from wp-config.php (sic) to wp-settings.php as per a comment in that file…but it turns out that’s an artifact. Strike that.

    These are some of the cookies that FireBug reports:

    wordpress_logged_in_f004625b18565e7c579076261d01b3a5
    myDomain.org 105 B /forum/ Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /wp-content/plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /wp-admin Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/my-plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/bb-plugins Session

    wordpress_f004625b18565e7c579076261d01b3a5
    myDomain.org 95 B /forum/bb-admin Session

    wordpress_test_cookie
    myDomain.org 36 B / Session

    I’m checking…

    #60775

    In reply to: PHPBB3 Converstion

    yazerty
    Member

    Oh, it seems this will take a very long time to have a convertor for phpbb 3 :'(.

    Is there another way to convert a phpbb 3 to bbpress (tutorial ?) :) ?

    #4171
    eagano
    Member

    I have seen lots of posts with folks having trouble getting integration to work. I am on 2.6.1 and 1.0-alhpa-2 and I have everything working with no problems.

    The one gotcha that I found that I have not seen mentioned: COOKIEHASH in the wp-settings.php file. It currently ships empty in WP, and probably most people left it blank like me:

    define('COOKIEHASH', '' );

    The hash is calculated in bb-settings.php:

    define('BB_HASH', $bb->wp_cookies_integrated ? md5($bb->wp_siteurl) : md5($bb->uri));

    Since bbPress is hardcoded to use an MD5 hash of the domain appended to all cookies (when you are integrating), you need to have the matching hash appended to your WP cookies.

    The hash is added to the cookie to make it unique, like

    wp_logged_in_user_3ffce08ac7419977b5ab9d68969a4cd0

    To fix this to match bbPress, set it up like this in wp-settings.php:

    define('COOKIEHASH', md5(get_option('siteurl')));

    Or even better calculate it once to avoid the get_option overhead and hard code it.

    define('COOKIEHASH', '3ffce08ac7419977b5ab9d68969a4cd0');

    Bonus points for anyone who can guess the hash above. Yes, it’s md5 and one-way, but on this forum, the answer should be pretty obvious.

    The form of the url passed to md5 should be ‘http://mysite.com&#8217; with no trailing slash.

    One more cool thing: I do not allow registration on the support forum, only through the main WP site. In order to enable posting in the forum from the moment of signup, add a plugin in you mu-plugins directory containing the following:

    function enable_forum_new_user( $user_id )  {
    update_usermeta($user_id, 'bb_capabilities', array('member' => true));
    return;
    }
    add_action('wpmu_new_user', 'enable_forum_new_user');

    Now your users can hit the forum and post the second they click their confirmation email. Cool, huh?

    #68376

    In reply to: Problem deleting posts

    but in reality, administrators should be deleting the whole topic, not the only post in that topic. When you delete the only post of a topic, what are you expecting to be left over?

    Yes, it’s a case of user-error finding a bug that should be caught. The code should say ‘hey, this is the only post, he must mean delete topic’ and move on, or the ‘delete post’ option shouldn’t even be there if it’s the only post in a topic. You’re both right :) Code should know better, user should read more (and FWIW, I made the same error when I was testing bbpress).

    #68379
    nekita
    Member

    Nice concept.

    I’m away from WoW for 2 years now but it’s interesting to see that people still raid Naxxramas. ;)

    #4168
    assbear
    Member

    How do I remove the option ‘Add this topic to you favorites’ from the topic.php page?

    I’ve been digging through the bbPress scripts for two days now –

    but I just can’t seem to locate the code creating the html for this feature.

    Please help, the bbPress Forum is awesome, but I really need to disable this feature.

    regards the AssBear

    #68411

    In reply to: Page 63 of 1

    chrishajer
    Participant

    This is sort of interesting in your footer too:

    1949 posts in 139 topics over 473 months by 26 of 23 members.

    #68375

    In reply to: Problem deleting posts

    chrishajer
    Participant

    I don’t think the problem is with deleting a whole topic when there’s only one post in it. The problem as I understand it is that when deleting the only post in a topic, this error occurs.

    I just verified that this occurs on a trunk installation (r1794) if you try to delete the only post of a topic.

    Warning: Invalid argument supplied for foreach() in /homepages/46/d93980635/htdocs/trunk/bb-includes/functions.php on line 527

    That was my point a couple posts ago. bbPress should handle this, or remove the option to delete the post if it’s the only post on a topic, but in reality, administrators should be deleting the whole topic, not the only post in that topic. When you delete the only post of a topic, what are you expecting to be left over?

    The post is gone, and the thread no longer shows up in the front page forum list, but I think bbPress or the administrator could be smarter about how to accomplish what we’re really trying to do here.

    #65321
    Burt Adsit
    Member

    @createiveherb , @xlarge

    function modifyTopicLabelClosed($label) and

    function modifyTopicLabelSticky($label) need their sprintf substitutions changed from $1%s to %1$s

    ‘<img src=”$1%ssupport-forum-$1%s.png”…

    should be

    ‘<img src=”%1$ssupport-forum-%2$s.png”…

    for all 4 substitutions.

    @xlarge you might have gotten a quicker reply with kinder words. :D

    Burt

    #68296
    Sam Bauers
    Participant

    @bharatk

    There was a syntax error in the code you copied from the other topic. I’ve edited it there if you want to grab it again.

    #4158
    stormbasiat
    Member

    I installed BBForums to my site and installation went fine ;) I gone to http://mbrogs.sc11.co.uk/forum/ and it’s just a blank page.

    Any ideas?

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