Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,026 through 26,050 (of 32,481 total)
  • Author
    Search Results
  • #55958

    In reply to: Show off your Forum !!

    ganzua
    Member

    Nice one Tiago, very inspiring, thanks for showing :)

    #70791

    In reply to: PHP usage poll

    _ck_
    Participant

    Sam, I can already tell you that from my 5000 site survey.

    This data is from mid-October 2008

    PHP Popularity


    4.2 : 1

    4.3 : 249

    4.4 : 1088

    5.0 : 41

    5.1 : 261

    5.2 : 2464

    unknown : 700+

    or in finer detail:

    4.2.2 => 1

    4.3.0 => 1

    4.3.2 => 4

    4.3.3 => 3

    4.3.4 => 7

    4.3.8 => 6

    4.3.9 => 115

    4.3.10 => 51

    4.3.11 => 62

    4.4.0 => 12

    4.4.1 => 23

    4.4.2 => 29

    4.4.3 => 13

    4.4.4 => 85

    4.4.5 => 4

    4.4.6 => 32

    4.4.7 => 191

    4.4.8 => 414

    4.4.9 => 285

    5.0.3 => 1

    5.0.4 => 32

    5.0.5 => 8

    5.1.1 => 3

    5.1.2 => 39

    5.1.3 => 1

    5.1.4 => 17

    5.1.5 => 4

    5.1.6 => 197

    5.2.0 => 183

    5.2.1 => 79

    5.2.2 => 51

    5.2.3 => 121

    5.2.4 => 171

    5.2.5 => 537

    5.2.6 => 1318

    5.2.8 => 4

    unknown : 700+

    I will be updating the survey next month and I expect the sites to double.

    (If you really need me to, I guess I can rush the survey update earlier)

    #55956

    In reply to: Show off your Forum !!

    tiago-s
    Member

    HEAVILY modded forum warning. I only use bbPress because of the WordPress integration, and I want it as close as possible to other forums, so I did this (with only amateur self-learned skills):

    http://nocontinues.net/forum/

    Feel free to use it as reference, but it’s like nothing I’ve ever seen done in bbPress. Like, at all. And not only the looks, functions too. I’m especially proud of the support of bbcode, including nested

    Quote:
    tags :D
    #70927
    chrishajer
    Participant

    It looks like you used wp_ (instead of bb_) as your table prefix, and WordPress was already installed, which means bbPress tried to install into the WordPress tables?

    By default, WordPress uses these tables (in 2.7):

    wp_comments

    wp_links

    wp_options

    wp_postmeta

    wp_posts

    wp_terms

    wp_term_relationships

    wp_term_taxonomy

    wp_usermeta

    wp_users

    And bbPress uses these in the alpha version:

    bb_forums

    bb_meta

    bb_posts

    bb_terms

    bb_term_relationships

    bb_term_taxonomy

    bb_topics

    bb_usermeta

    bb_users

    bbPress 0.9.0.* versions used different tables:

    bb_forums

    bb_posts

    bb_tagged

    bb_tags

    bb_topicmeta

    bb_topics

    bb_usermeta

    bb_users

    And when you integrate, bbPress uses the wp_users and wp_usermeta tables instead of its own bb_users and bb_usermeta.

    #64487
    chrishajer
    Participant

    I just validated the feed for one of the pages for this forum, and it came back as valid. The data format looks the same to me. I noticed in your date, there is a character missing from “Friday”:

    <pubDate>Fr, 02 Jan 2009 10:57:20 +0000</pubDate></blockqoute>

    This date format is correct for RFC 822 from a Linux command line:

    [~/ch/bbpress]$ date -R

    Mon, 05 Jan 2009 10:12:42 -0500

    So, I think there is just some problem with your date function, missing the “i” in Friday, or you typed incorrectly instead of pasting, and the missing “i” is just a typo.

    #70912
    chrishajer
    Participant

    That is correct. Here are the moderator capabilities from bb-includes/capabilities.php:

    'moderator' => array(
    'name' => __('Moderator'),
    'capabilities' => array(
    'moderate' => true,
    'participate' => true,
    'manage_tags' => true,
    'delete_topics' => true,
    'close_topics' => true,
    'stick_topics' => true,
    'move_topics' => true,
    'view_by_ip' => true,
    'edit_closed' => true,
    'edit_deleted' => true,
    'browse_deleted' => true,
    'edit_others_tags' => true,
    'edit_others_topics' => true,
    'delete_posts' => true,
    'throttle' => true,
    'ignore_edit_lock' => true,
    'edit_others_posts' => true,
    'edit_favorites' => true,
    'edit_tags' => true,
    'edit_topics' => true,
    'edit_posts' => true,
    'edit_profile' => true,
    'write_topics' => true,
    'write_posts' => true,
    'change_password' => true,
    'read' => true
    )),

    You could add the permissions you for your moderator there, but it’s generally a bad idea to modify a core file. You probably want a plugin to modify the capabilities for your moderators. I didn’t see one specifically for that, but I did notice this plugin was added yesterday.

    https://bbpress.org/plugins/topic/bbpress-moderation-suite/

    #68465
    WarrenScott
    Member

    bbpress 0.9.0.4 and wordpress 2.7 intregrate but bbpress doesn’t hanlde the roles at all. If a user gegisters through wordpress, all is good but if they register through bbpress, they get an “you don’t have permission to view this page” when they try to login to wordpress.

    I think this should be addressed asap, but as I’m ready through the forums, I see Sam or any other developer has addressed this issue at all. There are some .htaccess 301 redirects and a small code change you can make to redirect users from the bbpress registration page to the wordpress registration page, but in my humble opinion, one should not have to do this because the whole reason to use bbpress with wordpress was the fact that they intregrate.

    Bottom line…bbpress needs to update the user roles to that of wordpress user roles period.

    #4559
    calman
    Member

    Hi folks!

    Just wanted to say hello and that I am looking forward to getting into the workings of bbPress. I newly created my forum last night, so a lot of learning ahead.

    All the best,

    Cal :)

    jrobichess
    Member

    Thanks for the quick reply _ck_!

    #70759

    In reply to: List of Hooks/Actions?

    _ck_
    Participant

    There’s no official documentation or codex yet.

    A few people have done phpxref for bbpress but I find that kind of output fairly useless.

    If you have access to linux shell you can do a grep to get a function list in the template include like so (or install the grep for windows)

    grep -oe ^function.*) bb-includes/template-functions.php | sort > functions.txt

    modifying that you can also get the filters/actions

    grep -oe apply_.*) bb-includes/template-functions.php | sort > filters.txt

    grep -oe do_.*) bb-includes/template-functions.php | sort > actions.txt

    If you use the grep for windows, leave out the escapes (backslashes) or it won’t work.

    _ck_
    Participant

    Allowing iframes is a massive security issue.

    Whatever you are trying to do, you need to find another way.

    The code button is the same as backticks, it’s for placing encoded text, not actual code to execute.

    #65352
    _ck_
    Participant

    Do not use the Private Forums plugin, it has not been updated in awhile and has bugs.

    Use my Hidden Forums plugin instead. The code above is not sufficient in itself.

    jrobichess
    Member

    Is there a way to allow members to use the <iframe> tag in posts? I have downloaded and installed the admin can do all plugin and I can get it to work for me, but I would like the forum members to be able to use <iframe> also. Not sure if this is a security issue or not.

    Speaking of security, I also installed the bbcode lite plugin and the bbcode button plugin. I see there is an option for “code” there – is this any kind of security concern or is it something simple and harmless that members can use for something?

    Thanks in advance!

    #4575
    walkerevans
    Member

    So, I finally got the revamp of my site launch completed on January 1st. The “News” portion of the site is driven by wordpress, and the “Messageboard” portion is bbpress with some marriage between the two.

    We migrated from a phpbb2 install that was using phpbbfetchall for pulling “News” to the front page. I think the new set up is much better. ;)

    I’m still ironing out glitches and adding features, but I thought I’d share it here to show it off so far. We get between 10,000-12,000 unique visitors to the site per day, and bbpress is handling that traffic beautifully.

    http://www.columbusunderground.com/forums/

    #67575

    *snicker* That was so much easier. Sometimes I get stupider the more I try to code!

    <li style="list-style:none">
    <h2>Meta</h2>
    <?php global $user_ID, $user_identity, $user_level ?>
    <?php if ( $user_ID ) : ?>
    <p><?php if ( $avatar = get_avatar( $user_ID, $size = '50' ) ) : ?>
    <div style="float:right;"><?php echo $avatar; ?></div>
    <?php unset($avatar); endif; ?>
    <?php printf(__('<strong>Welcome, %1$s!</strong>'), $user_identity );?>
    <br /><?php global $current_user; ?> <a href="http://domain.net/forums/profile.php?id=<?php echo $user_ID; ?> ">Profile</a> | <a href="<?php echo wp_logout_url(); ?>">Logout</a>
    </p>
    <div style="clear:right"></div>
    <?php elseif ( get_option('users_can_register') ) : ?>

    <form action="http://domain.net/blog/wp-login.php" method="post">
    <p>
    <label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /> User</label><br />
    <label for="pwd"><input type="password" name="pwd" id="pwd" size="22" /> Password</label><br />
    <input type="submit" name="submit" value="Send" class="button" />
    <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
    </p>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
    </form>
    <p><a href="http://domain.net/forums/register.php">Register</a> | <a href="http://domain.net/forums/bb-login.php">Recover password</a></p>
    <?php endif; ?>
    </li>

    #70896
    johnhiler
    Member

    Matching the bbPress theme to your WordPress theme isn’t trivial… at first it really bothered me. But once I realized how different blogs and forums were, it made a lot more sense to me.

    The initial conversion was the hardest part. After that, little tweaks to my blog theme didn’t take that long to incorporate into my bbPress theme. But I’m getting ready to do a redesign of the blog, and am dreading converting it into a bbPress theme again. It probably won’t be that bad; it’s just inconvenient.

    Overall though, it’s been definitely worth it :-). Frankly I am liking bbPress much more than I ever liked WordPress!

    #70842
    thugzie
    Member

    I’m having an installation error as well :(

    Warning: cannot yet handle MBCS in html_entity_decode()! in /home/content/b/r/i/xxxxxx/html/xxxxxx/support/bb-includes/wp-functions.php on line 113

    #70841
    _ck_
    Participant

    This seems a great time to mention a new hidden feature in bbPress 1.0 based on a suggestion I made: “Safe Mode”

    When you don’t know why something isn’t working, one quick and easy way to prove if it’s a plugin gone wrong or not is to temporarily try “Safe Mode”

    The way to activate safe mode is to edit bb-config.php and insert

    $bb->safemode = true;

    Then your forum will temporarily switch to the default theme (which you should never have tampered with) and disable all plugins, temporarily.

    When you are done testing, remove the line from bb-config.php

    This is far easier than deactivating 20+ plugins, one at a time and then having to activate them again.

    #70836

    Not sure if this is new since alpha5 or not, but on a fresh install the auth key seems to die when there is a quotation mark " in the key.

    Basically a WP key like

    define('SECURE_AUTH_KEY', '-"r642fed3E1d>}MdGFlh@tR!QPU%/!S_6;CjO0}^>6TclyZM9mEKqEn+ <?)3 U#*X;');

    Ended up like

    define('BB_SECURE_AUTH_KEY', '-');

    This actually messed up the installer at one point too, displaying part of the key inside an area where it wouldn’t normally.

    Should I trac this Sam?

    #70882
    _ck_
    Participant

    We could make another query to delete usermeta where the id doesn’t appear in wp_users.

    I’m not crazy about deleting rows entirely but I guess it could not hurt if the user id # never gets reused, which mysql should not do.

    Definitely do a backup first.

    This will show all “orphaned” usermeta:

    SELECT user_id,meta_key, umeta_id FROM wp_usermeta
    LEFT JOIN wp_users ON user_id=ID
    WHERE ID is NULL

    so delete the wp_users rows first using the first query and then delete the orphaned usermeta

    #70835
    _ck_
    Participant

    Thanks for the fix Sam.

    What’s really scary is the code it replaced.

    I can’t believe what I was seeing – did they really build the $table on EACH and EVERY call instead of making it static? That’s some serious non-performance thinking.

    I mean just look at it, ugh:

    function htmlspecialchars_decode( $str, $quote_style = ENT_COMPAT ) {
    $table = array_flip( get_html_translation_table( HTML_SPECIALCHARS, $quote_style ) );
    $table = array_merge( array( ''' => "'" ), $table, array( '&' => "&", '&' => "&" ) );
    return strtr( $str, $table );

    on EVERY call it builds $table?

    Well it’s gone now so I guess that’s what counts.

    I hope the error catching routine doesn’t slow things down too much.

    Personally I am waiting for PHP 5.3 to finally “upgrade” from PHP 4

    It won’t be worth it until then.

    #70831
    _ck_
    Participant

    Okay instead of commenting it out, do this instead

    error_reporting(0);

    #70875

    I opened that a half a month ago :) But thanks, _ck_! It works now. I updated my ticket but … why isn’t it picking that up from the default template?

    #70830
    wordpressfan
    Member

    I commented-out the error_reporting line in the “stable” 0.9 download and still get this installation error:

    Warning: cannot yet handle MBCS in html_entity_decode()! in /xxx/xxx/xxx/xxx/forum/bb-includes/wp-functions.php on line 113

    Can someone put together a working version of bbpress for download?

    #70874
    _ck_
    Participant

    No you miss the point that both are put into the template so the ajax can hide or unhide the link as necessary depending on the post status.

    But older themes without the two classes above will never hide the alternate link by default. So they both show.

    There will be hundreds of questions about this now.

    Put these two classes into your style.css

    #thread li .undelete-post, #thread li.deleted .delete-post { display: none; }
    #thread li.deleted .undelete-post { display: inline; }

    and it should fix.

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