Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,776 through 27,800 (of 32,495 total)
  • Author
    Search Results
  • #64634
    _ck_
    Participant

    gerikg, I can help you with these questions easier if you post them on the plugin page for they are related.

    in bb-signatures you can simulate an HR by changing the border-top in the CSS

    go into the admin menu plugins->signatures and look down in the CSS area and change border-top:1px solid #aaa; to whatever you’d like. If you want it thicker, make 1px, 2px or more. If you want a different color, change the #aaa to any other color.

    #3293
    gerikg
    Member

    I would like to put an HR code between the post text and the signature but I can not find it. help?

    #64626
    _ck_
    Participant

    Okay version 0.8.7 of this can now indicate forums with new posts:

    https://bbpress.org/plugins/topic/unread-posts/

    You will have to change the optional setting to true near the top of the plugin.

    It defaults to highlighting the title in blue but you can also change the css to append an icon, etc. instead.

    #64625
    _ck_
    Participant

    After some thought, it occurs to me I could make some (optional) code that would pre-check all the read topics lists for a user and see if the last topic had changed, and then build a list of forums affected.

    Interesting challenge, I might give it a shot.

    #3289
    monstr
    Member

    somehow my forum adds links to pages that do not exist. i dont understand this

    for eg (the topic hast only 2 pages):

    topic.php?id=15&page=7#post-92

    what is this? :(

    e: appears WITH and WITHOUT plugins acitvated.

    could it be a “front page topics” bug?

    #3288
    Marcoz
    Member

    Hi there!

    I just started to experiment with bbPress and will integrate it into my family’s blog installation which of course runs WordPress. :-)

    While playing around with it, I noticed some missing labels on form controls. These missing associations cause screen readers to not pick up on the right stuff to speak when focus moves to a certain textbox, combobox or the like.

    So, I went ahead and filed ticket #871 to deal with this and submitted a patch.

    If you’re interested in accessibility, I invite you to follow that trac ticket!

    Marco

    #64030
    monstr
    Member

    affact, your code is just what i was searching for. unfortunately it just doesn’t work :/

    #60762

    In reply to: PHPBB3 Converstion

    This is very important if one already got a forum but want to have a *GOOD* integration with WordPress on a new site.

    Imagine loosing 4000 users just to be able to change to bbPress. It just won’t happen and it’s a damn shame that there isn’t a converter yet. :/

    #63758

    In reply to: Content censor

    dangrey
    Member

    Any chance someone could have a look at this? It’s a small plugin so it can’t be that hard, I’d do it myself but don’t know php :-)

    #64613

    In reply to: bbpress loop

    _ck_
    Participant

    What you are asking for is very easy.

    $forums = get_forums(); gets you all the forums,

    $topics = get_latest_topics( $forum_id); will get you the topics list for any forum id. So if you looped through the forums like on the front page, just fetch the $topics after each forum in the loop.

    The formatting and page layout is the “hard” part.

    #64608

    In reply to: No SECRET_KEY in WPMU

    Trent Adams
    Member

    I would go back to the 0.8.3.1 release myself until Donncha releases the upgrade to WPMU. You can find the older release of bbpress at:

    https://trac.bbpress.org/browser/branches/0.8

    That or you have to work on the plugin to get the old md5 hashes working again. It might be easier on your users to just get the older version running again though :)

    Trent

    #64518
    Jason
    Member

    Ah, thanks :) I hadn’t bothered to go back and see if those minor things were working correctly on the old server.

    #64578
    howtogeek
    Member

    You’ll need to use the PHP functions to check the cookies… bbpress doesn’t use sessions by default.

    Also, you wouldn’t want to simply use the userid, because that would be insecure since anybody could hack a cookie with any username.

    bbPress and WP both store two cookies, the username and the encrypted hash of the password. You’ll have to use those in combination to do a lookup to the database to make sure they both match. I’d advise taking a look through the bbpress source code… it’s not terribly difficult to understand.

    The other thing you could do… you could create a plugin / hack for bbPress to assign a session parameter after a successful login, which you could then check for in your other code.

    #64577
    irr1449
    Member

    I don’t have the code infront of me right now, but is it just going to be something like

    $_SESSION

    And then that would give me the userId which I could then query the users table with?

    #64472

    In reply to: IE 6 breaking tables.

    fokjulle
    Member

    Yes, that seems to have worked. :-)

    howtogeek
    Member

    I wrote my own replacement plugin for the mail function that uses the Swift Mailer PHP class to call sendmail directly, which should provide better performance over the built-in php mail functions.

    It also gives the the chance to assign a display name to the email address so it comes through as “bbPress Support Forum” instead of just “forum@bbpress.org”.

    if ( !function_exists('bb_mail') ) {
    function bb_mail($to, $subject, $content, $headers=''){

    require_once('PATH_TO/Swift/lib/Swift.php');
    require_once('PATH_TO/Swift/lib/Swift/Connection/Sendmail.php');

    $swift =& new Swift(new Swift_Connection_Sendmail("/usr/sbin/sendmail -bs"));
    $from = new Swift_Address("noreply@mysite.com","My bbPress Forums");

    $message =& new Swift_Message($subject, $content);
    if ($swift->send($message, $to, $from)) {return true;}
    else{ echo "Message failed to send to ".$to." from ".$from;}
    $swift->disconnect();
    }
    }

    To use this, you’d have to download Swift from their site and put it where it’s included in the above code.

    http://www.swiftmailer.org/

    You could also modify it to connect to an external SMTP server (even the Gmail server, for instance) by changing the Swift_Connection part above using this guide:

    http://www.swiftmailer.org/wikidocs/v3/connections/smtp

    #64531

    Since bb_mail() is in pluggable.php, it can be completely replaced by a plugin without having to modify any core files.

    I suggest you write your plugin to do that instead of requiring people to modify pluggable.php.

    /*
    Plugin Name: SMTP PEAR blah
    */

    if ( !function_exists( 'bb_mail' ) ) :
    function bb_mail() {
    // my replacement for bb_mail()
    }
    endif;

    #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).

Viewing 25 results - 27,776 through 27,800 (of 32,495 total)
Skip to toolbar