Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,551 through 24,575 (of 32,468 total)
  • Author
    Search Results
  • #15160
    Marcomail
    Member

    I’m trying this code but doesn’t work

    <?php if ( bb_is_profile() )
    echo "hi";
    ?>

    i’d

    #75439
    _ck_
    Participant

    I actually said December, not November, at the soonest for my plugins to start supporting 1.0 officially.

    I think 0.9 should have security releases indefinitely, at least for another year.

    December 2010 would be a good retire date IMHO.

    But I certainly don’t expect 0.9 to be given new features at this point.

    Some people simply won’t be able to use 1.0 on shared hosts with several plugins. Their host will terminate their account for excessive resource use if there are bursts of activity at certain times of the day. So 0.9 will be their only option (or switching to lighter software).

    ps. the 2.0 branch of WordPress was it’s best version ;-)

    #75479
    michael3185
    Member

    Hi Marco. I’m no expert at this (one or two will be along shortly…) but I’ve found that in playing around with PHP and CSS I’ve been able to do a lot more than I thought I would.

    The code you’ve posted would display not just the forum names, but most of your front-page info. I’m wondering if putting the forum names in a < div > with a class name you’ve defined in the stylesheet to format the fornt, placing, width, etc., would do it. This is a rough ide from my front-page;

    <div id="my_side_bar">
    <?php if ( bb_forums() ) : ?>
    <table id="forumlist">
    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br />
    </td></tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    The table definition could probably be removed too, and it should(?) give a list of links with just forum names. Blind leading the blind here, but it might give you some ideas.

    #15163
    Marcomail
    Member

    How can i show the forums in the sidebar ?

    I’m trying this code but doesn’t work

    <ul>
    <?php while ( bb_forum() ) : ?>

    <li>
    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>
    (<?php forum_topics(); ?>) (<?php forum_posts(); ?>)
    <?php endwhile; ?>
    </ul>

    #75067
    michael3185
    Member

    I’ve ‘unresolved’ this thread again, as I’d like to get it working in 0.9.0.5

    By Display Name, am I right in assuming you guys mean the ‘Custom Title’ in a member’s profile? If I set this, then the link under the avatar changes (obviously), but also, bbPM in creating its ‘PM this user’ link replaces the Display Name with what it should be. Changing the link ‘manually’ by altering the template causes bbPM to make a mess of the link, or not replace it at all, thereby creating 3 links; my hard-coded on, the expected profile link, and the ‘PM this user’ link.

    OKTeaRoom
    Member

    Hi,

    I just recently installed bbpress 1.0 rc3 and today upgraded to 1.0.

    I believe I have either set something up wrong or there is something wrong with my database and I’m hoping someone help point me to a solution.

    First, the forum is at http://www.oktearoom.com/forum

    Ok…problems:

    1. bbPM – When I hit send on a PM I get:

    Forbidden

    You don’t have permission to access /forum/my-plugins/bbpm/pm.php on this server.

    2. BBcode Buttons Toolbar

    Not showing up at all and and there is no change if this plugin is activated or deactivated.

    3. bbPress Smilies

    All of the smilies appear as ?’s even though I believe i installed this plugin correctly.

    I just thought I’d give you all the details of the problems I’m having since they are all plugin related and thank you in advance if there is any advice you can give me.

    Happy 4th of July to the American and to everyone else I hope you’re having a great weekend!

    Thanks for taking the time to read my newb post. ;)

    #15154
    Dreamcolor
    Participant

    bbPress 1.0 Simplified Chinese Translation.

    You can download it in URL below.

    http://wpcn.googlecode.com/files/bbPress.1.0.Simp.Chinese.pack.only.v1-wpcng.zip

    There maybe still have some translation bugs. So please let me know and I will fix it.

    #75066
    chrishajer
    Participant

    In the 1.0 release it’s something like this, isn’t it?

    <a href="<?php user_profile_link( $user_id ); ?>"><?php echo get_user_display_name( $user_id
    ); ?></a>

    That would link the Display Name to the user’s profile. You’d have to have the $user_id first to use this, I think.

    #73616

    Here is the latest integration rundown. I first lay out some helpful hints to those out there looking for them, and toward the bottom I point out something which the integration plug-in does not properly handle. That is the HTTPS secure cookie upon logging out. Depending on your setup this may cause issues. Most of the time you’ll be ok. If your like us and have added a proprietary layer of security for internal use only, you like to make sure when your secure cookies expire they expire asap and are completely gone.

    I recommend maybe, just a suggestion as I’m not privy to the dev’s stream of intentions to query if ‘BB_FORCE_SSL_xxx…’ is set. This is probably a much better indication of scheme than relying on the database option only. I know your busy Sam and that wpmu integration is like the last thing on your list. However, some of the code base is already merging.

    Noteables: Step #6, Step #7

    But before you continue:

    1.) Disable Your Cache Server (Varnish/Squid). Go straight to your webserver (Eliminate other causes.)

    2.) Get Integration working on plain http first. DO NOT define any force SSL/Admin anywhere on either wpmu/wp/bbpress.

    3.) Go back and integrate if you can’t get #2 done. Some helpful hints that work:

    3a.) Install wp/wpmu

    3b.) Install bbpress

    3c.) Install integration plugin for wp. In the option where it says complete URL, that means “http://mysite.com&#8221; and not “mysite.com”. If your _only_ (meaning 100% of the time) ever going to use HTTPS then go ahead and define HTTPS.

    3d.) I made sure all key/salts were setup in wp first, and then mirrored them into bb-config prepending BB_ in front of each Define. I defined manually: AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, NONCE_KEY, AUTH_SALT, LOGGED_IN_SALT, AND SECURE_AUTH_SALT (7 in total defines).

    Once you have HTTP squared away Proceed with SSL:

    4.) The integration plugin will try do some things for you in the backend, it will actually try to do all the cookie work for you. However it works off values you set via the integration option page and your wpmu site options.

    To take control of a few options, go ahead and define MANUALLY the following: (just as the plug-in suggests and more sometimes):

    COOKIEHASH, COOKIE_DOMAIN, SITECOOKIEPATH, and COOKIEPATH.

    5.) Add to wp-config.php:

    define(‘FORCE_SSL_LOGIN’, true);

    define(‘FORCE_SSL_ADMIN’, true);

    6.) Add to bb-config.php:

    define(‘BB_FORCE_SSL_USER_FORMS’, true);

    define(‘BB_FORCE_SSL_ADMIN’, true);

    7.) The kicker for me since I’m using MU Subdomains, i HAD to put into my bb-config:

    $bb->cookiedomain=’.mydomain.com’ //Yes, with the dot before the domain.

    (This is literally the only direct access object config I set in my PHP file. All the rest is handled by ‘DEFINE’ )

    Up to this point you should have integration with HTTP and HTTPS. Back and forth, forth and back, every which way. You should have it done without any manual speed up accessors. If it works, go ahead and add them but make sure you set them correctly. If your fanatical about security then cross the line, otherwise go get a beer, woman or pillow whatever.


    The Line


    8.) Log into BBpress. Goto your main blog, and wp will see you have a ‘logged_in’ cookie. Will display the site_admin link. Just go ahead and click log out.

    9.) Logging out will log you out, except a few cookies are left over. This is because the integration plug-in never inspects the HTTPS scheme properly. It will always look for HTTP. Test this by editing line 182 in the plugin file to read:

    $secure = true; //Don’t forget to change me back to false (default).

    10.) Repeat, and you’ll notice your cookies (the ones which matter) get blown away.

    Notes:

    – If you install WPMU 2.8 Alpha/Beta/Etc… you must _NOT_ enable

    define( ‘WP_AUTH_COOKIE_VERSION’, 1 )

    as the plugin suggests.

    – I DID NOT use any of the “speed up” manual configs which the bbpress integration tool points out. If you can’t get it working without these settings, adding them may not help at all and masks your real issue which is some other settings are screwed.

    – you NEED to make sure your URLs are correct. That means every single URL defined in your database in any meta table, options etc… Especially the case with the integration plugin.

    #75205
    thekmen
    Member

    Thanks Sam, just tried adding this to the css

    #position-1 .threadpost {
    background: #FF9;
    }

    on the 1.0 release & it works perfectly…

    #75399
    _ck_
    Participant

    Gravatars should be done 100% via a plugin and not integrated into WordPress/bbPress in the first place. I never did understand why they were hardcoded in, except perhaps a push by Matt after they bought the service.

    It should be done exactly like akismet and bozos.

    #75326

    In reply to: bbPress 1.0 released

    _ck_
    Participant

    For those not using the XML-RPC functionality (95% of you) I strongly recommend you delete xmlrpc.php immediately after install. Several of WordPress’s security issues over the years have been through that API.

    #73551

    Answer – Yes they work, kinda. Allow-Images doesn’t work right, but it’s messed up in a lot of ways :/

    #75420

    Either one works. And you can integrate with a separate database as well, if you’re so inclined. There’s no data overlap until you integrate, and even then it’s replication, so you may as well do it in one DB if you have the inkling you might want to integrate users later :)

    #75324

    In reply to: bbPress 1.0 released

    michael3185
    Member

    Plugins – blimey…

    admin-add-user

    allow-images

    approve-user-registration

    auto-add-favorites

    avatar-upload

    bb-chunk

    bb-tweaks

    bb-code-lite

    bbPM

    block-long-requests

    enhanced-tag-heat-map

    header-meta

    human-test

    move-it

    my-views

    new-favorite-notification

    no-follow-on-reg

    private-forums

    profile-fields

    related-topics

    show-error-page

    terms-of-service

    year-long-cookies

    Some are simple things taken from code in forum discussions, and the error-page one is my own.

    I just tried one to notify mods of new posts, but it failed with a DB field/table missing, so I assume it was written or upgraded for 1.0, and of course a lot of plugins will be upgraded now. Still thinking, but I can always test drive it on an empty forum.

    #75398

    I bet you could even write a quick ‘If email has gravatar, then show nothing, if NOT, directions…’ PHP query. But I too find most posters are happy with the Identicon :)

    #75397

    With a name like grassrootspa, I figured this would make more sense. :)

    I for one hope the core of bbPress never includes that kind of thing, as it works perfectly well as it is without needing to turn a thousand features off.

    There are plugins available, and if they don’t suit your needs, newer betters ones will come in the future.

    I think what you want, is BuddyPress + bbPress.

    #75416
    michael3185
    Member

    Cheers Ipstenu. I changed the post image so text wraps, and left the avatar as it was;

    img { float: left; border: 1px solid #ddd; border-width: 3px; border-style: double; margin-right: 8px; }
    img.avatar { float: none; display: block; border: 1px solid #ddd; border-width: 3px; border-style: double; }

    Amazing how a simple change makes everything look so different.

    #73078

    In reply to: GFC

    Billy Wilcosky
    Participant

    I’m hoping someone creates a plug in for google friend connect… I’ve been trying to find a way to let anyone sign into my site. I know there is OpenID, and bbpress has an OpenID plugin thanks to _ck_, but I can’t get it to work like I want. The main issue is, I use wordpress for my registrations, and then bbpress as my login… I chose wordpress as the registration part because it’s very simple… they just have to enter their name and e-mail. And, I forget why I chose to use bbpress as the login part… haha :). Anyway, again, I’m hoping to one day find a way to let anyone login using other popular services like google and facebook and twitter.

    If anyone has any ideas let me know…

    I’m wondering if it is possible to allow people to login to my site using google for example, without having to mess with my user database. In other words, I know there are plugins that will allow people to register with their google account, and then behind the scenes the plugin creates a wordpress or bbpress account… I’m wondering if it is even possible to have a separate system so if someone wants to sign up for my site they can, but if they just want to log in via google, for example, they can do so without the plugin creating a new user in my database…

    #75319

    In reply to: bbPress 1.0 released

    Dump your browser cache. That should have been fixed a couple trunks ago, and it’s fine on my site. That WAS how it was uglified mid-process

    ah bugger, fireftp decided to append instead of replace the CSS file. all fixed and beautified :P

    #75415

    Rock on :) If you specify it my way (or img.threadpost I imagine), it won’t affect images outside of a post.

    #75413

    Put it in your CSS?

    .threadpost img
    {
    Your CSS Here
    }

    #15150
    michael3185
    Member

    I’ve just added the Allow-Images plugin to a forum to bring a little life to some topics. There’s a post you can see at http://mbforum.letsdoo.org/topic/visitors-who-arent-registered#post-17.

    I’m trying to figure out a way to put a 1 pixel grey border around images, like the avatar image on the left has. The avatar has its own CSS formatter, but I’m not so hot with CSS and can’t work out how to do it for the image in a post. I’ve used the usual bbcode [ img ] xyz [ /img ], but putting a CSS format tag in the [ img ] part stops the image from being displayed.

    I guess I could hard code it into the plugin, but any better ideas..?

    Edit:

    Duh. I answered my own question. I just changed the stylesheet

    img.avatar { display: block; border: 1px solid #ddd; border-width: 3px; border-style: double; }

    to

    img, img.avatar { display: block; border: 1px solid #ddd; border-width: 3px; border-style: double; }

    #75307

    In reply to: bbPress 1.0 released

    This is NOT an attempt to knock _ck_ (any more than she meant to diss on Sam), as her points are totally valid and, in fact, I’m a member of ‘If it ain’t broke…’ If you’re ON .9 and everything works and you’re happy, then STAY. If you have needs that can no longer be met by .9, however, you may need to start looking into 1.0. There’s a reason that some people are still on WP 1.5ish releases. It works and they’re happy. There’s nothing wrong with it.

    My reasons to use 1.0

    1. You haven’t installed bbPress yet, so you don’t have an existing stable site.

    2. You don’t actually use a lot of plugins anyway.

    3. You can integrate with WP 2.8 and WPMU without having to hack the bbPress cookies (thanks to WP changing things all over the dang place…)

    4. The Admin area ‘matches’ WP and, lets face it, pretty is better ;)

    5. If you’re going to write new plugins for bb, you may as well write them for the release version since that’s the way it’s going to be.

    6. While it is slower, we’re not talking ‘it now takes 3 minutes to load a page’ like some bbs out there. And it’s still faster than WP.

    7. Given the speed of servers these days, you may not ever notice the DB queries.

    8. No matter how long you spend debugging, you’re never going to find all the bugs until something’s used for real by hundreds of users, so months vs years really doesn’t mean as much as you might think. Now DAYS versus months… Still, until a lot of people get out there and try to use it for weird ways, 1.0 won’t be as well tested as 0.9, but that’s true of any new release of software.

    9. RC seems rushed, with a lot of slapped up fixes, but that’s because a group of us were out there breaking things for the rest of you. The major kinks are fixed.

    10. Once you bite the bullet, the small upgrade to 1.0.1 (which is inevitable and we all know it) will seem like nothing.

    11. You really want to see that download counter MOVE!

    Okay, so some of mine are for the amusing side.

    I’ve been on the 1.0 train since I started, since at the time you couldn’t do 2.7 WP and 0.9 BB. I’ve never had a major OMG! show stopper problem and I think bbPress is far far better than the old systems I’ve used. Small, simple, easy.

    Thanks to Sam and also SO many thanks to _ck_ for her patience with stupid questions :)

    #75299

    In reply to: bbPress 1.0 released

    johnhiler
    Member

    @frooyo – I agree that changing the name to Release Candidate greatly increased community involvement. Marking a release as 1.0 stable seems like a scary way (to me) to increase involvement! But maybe the release will be stable, and my skepticism is unwarranted. Looking forward to seeing how the release goes. :-)

    But can I ask that you please not attack active members of the bbPress community? _ck_ has done more than almost any other volunteer to help extend the power of bbPress. I’ve seen a number of open source projects where someone is told that if they disagree with something, they should shut up and just fork the code. I hope that bbPress doesn’t become one of those sorts of projects.

    Good luck with the release Sam!

Viewing 25 results - 24,551 through 24,575 (of 32,468 total)
Skip to toolbar