bobbyh (@bobbyh)

Forum Replies Created

Viewing 25 replies - 51 through 75 (of 93 total)
  • The easiest way is to find and install an existing theme that exists for both WordPress and bbPress. For instance, K2 for bbPress is similar to the WordPress default theme. Here are some bbPress themes for you to check out.

    joneywalker4u, to remove the hyperlinkification of URLs for text inside of code tags, you could write a plugin that removes the filter that hyperlinkifies URLs for the entire post, and then create a new filter that splits the post into strings-enclosed-by-code-tags and strings-not-enclosed-by-code-tags, apply the filter that hyperlinkifies URLs to the strings-not-enclosed-by-code-tags, and then glue the strings together.

    This is totally doable, but it seems like a lot of work, which is why I suggested the CSS approach…

    Can you just use CSS to style links so they look just like your text.? If so, something like this might work (obviously modify this as appropriate for your theme):

    .post code a, .post code a:link, .post code a:visited {

    color: #9c0;

    text-decoration: none;

    font-size: 8pt;

    font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono;

    color: #000;

    }

    try this then:

    .post code {overflow:scroll;}

    Change the attribute for overflow of the relevant class to like:

    .post {overflow:scroll;}

    This also happens to me! However, I’ve never looked into it…

    I just looked, and bbPress uses newlines to indicate breaks. This is parsed into <p>’s by a filter upon display. However, the edit textarea shows the unparsed text with just the newlines, and this gets mangled by tinymce.

    If you set this tinymce config value, though, it will turn newlines into br’s, which should fix this problem for new posts:

    * http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/convert_newlines_to_brs

    I just tested this, and it works on new posts! (It won’t work on old posts…)

    Try this (inserted into the code I had above):

    <?php if ( ( $i == 0 ) && ( $page == 1 ) ) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

    You said: “I also tried adding this to the rewrite-rules.php”. That’s unnecessary. You just need to add those lines to your htaccess file, which should contain the contents of the page located at http://www.lifeclever.com/forums/bb-admin/rewrite-rules.php. Did you add those lines to your htaccess file?

    Can you post a link to your site?

    Chris, I did disable plugins, but I hadn’t wrapped the Email Notifications plugin function call with a function_exists wrapper, so my active theme stopped working when I did so. I then oh-so-intelligently reasoned that this plugin couldn’t be the cause of the problem, so I moved on…

    I couldn’t just disable all plugins and test with a default theme because of the existence of private forums. Finally, I moved the database to a private test server (and used a HOST file) and went through all the plugins carefully one-by-one until the problem was fixed.

    Let my idiocy be a lesson for others: wrap your plugin function calls with function_exists wrapper! :-)

    I wanted the forum-specific URLs to look like this:

    * http://boards.weddingbee.com/board/beehive

    If you make the right edits to that core file and an htaccess file, I think the URL can be anything you want…

    In reply to: Reply Bug

    gerikg, I found your site and looked at a sample page. The href of the “log in” link is as follows:

    http://kiaspeed2.com/forum/bb-post.php&quot; enctype=&quot;multipart/form-data&quot; hack=&quot;bb-login.php

    It should just be this:

    http://kiaspeed2.com/forum/bb-login.php

    The text of this href comes from function post_forum inside /bb-includes/template-functions.php. Did you do a core hack of this function? If so, reversing it should fix your problem. Otherwise, one of your plugins has screwed up this function and it needs to be disabled…

    Lookfab, here’s a slight tweak to the default kakumei topic.php theme file that should do what you want:

    <ol id="thread" start="<?php echo $list_start; ?>">

    <?php $i = 0; ?>

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>

    <li id="post-<?php post_id(); ?>"<?php if ($i == 0) { echo 'class="firstpost"'; } elseif !($i % 2) { echo ('class="alt"'); }?>>

    <?php bb_post_template(); ?>

    </li>

    <?php $i++; ?>

    <?php endforeach; ?>

    </ol>

    You can then style the class “firstpost” using CSS to make it stand out however you want…

    I didn’t test this, but I think it should work either by itself or with a tweak or two.

    I did something similar, but it required a core hack. I renamed the second “forum” to “board”. It required two steps:

    1. With version 0.8.3, I modified line 363 of /bb-includes/template-functions.php to this:

    $link = bb_get_option( 'uri' ) . "board/" . $forum->$column . ( 1 < $page ? "/page/$page" : '' );

    2. I created an htaccess file by copying the text from /bb-admin/rewrite-rules.php, with two extra lines:

    RewriteRule ^board/(.+)/page/([0-9]+)$ /forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^board/(.+)/?$ /forum.php?id=$1 [L,QSA]

    Thanks Chris! All my PHP scripts were OK (no syntax errors), but eliminating one more possible cause is always helpful. :-)

    It turns out that this Email Notifications plugin (https://bbpress.org/forums/topic/plugin-post-notification?replies=44) was causing the problem. After disabling that plugin, there are no “delays in posting” and there is never a 500 error. There must be a scaling problem with the plugin that started after the tables hit a certain size…

    Thanks again for your help, Chris! :-)

    In reply to: Page Bug

    citizenkeith, can you post a link to your site?

    Thanks for thinking about my problem, Chris! :-)

    I don’t understand the problem either… I’m sure the PHP errors are being logged. I just triple-checked my httpd.include file, and it has this line: ErrorLog /var/www/vhosts/weddingbee.com/statistics/logs/error_log. This is the location that I’ve been looking for the PHP errors. There are other PHP notices/errors from this boards subdomain (mostly from bots looking for non-existent Front Page files), but nothing about this error.

    In the access_log, I do see lines like this:

    74.235.132.92 - - [06/May/2008:04:32:32 -0400] "POST /bb-post.php HTTP/1.1" 500 366 "http://boards.weddingbee.com/topic/second-guessing-everything" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)"

    However, that’s not what we want…

    Last night, I did some searches and found this comment on php.net which said that the two reasons for a missing error in the error_log were “(1) you did not configure error_log output in php.ini, and (2) the script has a syntax error and did therefore not execute.” However, the script does appear to be executing at least partially, because the post/comment does post. Also, if you visit the bb-post.php page (http://boards.weddingbee.com/bb-post.php) directly, the page does execute (with a die).

    I too am confused by why the POST takes such a long time. The load average for the webserver and the database server are fairly low…

    I turned off permalinks (set it to false in config.php) and the error still occurred…

    I also checked my error_log, and there is no error being logged. I’m so baffled!

    Another weird thing is that you can edit a post without any problem…

    In reply to: Categories in 0.901?

    You can just click STICK TOPIC (not “TO FRONT”) and the topic will appear only at the top of the list of posts for that forum (and not the front page).

    In reply to: Categories in 0.901?

    mrhoratio, to do what you just said, if you’re logged in as a Keymaster, you can just select this at the bottom of a post: “Stick topic (to front)]” and then click the MOVE button.

    I reproduced this error with FF, so it must just be my server. I’ll try upgrading to the latest version of bbpress and see if this fixes the problem…

    In reply to: stars next to names

    affacat, are you talking about the stars that indicate the ratings of particular plugins, e.g. https://bbpress.org/plugins/topic/unread-posts/ ?

    It would depend on how often the RSS feed is cached by the WordPress plugin.

    Good luck!

Viewing 25 replies - 51 through 75 (of 93 total)