Search Results for 'code'
-
AuthorSearch Results
-
August 6, 2009 at 12:01 am #77778
In reply to: Sometimes Less Is Just Less
Ipstenu (Mika Epstein)
ModeratorYeah, you’re gonna have to wait for WP to start using backpress as well for that to work
That kind of integration works fairly well with BuddyPress (due in part to how BuddyPress wraps around BOTH WP and bb) but for just WPMU or WP and BB? Not so much.
August 5, 2009 at 11:00 pm #77828In reply to: I want hide tags
Ipstenu (Mika Epstein)
ModeratorSet
topic-tagsandpost-form-tags-containerin your CSS todisplay:noneAugust 5, 2009 at 9:31 pm #77775In reply to: Sometimes Less Is Just Less
DennisH
Member@Ipstenu – It’s not the glitter and unicorns that make a site hard to convert, but best practices
If you designed your website with good XHTML etc, it’s a simple matter (a weekend at most) to convert it to WordPress or bbPress or BuddyPress.That was just my attempt at humor.

We where able to integrate BB into our WP theme is about 30min. Although restyling everything is still ongoing, but that’s not a issue with BB (although more themes would be great). With the WP header/footer there is some issues with BB plugins that require javascript, but we are working around that.
The issue I have with “integration” is that WP should be able to call info BB and vice versa. That’s it.
The other issue I have is that v1.0 more or less killed all the developments that came before it.
I think BB is great and I wouldn’t be spending my time here if I didn’t. After solving a major issue with converting our old phpbb forum we have decided to push forward with bbPress.
So now I’m off to figure out how to call up Bavatars in the post.php file. If I have time after that I will try and get that BB welcome/login message in the header working.
August 5, 2009 at 6:43 pm #77820In reply to: Forwarding bbPress logins to WPMU login page.
Ipstenu (Mika Epstein)
ModeratorI’m trying to have a central signon at my site, where users must sign onto WP first and access bbPress via a page link. The logic you’ve provided looks like it can be incorporated to include the bbPress login page, is this correct?
I think kind of — I’m not 100% sure what you’re describing so let me try a different way.
If you force all registration to go through WPMU, then you can use the in-line login form, native to bbPress, to permit users to log in via bbPress, and they will still be logged in on WPMU. That’s the basic plus of integration
Login on WPMU, you’re in on bbPress, and vice versa.In my template, make my login-form.php file look like this:
<form class="login" method="post" action="<?php bb_uri('bb-login.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_USER_FORMS); ?>">
<p>
<label><input name="user_login" type="text" id="quick_user_login" size="20" maxlength="40" value="<?php if (!is_bool($user_login)) echo $user_login; ?>" tabindex="1" /> <?php _e('User Name'); ?></label>
<br /><label><input name="password" type="password" id="quick_password" size="20" maxlength="40" tabindex="2" /> <?php _e('Password'); ?></label>
<br /><input name="re" type="hidden" value="<?php echo $re; ?>" /> <?php wp_referer_field(); ?> <input type="submit" name="Submit" class="submit" value="<?php echo attribute_escape( __('Log In') ); ?>" tabindex="4" /> <label><input name="remember" type="checkbox" id="quick_remember" value="1" tabindex="3"<?php echo $remember_checked; ?> /><?php _e('Remember me'); ?></label>
<br /><a href="http://yourdomain.com/wordpressmu/wp-register.php">Register</a> | <a href="http://yourdomain.com/wordpressmu/wp-login.php?action=lostpassword">Forgot password?</a><br />
</p>
</form>What this does is, if someone clicks on the registration or forgot password links, is take them right to the WP side. Now from there, it’ll log them back in to the WP main page, IIRC, but the login form itself, being inline, will keep the user on the same page as they logged in from, so they don’t appear to go anywhere.
Does that make sense?
Are there any other backdoors or pages users can directly access from the outside that may need redirection?
Since the bbAdmin pages are locked to admins, I don’t think you need to worry about that.
August 5, 2009 at 6:32 pm #76216In reply to: Closed registrations
Ipstenu (Mika Epstein)
ModeratorDifferent topic. We’re talking abotu closing registrations here
Make a new topic for your request, por favor!(And chris – I was on topic
He was asking why an .htaccess is needed in general, and I was explaining and telling him he could make one to alleviate his closed registration issh. It was all the same discussion and topical!
)
August 5, 2009 at 6:30 pm #77774In reply to: Sometimes Less Is Just Less
Ipstenu (Mika Epstein)
Moderator@DennisH – It’s not the glitter and unicorns that make a site hard to convert, but best practices
If you designed your website with good XHTML etc, it’s a simple matter (a weekend at most) to convert it to WordPress or bbPress or BuddyPress.And I do get what you mean about Gravatars. I rather like them because it gives people a sense of conformity in that Ipstenu everywhere has this icon and I am, thus, recognizable. Internet anonymity wishes aside, it grants me a level of credibility. I am me as you are we as I clearly need more coffee!
August 5, 2009 at 5:44 pm #77736In reply to: Integrating bbpress with other cms
balajimurugavel
MemberNo reply

I See everybody is busy in integrating bbpress and WP.
August 5, 2009 at 4:07 pm #76653In reply to: Keep losing "Admin" access for all users
daniellaf
MemberFigured out what was going on! I had a hardcoded navigation link in my wordpress header to direct users to the forum (I know, bad habit). It had “www.” when the rest of the side is www-free. Deleting the www. seems to have fixed the issue.
So, if you’re integrating and are having trouble, hopefully this post will be helpful to you. Below, I’ll list what I’m running and what plugins I have in case that helps.
WordPress 2.8.3 installed at webroot, linux server with php5. Shared database between BBPress and WordPress. BBpress 1.0.2 installed in forums subdir.
WP Plugins related to BBpress
– bbPress Integration Version 1.0 | By Michael Adams and Sam Bauers (plus manual cookie info from this plugin put into WP config file)
– WordPress-bbPress syncronization Version 0.7.7 | By Ivan Babrou
BBpress plugins (all, because I enabled some others and then things started not working again)
– Akismet
– bbPress-WordPress syncronization Version 0.7.7 | By Ivan Babrou
– Hot Tags Plus Version 0.0.2 | By _ck_
Right now I don’t have _ck_’s Fix Admin Access plugin on the server, but I’ve used it a few times.
August 5, 2009 at 3:28 pm #77293In reply to: Sneak peek at bbPress.org 2.0
kriskl
MemberIt looks hot!
maybe at least a month – as target release?

I was planning on moving from phpbb3 to bbPress 1.0
but maybe it will be better to wait now …
August 5, 2009 at 3:26 pm #77292In reply to: Sneak peek at bbPress.org 2.0
John James Jacoby
KeymasterLove it. Similar but different. I also love the icons, as it is “bee bee Press” after all. Plus, if we’re going to over think this, Bee’s and hives represent a colony, and forums are basically the same thing; a colony of users.
Or, maybe you guys just love sweet, sweet honey… Just a bunch of Pooh Bear’s surrounded by empty glass jars hoping Matt will send another shipment this month to keep you motivated.
August 5, 2009 at 3:18 pm #77773In reply to: Sometimes Less Is Just Less
John James Jacoby
KeymasterDennisH, it sounds to me like you want BuddyPress + bbPress + WordPress. If you’re not using all three, then you’re really not going to get what you want.
Also, if phpBB just has too MANY features, you could trim some of phpBB’s code out, no different than you can add code to any *Press product.
It also is a relatively new concept (Within 1 year) of having all of these platforms working in unison together. BuddyPress has taken giant strides towards providing a personality to the users on your site, to give your bbPress users profiles and information beyond the basics.
Regarding the “promise” of integration, it’s possible to do within a few minutes, with integrated logins, profile info, etc… The major difference is that you can’t expect it to look like a typical forum is going to look, at least not at its current stage of development.
When you consider that phpBB is 3.0.5, and it stayed in the 2.0 branch for over 7 years, apply that logic to bbPress that JUST turned 1.0 a month ago… There’s still LOTS that can be done, but for now bbPress is a stable and powerful product that is a developers dream platform for forum software to start with. You can mold and shape it to handle just about any task (wait until you see what BuddyPress is going to do with it
)Long story short, I’m sorry you’re disappointed at the moment, but I’m willing to bet you won’t always be. If you need something besides bbPress right now, no one’s feelings are hurt, but my suggestion to you would be to make friendly with it now so you can be better prepared to use it later, when it better meets your expectations.
August 5, 2009 at 2:20 pm #77754In reply to: bbPress nonces in WP
Burt Adsit
MemberSimon,
Looks to me like the code in wp and bbpress says you need NONCE_KEY in wp and BB_NONCE_KEY in bbpress to match. Then the salts BB_NONCE_SALT and NONCE_SALT have to match. If the salts don’t exist, wp and bbpress generate random ones. Of course they will not match.
August 5, 2009 at 1:57 pm #76215In reply to: Closed registrations
grosbouff
ParticipantI have mydomain.com
My bbpress is at
mydomain.com/bbpress
but I use a subdomain
forums.mydomain.com which redirects on it.
I put an .htaccess file inside /bbpress with this content
Redirect 301 /register.php http://www.mydomain.com/wordpress/wp-login.php?action=registerRedirect 301 /bb-reset-password.php http://www.mydomain.com/wordpress/wp-login.php?action=lostpassword
But it does nothing. Chmodd is 755.
I try too with
Redirect 301 /bbpress/...and
Redirect 301(no start slashes)and it does not work either.
Any idea ?
Thanks !
Any idea ?
August 5, 2009 at 12:54 pm #76630In reply to: Changing Privilages For Member Roles
batrachoid
Member@Ipstenu, I knew there had to be a reason no one else had suggested it.
August 5, 2009 at 12:47 pm #77770In reply to: Sometimes Less Is Just Less
DennisH
MemberAt this point I’ll take 1 out of 3.

I’m not talking about plugins. I’m talking about having to hack almost every bbpress php file to include the wp header and footer or having to hack the config files.
The phpbb solution at the time (a year ago)was a HUGE F@#*ING HACK, but now that phpbb has a automod (or whatever they are calling it) it’s basically as easy as a plugin.
I’m not looking for the login form (I’m building a lightbox for that), I’m talking about:
“Welcome, _ck_ ! View your profile (Admin | Log Out) 5 New Private Messages”
As far as Avatars I’m using the wp-united on the live site (phpbb avatars). For BB I have not found a solution yet that will work or integrate into both BB and WP.
August 5, 2009 at 12:07 pm #77769In reply to: Sometimes Less Is Just Less
_ck_
Participant“Easy integration with your blog” <- if that’s the biggest problem you have with what bbpress promises, you are doing great. I actually have a problem with two of the three words in the upper right hand corner of every page on bbpress.org due to 1.0
Why is it hard to put a bbpress login box in wp? Pull up the bbpress login page in your browser, view the source and copy everything between
<form... </form>and paste it into WP wherever you’d like and add a little bit of PHP code to detect if the user is logged in or not to offer them the form. 10 minutes tops.What are you using now for avatars in WP?
Plugins are not hacks. Hacks are when you hack the core.
Is the phpbb solution a clean copy of phpbb with plugins or is it’s core heavily hacked, hence cannot keep up with upgrades/security fixes easily?
August 5, 2009 at 11:25 am #16072Topic: problem with some queries
in forum Pluginsgrosbouff
ParticipantHi, I’ve written a custom plugin to convert my old bbcode syntax myurl to myurl>.
It worked for a large amount of posts but I still get a lot (also) of errors.
Here’s a query error :
UPDATE bb_posts SET post_text ='Bon c'est sur que si on compare :rolleyes:nn
nn
' WHERE post_id = 114958As you see, the url tags have not been updated neither.
My function :
function replace_bbcode_urls() {
global $bbdb;
$regex=”#[url ?
[^[]*) ?] ?([^]]*) ?[/url]#”; $sql = “SELECT post_id, post_text FROM bb_posts WHERE post_text LIKE ‘%[url=%'”;
$results = $bbdb->get_results($sql);
foreach($results as $row){
$new_monchamp = preg_replace($regex, “\2“, $row->post_text);
$sql2 = sprintf(“UPDATE bb_posts SET post_text =’%s’ WHERE post_id = “.$row->post_id, mysql_real_escape_string($new_monchamp));
if ($bbdb->query( $bbdb->prepare($sql2) )) {
//echo $row->post_id.”
“;}else {
//echo “error processing post “.$row->post_id.”
“;echo $sql2.”
“;exit;
}
}
}
Help would be appreciated.
Thanks !
August 5, 2009 at 9:46 am #77767In reply to: Sometimes Less Is Just Less
_ck_
ParticipantAs far as I know, bbPress adds no special abilities or requirements to BuddyPress, it’s simply able to use the usertable directly, so you in theory should be able to use your phpbb solution with BuddyPress too.
You have to understand bbPress was never designed originally to deeply integrate into WordPress, only use the user-table. Deep integration was an afterthought – years after it was originally released and a mish-mash of legacy was established. Matt had a 180 degree turnaround on that process with bbPress 1.0 being rewritten to use BackPress instead. If WordPress ever is redesigned to use BackPress itself (don’t hold your breath, it could be years) deep integration could be even easier and much lighter weight.
I’m not saying this to be mean or unfair, but very simply, if you don’t like something you see in bbPress 1.0, don’t adopt it now thinking it will change sometime soon, it won’t and you’ll only be very disappointed. bbPress development is quite obviously NOT developed around user requests, it’s developed around Automattic requirements. It’s the exact same thing for WordPress and nothing new policy-wise. Everything else is left to plugin developers.
That said, I would stop using bbPress in heartbeat if they started throwing in many of the features that people are demanding be included as built in. I already have a big enough problem with many of the hardcoded “features” already.
August 5, 2009 at 8:12 am #20141_ck_
ParticipantI just realized today if you are using a bunch of plugins that have their options stored in the bbpress meta, your query count has jumped on every page in bbPress 1.0.x
Apparently 1.0 now has a reserved list of option names that are pre-loaded, instead of *all* of them like 0.9 could. Plugins have to add their desired names to the pre-caching option, which of course 100% of all pre-exisiting plugings are not aware of, so they all cause an extra query in 1.0
This isn’t a magic bullet by any means but you can at least fix this behavior. There isn’t any flag you can turn on to cache all (that would be far too easy) but you can fool the routine by loading all the options before it gets around to it.
Simply make the below into a mini-plugin, or right click here
and save as
_load-options.phpin yourmy-plugins/directoryI strongly suggest you save it with a leading underscore so it auto-loads.
<?php
/*
Plugin Name: Load Options
*/
global $bbdb;
$results = $bbdb->get_results( "SELECT meta_key, meta_value FROM $bbdb->meta WHERE object_type = 'bb_option' ");
foreach ( $results as $options ) {
wp_cache_delete( $options->meta_key, 'bb_option_not_set' );
wp_cache_set( $options->meta_key, maybe_unserialize( $options->meta_value ), 'bb_option' );
}
?>August 5, 2009 at 5:02 am #77763In reply to: Sometimes Less Is Just Less
johnhiler
MemberA lot of those features do exist… although you’re not going to have much luck getting all those features/plugins to work on bbPress 1.0. bbPress 1.0 is a very new release, and most of the plugins won’t be upgraded until later this year.
That said, I get the feeling that you would like WordPress and bbPress to interoperate more? I don’t just mean integrated signins – some of your points suggest that plugins would ideally work on both systems interchangably… I don’t think that’s on their product map. Even having more interoperability between the two themes systems seems pretty low on the bbPress priority list.
It’s all good to have concerns about bbPress! I have many concerns myself.
I’m staying on bbPress for now, because it is the only option for a lightweight forum with a plugin model. I’m very concerned about the 1.0 path though, and am starting to think through whether or not I want to stay on the bbPress platform in the long term. So I especially appreciate hearing your concerns.
August 5, 2009 at 1:29 am #77762In reply to: Sometimes Less Is Just Less
DennisH
Member@gardenfl: My main complaint would be that sifting through this site for solutions it is sometimes difficult to figure out version compatibility.
Yes, searching for solutions is really frustrating. Like most people trying to decide if they should jump in I looked trough the plugins and other mods only to find out later many/most are out of date. Installing a older version of BB isn’t a real option when you want a forward looking cms. This is of course no ones fault (at least not the plugin developers), I am very thankful for what is there.
@chrishajer: bbPress is not right for some people, but it’s just fine for a lot of others.
But how do we define “a lot of others?” I think there are huge numbers of users out there looking for a truly integrated solution. I don’t see many people using bbPress as a stand alone community forum. There are other forum platforms that fulfill that need. I believe most of the adapters of BB will be users that want to integrate a forum into their current site. BB may be good for someone that just wants a support forum (or something along those lines), but the true market is site owners that want to add more community features…. and that means true integration.
@johnhiler: I agree that bbPress lacks many social features… but that’s not really the scope of the project, which is more focused on forums? If there’s a specific feature you’d like to see, let us know in the forums!
A forum is a “social feature.” Now that does mean it has to be Facebook, but it should have some basic features.
These are some of the features I would love to see some day (I know some can be done with plugins and hacks, but I would like to see more “stable” solutions):
bbPress “login box” in WP (with new private messages and profile link).
Integrated bbPress in a WP page that strips out the bbPress header and footer (theme integration)
Integrated Avatars
Blog Comments listed in bbPress profile
Current forum topics/replies in WP
Integrated bbcode in WP comments
Facebook Connect, Twitter, OpenID etc.
I’m sure I can think of more, but those are the ones that come to mind.
Here is a good list of features I would like to see:
http://www.wp-united.com/features/
The reason i decided to post this is to help voice concerns that may one day lead to a better BB and that will in turn lead to more developers and users. Not yet being knowledgeable enough to create these add-ons myself my voice is all I can currently contribute. Although, I soon hope to share how I overcame some of these issues and provide some inspiration and tips for others.
August 5, 2009 at 12:41 am #77818In reply to: Forwarding bbPress logins to WPMU login page.
Detective
MemberI use this on my site to login via wpmu and get redirected to bbpress:
add_action('bb_init', 'bp_redirect_registration');
function bp_redirect_registration() {
if (strpos($_SERVER['REQUEST_URI'], 'bb-login.php') !== false) {
$ref = wp_get_referer();
wp_redirect('http://ryuuko.cl/wp-login.php?redirect_to=' . urlencode($ref));
}
if (strpos($_SERVER['REQUEST_URI'], 'register.php') !== false)
wp_redirect('http://ryuuko.cl/register');
if (strpos($_SERVER['REQUEST_URI'], 'profile.php') !== false) {
if (bb_is_user_logged_in() && isset($_GET['id']) && isset($_GET['tab'])) {
$user = bb_get_current_user();
if ($_GET['tab'] == 'edit' && $_GET['id'] == $user->ID)
wp_redirect('http://ryuuko.cl/members/' . $user->user_login . '/profile/edit');
//TODO: see how to handle moderators editing user profiles
}
}
}of course, it’s not complete yet (check out the TODO). But it works OK.
August 5, 2009 at 12:39 am #76628In reply to: Changing Privilages For Member Roles
Ipstenu (Mika Epstein)
ModeratorYes, but modding core files is bad
Makes upgrades a PITA.
August 5, 2009 at 12:08 am #76626In reply to: Changing Privilages For Member Roles
johnhiler
MemberRole Manager only works on version 1.0 and up…
_ck_ just wrote a plugin last week that removes the ability for moderators to see IPs anywhere in bbPress:
Just stick it in a plugin information wrapper:
https://codex.wordpress.org/Writing_a_Plugin#Standard_Plugin_Information
And you should be good to go!
August 4, 2009 at 8:59 pm #77811In reply to: Admin not update… Why?
Ipstenu (Mika Epstein)
ModeratorOkay, so take your totals and divide by 365
The numbers appear to be correct.
-
AuthorSearch Results