Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,201 through 25,225 (of 32,468 total)
  • Author
    Search Results
  • #73260
    Ben L.
    Member

    Unfortunately, there are a lot of functions in the code that are 1.0-specific.

    Fortunately, WordPress 2.8 is being released in May, and I can’t see bbPress 1.0 being far behind.

    #73243
    Ben L.
    Member

    Okay, I’ve found the problem.

    Go to line 634 (it should say function bb_attachments_recount($post_id=0) { // update topic icon flag and sync attachment count for topic given a post_id)

    Right under that, add global $bb_attachments; on a new line.

    gmrtech
    Member

    Amazing. Fixed :) Thanks!

    Ben L.
    Member

    First of all, if you already had members on the forum that aren’t on the blog, integration will lose them.

    I suggest going into your database and running DELETE FROM bb_topicmeta WHERE meta_key=wp_table_prefix LIMIT 1 to remove the integration.

    #73071
    Ben L.
    Member

    I only partially understand the question. Do you want to add a last class to the last forum on the page?

    #73161

    In reply to: Frightmare Haunt Forum

    cldnails
    Member

    Interesting niche, good luck. Although, out of the box bbPress isn’t very scary looking. ;)

    #73199
    _ck_
    Participant

    Early in the morning on a shared box may mean your provider doesn’t know what they are doing and is not running the daily backup in “nice” mode, therefore overloading the server.

    Either that or you might have a misbehaving neighbor.

    bbPress doesn’t naturally cause that kind of problem, unless you are running an older alpha which uses more queries – and some of my plugins like hidden forums had a bug in a previous version that caused extra queries – you only used 10 queries so I think you are running 0.9

    If you know what you are doing, even on a shared host you can run a simple PHP program with cron checking the load every minute – the moment it starts to spike, say over 3.0, you can have it email you “ps aux” which will show you which neighbor is misbehaving, even on a shared host.

    See this:

    bb_init = 0.178 <<<


    bbpress’s core is completely loaded at this point,

    plugins, everything the amount of time is okay and acceptable – 50 to 100 files have been loaded

    bb_index.php_pre_db = 4.966 <<<—- this is kind of a lie, it’s not pre-db, there have been some queries…

    so in 4.5 seconds or so, here’s what’s been done:

    $forums = get_forums();
    $topics = get_latest_topics();
    $super_stickies = get_sticky_topics();

    it’s actually loaded all the forums and gotten the latest topics

    It’s using about 8-9 queries so 4.5 seconds is absolutely terrible, almost impossible if the server is working correctly.

    If your page time is normally under 1 second for that part, here’s what I think is happening.

    I think your host is running a backup at that hour OR one of your neighbors on the same box is doing a remote backup to/from the server, including mysql.

    That ties up the cpu and ties up mysql because the disk is thrashing and mysql is not caching at all.

    To prove my theory, see if it happen every day at the exact hour.

    Even more suspect would be if it happens on the hour or half hour.

    By the way, why do you assume it’s “your” mysql connections that have been exhausted – it’s actually the entire server’s pool on a shared host. I suspect you have a misbehaving neighbor who is accidentally making you think it’s you that’s the problem.

    #54704

    WooHoo! A plugin accomplishing that has been just released:

    https://bbpress.org/plugins/topic/wordpress-latest-post/ <— in plugin repository

    http://www.atsutane.net/2009/04/wordpress-inside-bbpress-part-1.html <— author’s blog with more info on usage

    Tested it and it works well on WP 2.7.1 and bbPress 0.9.4 :)

    #60227
    phishshticks
    Member

    if you edit the php file, you can manually specify your code where you see ‘##-#######-#’

    #73248
    johnhiler
    Member

    Yah I definitely agree! You have to be pretty computer literate to use bbPress… and there isn’t great support, other than us volunteers.

    But it’s like that quote from Churchill: “Democracy is the worst form of government except all the others that have been tried.”

    bbPress is the worst message board software ever – except for all the others I have ever tried. :-)

    #7817
    petertoshas
    Member

    Hellooo!

    Well, i recently change to bbpress (this rocks) and i’m trying to make a theme compatible with the current theme in my wordpress blog. It went pretty well, until i came across the post-form to create a new topic and i’m in blank…

    Let me explain: i’m using the theme kakumei, and instead off the hottags on the left, i’m going with a sidebar with other features (tags, the ‘fav this’ feature, link to main forum, etc…). This works well in the front-page, in the topic, profile, and other, but i’m having some problems put this working in the post-form.php !

    The way i use to style was: the sidebar in <div id=sidebar></div>, and the content (infobox, post, topic meta, etc) in <div id=”content”></div> just like the kakumei theme.

    My problem with the post-form.php is the function that is used in the functions.bb-template to the ‘pre_post_form’ and ‘post_post_form’. Using the <div id=”content”></div> in the post-form.php the <div> actually appears in the middle of the code of the form in the post-form and the content dont stay aligned. Putting the <div> in the functions.bb-template, just makes the <div> repeating in the others pages where the post-form is used, and the content dont stay aligned anyway.

    i’ll really appreciate if you could suggest me some ideas. tks :)

    #73247
    Cyndy Otty
    Participant

    I suppose this is a matter of opinion, really. Granted it’s not the most user-friendly software out there and it can be much more complex to customize, but it is also a project that is in development and such things do take time to perfect.

    However for what it is – a no-frills, basic forum software – it is actually exactly that right from the start. :)

    #73246
    bruinfelix
    Member

    Youre right! ;-)

    #73238

    In reply to: Admin Post Anything

    chrishajer
    Participant

    I’ve never used that plugin, but I think it works by just not filtering what an admin enters in a post. So, you would probably need to put the whole embed code from Youtube.

    What have you done and what happened when you did it?

    #73234

    okay I just deleted the forum and plugin and reinstalled. The plugin did not activate automatically as it is supposed to by having a leading underscore. When I activated it manually I got the fatal error again.

    I can not get this plugin activated it seems… :/

    #73233

    I haven’t done any kind of integration. I just have the two things installed in the same home directory and then tried to make this plugin work. My wordpress is using a theme as I set it up before the bbpress but I did not do anything with bbpress, it is a clean install.

    The site is temporarily at http://www.alwaysbeenagypsy.com/thefashionstudent/

    and http://www.alwaysbeenagypsy.com/thefashionstudent/forum/

    (though I am playing a lot with it so it may or may not be up if you try)

    I’m wondering if maybe I got some of the keys wrong, would that do it?

    In the documentation it says to use the “secret key” from the wp-config file but there is no secret key so I guessed which one sounded the most like it could be a secret key. The keys are:

    AUTH_KEY

    SECURE_AUTH_KEY

    LOGGED_IN_KEY

    NONCE_KEY

    I have seen other forums that integrate with wordpress but to be honest I like the simplicity of this one, the others have way too much shit in them so I hope I can figure out how to get this working! :)

    #73236

    In reply to: Installation Error

    johnhiler
    Member

    It sounds like your server is using PHP4?

    https://bbpress.org/forums/topic/warning-cannot-yet-handle-mbcs-in-html_entity_decode

    If you upgrade to PHP5, it should work! :-)

    #7807

    I downloaded the latest release of bbPress. I uploaded all the files/folders to my site. I even deleted them and uploaded them again to see if it fixed it. I get to the install screen and when I click “let’s get started” I get the following error about 200 times.

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

    #73229
    bruinfelix
    Member

    3. Is it possible to use WordPress blog’s header on bbPress (Replacing forum header with blog’s header) without integration?

    Yes, it is possible. I did it for my own website, and i dont experience any kind of performance problems (yet).

    4. Page Views is not appearing in the forum menu. How to fix that?

    There’s a plugin for that …

    And for the rest i must say. Use the search button more often, there’s a whole world of answers on youre questions, just throwup a searchphrase, and you will be amazed what you could find ;-)

    #73207
    _ck_
    Participant

    Please ask such questions on the page for the plugin itself, don’t start a new topic.

    I monitor the plugin RSS daily, the main forum section not as much.

    there are two places in the plugin where it says

    bb_current_user_can('administrate')

    change administrate to moderate

    bb_current_user_can('moderate')

    #73192
    cnymike
    Member

    Well as it turns out, there wasn’t really a plugin to do what I wanted so I dug into the code and commented some stuff out. It has effectively removed the Add a Topic capability and is just what my client needed.

    #6635
    cnymike
    Member

    I have installed bbpress for a client who does not want users to be able to add a topic.

    Although I would like to see that as an option in settings, it is not, so I guess I have to get my hands dirty in the php files. OK fine.

    So I’ve found and commented out the code in the forum.php and front-page.php files which contains the link to add a topic as so….

    ‘ <th><?php _e(‘Topic’); ?> <!–—–> <?php // new_topic(); ?></th>’

    But to my dismay, I also see that a user can add a topic when they click on a Forum “Main Theme” title. The page they are taken to has a huge “New Topic in this Forum” area. I don’t want that and can’t quite figure out what file and what code I need to delete to get rid of that.

    Help please?

    #6634
    mechamecha
    Member

    Hello,

    I’ve noticed I have some queries that are performing slowly:

    SELECT t.* FROM bb_topics AS t WHERE t.topic_status = ‘0’ AND t.topic_sticky = ‘2’ ORDER BY t.topic_time DESC LIMIT 30

    The index the db is using is forum_stickies which is a composite index of (topic_status, forum_id, topic_sticky, topic_time)

    THe problem is since the query thats created doesn’t include forum_id, mysql is not able to utilize the composite index completely and performs an additional filesort which slows the performance of the query.

    To fix this, I can either create a new index that doesn’t include the forum_id field OR somehow force the code to include the forum_id conditional in the query. I only have one forum and I only plan on having one forum per a database.

    I can hack the code, but I suspect there is a setting somewhere that can fix this issue. Any ideas?

    Thanks!

    #72144
    bruinfelix
    Member

    I’ve also have installed these plugin, to show a image in a posting, and i must say .. Works perefect! ;-)

    #73180
    johnhiler
    Member
Viewing 25 results - 25,201 through 25,225 (of 32,468 total)
Skip to toolbar