Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,751 through 27,775 (of 32,453 total)
  • Author
    Search Results
  • #64517
    Sam Bauers
    Participant

    > but it still seems to be breaking on some minor things (like adding a topic to your favorites while logged in)

    Actually, that’s bbPress that’s broken, not your rules. Fixed in the next release :)

    #64530
    djp
    Member

    Woohoo!!! Got the PEAR-shaped workaround working.

    A guy called Rob Hartzenberg at my hosting provider wrote the plugin for bbpress that uses the PEAR mail package to allow authentication.

    All I needed to do was:

    1. download & edit the plugin file to reflect my own SMTP host, port number, username (email address) & my password;

    2. replace the last line of the bb_mail() function in “bb-includes/pluggable.php with 2 lines of code supplied in the installation instructions;

    3. Login as keymaster & activate the plugin.

    Voila!

    I will be uploading the plugin shortly as I reckon there will be people in need of this workaround as quite a lot of hosting providers require SMTP authentication.

    What a relief :)

    many thanks to everyone that tried to assist & an even bigger THANK YOU to Rob at Imaginet.

    #3275
    irr1449
    Member

    I’m using WP/BBP as a site wide CMS. It’s been really great so far thanks to the light-weightness of bbPress. I’ve really just had to hack the tables and change a little code to get the extra info in there that I want.

    The only issues I’m wondering about is how to get the user data on a non bbPress page… I need to see if the user is logged in, and then get their userId…

    Just to give you an example, I allow the user to save certain things, and I use the user id from the wp/bbpress users table. Can anyone suggest a light weight way to do this?

    #3274

    Topic: Plugin localization?

    in forum Plugins
    joerghh
    Member

    Hi there!

    Why don’t use plugin authors gettext localization as bbPress itself does?!

    I start testing plugins for the german community at bbpress.de and find out that absolutely NO plugin could be used without direct translation. That’s a pitty and I really wonder about this situation :-(

    Regards

    Jörg

    _ck_
    Participant

    bbPress 0.9 renamed the critical system email address that several plugins rely on (“admin_email” became “from_email”)

    Unfortunately many plugin authors aren’t aware of this and the old setting is completely deleted from the database, which makes any older plugin that looks for “admin_email” fail and get a blank address and don’t anticipate/test for a blank. So they blindly insert the blank address into emails which causes the emailer to either fail or bounce the message.

    A few of my plugins were affected, I just found another tonight, and there are several third-party ones still unpatched.

    You can work around this problem by putting this into your bb-config.php (anywhere on a new line)

    $bb->admin_email = 'email@your-forum.com';

    where email@your-forum.com is the same email address you use inside bbPress on bb-admin/options-general.php

    This won’t hurt anything, causes no extra load of any kind and simply allows older plugins to work without additional edits until the authors get a chance to upgrade them.

    (Just remember you “hard coded” this address if you ever change the main one for any reason. You can delete it after 1.0 is out and all plugins have upgraded. In fact the old email address will become unused after all the plugin upgrade anyway so this can’t hurt anything in practice.)

    #64471

    In reply to: IE 6 breaking tables.

    refueled
    Member

    @fokjulle,

    I am currently working on the update and I am curious to know if replacing the following helps at all?

    #main {
    font-family: Georgia, Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 13pt;
    width: 760px;
    margin: 10px auto 25px;
    position: relative;
    }

    with this:

    #main {
    font-family: arial, helvetica, sans-serif;
    font-size: 11px;
    line-height: 13pt;
    width: 760px;
    margin: 10px auto 25px;
    overflow: hidden;
    }

    Let me know. Thanks.

    #49649

    In reply to: Emoticons For bbPress?

    citizenkeith
    Participant

    Thanks for the tip. Didn’t work for me. :(

    #64516
    Jason
    Member

    I got very close, playing around with converting it on my own. I took the .htaccess file that was generated on the old server and used it to create this (placed in my lighttpd config file):

    url.rewrite-once = (

    "^/forum/([^/]+)/page/([0-9]+)/?$" => "/forum.php?id=$1&page=$2",

    "^/forum/([^/]+)/?$" => "/forum.php?id=$1",

    "^/topic/([^/]+)/page/([0-9]+)/?$" => "/topic.php?id=$1&page=$2",

    "^/topic/([^/]+)/?$" => "/topic.php?id=$1",

    "^/tags/([^/]+)/page/([0-9]+)/?$" => "/tags.php?tag=$1&page=$2",

    "^/tags/([^/]+)/?$" => "/tags.php?tag=$1",

    "^/tags/?$" => "/tags.php",

    "^/profile/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&page=$2",

    "^/profile/([^/]+)/([^/]+)/?$" => "/profile.php?id=$1&tab=$2",

    "^/profile/([^/]+)/([^/]+)/page/([0-9]+)/?$" => "/profile.php?id=$1&tab=$2&page=$3",

    "^/profile/([^/]+)/([^/]+)/favorites/?$" => "/profile.php?id=$1&tab=favorites",

    "^/profile/([^/]+)/?$" => "/profile.php?id=$1",

    "^/view/([^/]+)/page/([0-9]+)/?$" => "/view.php?view=$1&page=$2",

    "^/view/([^/]+)/?$" => "/view.php?view=$1",

    "^/rss/?$" => "/rss.php",

    "^/rss/forum/([^/]+)/?$" => "/rss.php?forum=$1",

    "^/rss/topic/([^/]+)/?$" => "/rss.php?topic=$1",

    "^/rss/tags/([^/]+)/?$" => "/rss.php?tag=$1",

    "^/rss/profile/([^/]+)/?$" => "/rss.php?profile=$1"

    )

    Most of the functionality works, but it still seems to be breaking on some minor things (like adding a topic to your favorites while logged in).

    #64515
    _ck_
    Participant

    I’ve never seen it done but the rules are fairly straightforward (just a bunch of them).

    There must be a lighttpd support area where you can submit the existing rules and ask for help converting?

    (then be sure to share the results back here ;-)

    The rules on this page for something called “serendipity” look very similar to bbPress’s rules:

    http://edin.dk/archives/34-Serendipity-on-Lighty.html

    so you might be able to use them to get an idea?

    #3268
    anjap
    Member

    I have used this tutorial to create a mo file for a plugin:

    http://weblogtoolscollection.com/archives/2007/08/27/localizing-a-wordpress-plugin-using-poedit/

    But I cann’t activate it :-(

    I have found a old topic on this issue:

    http://bbpress.org/forums/topic/how-can-i-define-a-mo-file-for-a-plugin

    But I cann’t see how to “name the mo files into our main mo file”

    So can anyone tell me how to do this

    (I’m using vers. 9.0.1)

    #64529
    djp
    Member

    Hey sambauers

    Thanks for the response :)

    I just found out that the standard php mail() function does not support SMTP authentication, and that the only way for me to rectify this problem is to either get my hosting provider to change their server settings, or some sort of workaround using the PEAR Mail package which apparently provides supporting functions useful to multiple mailer backends. It currently suppors: PHP’s native mail() function, sendmail, and SMTP.

    I will keep you posted because if my hosting provider isn’t prepared to change his server authentication requirements, this PEAR-shaped workaround may turn out to be a good one for other bbpress users with the same problem.

    Thanks :)

    #51702
    _ck_
    Participant

    Anything that used admin_email with bbPress 0.8.x has to be changed to from_email under 0.9 (I am not sure why it was necessary to break all the plugins like that but what is done is done).

    It should take a simple edit. I still get notification emails under 0.9. I believe I posted the fix on the plugin page.

    #64535
    Sam Bauers
    Participant

    If admin’s user_id is not 1, then adjust that value. Also your table may be called “wp_usermeta”:

    INSERT INTO bb_usermeta VALUES (meta_value = 'a:1:{s:9:"keymaster";b:1;}', meta_key = 'bb_capabilities', user_id = 1);

    #64422
    Sam Bauers
    Participant

    Try editing this line in your bb-config.php file.

    define('BBDB_COLLATE', '');

    .

    To this:

    define('BBDB_COLLATE', 'utf8_general_ci');

    #3266
    farkel
    Member

    If anyone is familiar with the Vanilla system, there’s a popular plugin there that basically puts in a neat little fade effect after you make a post or reply

    It’s a small detail, but it looks cool :P

    #51701

    I’ll get to it :)

    I just don’t have the time at the moment. sorry guys…

    #3260
    djp
    Member

    Hi all

    Plz help me, I’ve read everything there is to read about problem emails & have also tried installing sambauer’s bb_mail fix plugin with no luck.

    I had bbpress 0.9 installed on a previous hosting provider & the system would send out emails to new registrants without any problem.

    However, I have moved to a new hosting provider that requires authentication for the mail to be sent, and will not allow “localhost” as the outgoing mail server. Where do I find the php file that allows me to change it from localhost to a specific “outgoing mail server” domain?

    Is it even possible?

    Thanks :)

    #59414
    _ck_
    Participant

    My educated guess would be because it’s grabbing the link within the title, the plugin that alters the page count is not getting unhooked yet.

    Try adding on a new line after global $topic;

    remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit', 200);

    It’s occurred to me there might be a bug in my plugin where I don’t have that matching ,200 on the end of the same remove_action line. If I remember correctly, actions have to be unhooked with matching priority numbers to how they were added. So maybe try adding the ,200 also.

    Remember that bbPress’s “topics per page” setting must be set to the actual number of posts you want listed on a topic page.

    _ck_
    Participant

    My educated guess would be because fel64’s plugin is grabbing the link within the title, so the plugin that alters the page count is not getting unhooked yet.

    Try adding on a new line after global $topic; in fel64’s plugin:

    remove_action( 'bb_get_option_page_topics', 'bb_custom_topic_limit', 200);

    It’s occurred to me there might be a bug in my plugin where I don’t have that matching ,200 on the end of the same remove_action line. If I remember correctly, actions have to be unhooked with matching priority numbers to how they were added. So maybe try adding the ,200 also.

    Remember that bbPress’s “topics per page” setting must be set to the actual number of posts you want listed on a topic page.

    #64408
    jenz
    Member

    I figured it out and wanted to share. This code goes at the top of my forums.php file (template).

    <?php
    $forum_id = 1;
    $limit = bb_get_option('page_topics');
    $offset = ($page-1)*$limit;
    $forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id AND topic_status = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset")
    ?>

    My posts loop:

    <?php

    foreach($forum_one_topics as $topic) : $forum_one_topic_posts = get_thread( $topic->topic_id); ?>

    Works like a charm

    #64464

    In reply to: IE 6 breaking tables.

    chrishajer
    Participant

    So, when you float the discussions div over to the right, the white background is missing in FF? That’s fine, then there is a SEPARATE fix for the white background. There are two things to change in the stylesheet. This is what it should look like to have a white background and be floated properly in IE:

    #front-page #discussions {
    float: right;
    background: #FFFFFF;
    width: 590px;
    }

    And the theme author, refueled, suggested also overflow: hidden; but I didn’t try or verify that. I just did what is posted in this reply, floating it to the right for IE, then applying a background color of white to the whole div.

    #64281
    thierryyyyyyy
    Participant

    For me, mod_rewrite is the standard… I just never heard about MultiViews :(

    I begun programming php things since 5 years, even if I don’t do it professionaly

    #63048
    _ck_
    Participant

    TARGET is deprecated?!

    Throw off your shackles of validation, seriously.

    I promise you that browsers 10+ years from now will still support TARGET. I’ll take html over likely-blocked javascript code anyday. At least firefox can intercept the TARGET and open it as a tab which is the user-prefered behavior.

    fokjulle
    Member

    I’ve overwritten all my current files on the server, with the ones in that trunk code, and still nothing is fixed. My forum is here. Please have a look and tell me what is going on…

    #64391
    bobbyh
    Member

    Sweet! :-)

    Thanks, Sam!

Viewing 25 results - 27,751 through 27,775 (of 32,453 total)
Skip to toolbar