Search Results for 'code'
-
AuthorSearch Results
-
June 21, 2010 at 2:18 pm #90105
In reply to: logout variable
kevinjohngallagher
Memberbb-login.php?action=logoutJune 21, 2010 at 10:09 am #90083In reply to: two forums/categories next to each other
kevinjohngallagher
MemberThanks, thats really helpful.
You could definately do this, though it’s not overly easy, it is relatively straightforward.
You’ve 3 options:
1) Edit the CSS to attempt to display things the way you want.
In theory it’s good, in practice it’d be a pain (imo).
2) Edit the theme file to put categories into their own DIV and then style them into two columns via CSS.
Probably the easiest without hacking any real PHP.
3) Write your own query on the database and output hte code exactly as you want it.
Tricky, mostly as we’ve no documentation or examples, but it’s definately possible if you know your way around PHP (and any cusotm wordpress theming experience would be helpful)
Basically though, you’ll have to code it and you’re somewhat on your own there, but we can try and help out if you hit a road block.
June 21, 2010 at 9:45 am #90082In reply to: two forums/categories next to each other
saare2000
Membersorry about that. basically what i’d like to achieve is “two forums in one page”.
here’s a simple scetch – http://cl.ly/5be25a250d64ba791405
forum has 2 categories/subforums. and when I come to main page I see both of them in two separate columns. left one is for ‘forum 1’ and right column for ‘forum 2’. something like 2 bbpress installations next to each other.
hope my question is now more clear

thanks!
June 21, 2010 at 8:16 am #34537Topic: two forums/categories next to each other
in forum Themessaare2000
MemberIs there a way to set two different categories next to each other in main page.
| id 1 | | id 2 |
Thanks in advance!
June 21, 2010 at 1:31 am #90087In reply to: Running Multiple Instances
johnhiler
MemberI’ve done something very similar using separate (but user integrated) installs of WordPress and bbPress.
Here’s the blog:
Here are the boards:
And here is a support forum:
http://support.weddingbee.com/
You don’t need to add an extra column to restrict support access – you can use Roles and “Hidden Forums” to pull that off.
https://bbpress.org/plugins/topic/hidden-forums/
I’m actually using 7 separate bbPress installs for that site, along with two WordPress installs and some custom code. Just follow the instructions on integrating users between WordPress and bbPress, and wash and repeat for each additional bbPress install.
Good luck!
June 20, 2010 at 9:27 pm #84824In reply to: Trac Updates for 1.1
kevinjohngallagher
MemberGautam,
This won’t be a short post, but I truly wish for you to know this comes from a place of respect and admiration for both your code and your commitment to bbPress and it’s community.
Please, let us focus on what we need to get the next release finished.
We simply cannot fix everything.
We have to prioritise.
Matt, who is the project lead, did the prioritising for us.
- Critical Bug fixes
- Email notifications
- Anonymous posting.
That’s it. Once those are ready, we release.
Matt himself said that the focus should not be on bugs, but on the 2 new features and critical only bugs.
It’s not for me to tell you, nor even ask, what you should be working on; but please allow me to help you. As a developer, and someone who loves this project, you are trying your best to solve as many problems as possible. It is so admirable, and we all appreciate your efforts. But in the long run, you are only going to slow us down. How?
Bugs.
When a developer writes code, especially large pieces of code, there are bugs. It is the nature of the beast. We have very very few testers, very very few people who download the latest trunk version to test. The chances of us catching anything but the most obvious of bugs are slim.
Take the new default Kakumei theme you’ve included. While I’m in total agreement that the default theme needs changing, this is not the way forward. You’ve changed about 400 lines of code, and there will be bugs. Given that a new Kakumei theme isn’t part of the feature list, those bugs are going to count against us, not be a positive.
You’re giving theme developers slighty more tools to work with, but all you’re giving the average user and the new users is an untested theme that looks like the old one (which looks crap still).
Regardless of how awesome your code is, and it looks brilliant, the best we can hope for with it is that it doesn’t go badly. If it works flawlessly, no-one will notice. There is no winning scenario here. No part of releasing a new theme in 1.1 will be beneficial, especially as it looks identical to the old one.
Sadly the same can be said for your efforts to totally rewrite the entire tag system. I’ve absolutely no doubt, 100%, that your code and functionality would be amazing. But right now, it works. Same for your Mass Delete / User handling functionality. etc etc
There comes a time when Less is More.
Less code changes means less new bugs, means less “OMG it’s taken a year to come out and it’s still terrible” posts. Less code means less to test, it might mean more bugs are caught, it means less bugs released. Less code means we can release quicker. Less code means less testing time.
Realistically, we have only 2 bugs in 1.0.3 ( #1228, #1276 ) and 2 bugs in 1.1 ( #1244, #1268 ) that are stopping us from releasing this thing to alpha for testing. Thats great work, even if #1244 looks like it will be a lot of work.
The other bugs (#538, #1183, #1277, #1243 ) are all “nice to haves”, and yet somehow contain about 800-1000 lines of code with changes. There has to be some form of Risk Assesment here bro. 1000 lines of code changed with no functionality to forum users, but instead increases the chances of bugs?? Risky, very risky.
Look, BackPress might never include the fix we need to get this thing working, so lets focus on the outstanding bugs that are blocking us, and lets worry about the others after. Because lets be honest, if we’re building a new theme for bbPress, it’s should look nothing like KAKumei (emphasis on KAK)
June 20, 2010 at 6:39 pm #89976Taeo
MemberIts amazing that only four people are behind WordPress, plus some new ones now. To me, it seems like WordPress is a company on the level of Apple. I imagined there would be hundreds of employes behind WordPress. They really give the impression of being the most professional people in the business of cloud-computing.
Welcome to open source software development Marius

What you are saying is *sort of* true. There have only been 4 main code “committers” in recent years but there are actually a lot more people involved in making WordPress what it is.
WordPress is “owned” by a company called Automattic. Everything they produce is open source and therefore free to use and/or modify. It’s not a huge company but it’s not tiny either. They are comprised of 40+ developers, designers, engineers, etc who all work from their homes spread around the globe. They make their money mostly from WordPress.com which sells WordPress hosting as a service.
The beauty of it, since it’s all open source, if you decided you wanted to become a developer and you came up with a great idea for a new feature and coded it up as a plugin – Automattic might decide that they want to incorporate it as a core feature and implement YOUR code. This is exactly how the new menu feature in 3.0 came about. People had been making plugins that worked in a similar fashion for years.
June 20, 2010 at 10:47 am #89857kevinjohngallagher
MemberI doubt it mate, to start with it means that the poster isn’t anonymous.
What you’re after is all the advantages of being a member, while still being anonymous and thats not too likely.
Basically, if you want email updates, register to the website
June 20, 2010 at 1:54 am #34533Topic: WordPress 3.0 multisite + bbpress : not woking
in forum Troubleshootingvenividi
ParticipantWordPress 3.0 + bbpress 1.02 : integration works fine.
but,
wordpress 3.0 multisite + bbpress 1.02 : integration doesn’t work.
….
when added the code below in wp-confeg.png
define(‘WP_ALLOW_MULTISITE’, true);
define( ‘MULTISITE’, true );
define( ‘SUBDOMAIN_INSTALL’, false );
$base = ‘/’;
define( ‘DOMAIN_CURRENT_SITE’, ‘myhomepagename.com’ );
define( ‘PATH_CURRENT_SITE’, ‘/’ );
define( ‘SITE_ID_CURRENT_SITE’, 1 );
define( ‘BLOG_ID_CURRENT_SITE’, 1 );
the integration breaks.
What’s the problem, and what’s the solution?
Any help will be appreciated.
June 19, 2010 at 10:21 pm #89640In reply to: Where is subscribe for this topic in bbpress.org?
citizenkeith
ParticipantOne of the many broken aspects of bbpress.org 2.0.
June 19, 2010 at 9:29 pm #88470In reply to: Using login_form from bbPress on a WordPress site
kevinjohngallagher
MemberWhat would you like me to say?
You haven’t told me what’s you’re expecting teh code to do, and what it does wrong instead?
Please, I want to help, but “it takes me to localhost” gives me nothing to work with
June 19, 2010 at 9:26 pm #88469In reply to: Using login_form from bbPress on a WordPress site
pagal
Participantit takes me to local host… and my code was..
<?php
if ( is_user_logged_in() ) {
echo ”;
} else {
echo ‘
<table width=”480″ height=”90″ border=”0″ align=”right” >
<tr>
<td align=”left” >
<form class=”login” method=”post” action=”http://www.mysite.com/forums/bb-login.php”>
<div>
<label> Username
<input name=”user_login” type=”text” id=”quick_user_login” size=”13″ maxlength=”40″ value=”” tabindex=”1″ />
</label>
<label>
Password
<input name=”password” type=”password” id=”quick_password” size=”13″ maxlength=”40″ tabindex=”2″ />
</label>
<input name=”re” type=”hidden” value=”” />
<input type=”hidden” name=”_wp_http_referer” value=”/” />
<input type=”submit” name=”Submit” class=”submit” value=”Log in” tabindex=”4″ />
</div>
<div class=”remember”>
<label>
<input name=”remember” type=”checkbox” id=”quick_remember” value=”1″ tabindex=”3″ />
Remember me
</label>
</div>
</form>
</td>
</tr>
</table>
‘;
};
?>
<?php } ?>
@kevinjohngallagher please did not say this time “write your own code”
June 19, 2010 at 9:06 pm #89922In reply to: Extra dropdown field in registration page
pagal
Participant_ck_ you are always smarter then others……

I’ll wait for your answer
I will pray for you that that migraine did not try to tease you….
Thanks for your hope…
June 19, 2010 at 9:00 pm #84822In reply to: Trac Updates for 1.1
kevinjohngallagher
MemberGautam my friend,
I may face your ire here a little, but looking at the 1.1 trac list, i’m going to bump some more things to 1.5.
With the focus being on 1.0.3 for the last while, there’s been a few things that definately fall under the heading of “Scope Creep” in the 1.1 Milestone.
Now that 1.0.3 isn’t being released as Matt emailed Chris saying to release 1.1 when it was ready, I believe we should focus on what needs to be done for 1.1, and not do additional coding.
Yes there are things we’d all like to see, but given the HUGE amount of changes (over a year’s worth of code), lets just get it out without adding more functionality simply because we’re not under a strict time limit.
Again, I’m deleting nothing (though whoever put in the YouTube video as high priority is having a laugh), and just moving somethings to 1.5. Lets knock out what we can in the 1.1 milestone, and if we’re still waiting on BackPress to roll out it’s fixes we can hunt some of those nice to have’s that I’ve moved to 1.5
June 19, 2010 at 8:30 pm #90037In reply to: Existing WPMU 3 with new bbPress install
ciaravino
MemberThere isn’t even labels or text boxes for auth_salt, secure_auth, and logged_in_salt in the actual wp-admin/options.php page when you view it from the admin area. There’s a bunch of other options but I’ve looked through them and used Find, but I don’t see them

WordPress Integration Settings for bbPress admin even gives me a direct link to the options page that it says those settings are, but they aren’t there. Here’s what it says for each of the 3 required salts:
“This must match the value of the WordPress setting named “auth_salt” in your WordPress site. Look for the option labeled “auth_salt”.”
“This must match the value of the WordPress setting named “secure_auth_salt” in your WordPress site. Look for the option labeled “secure_auth_salt”.”
“his must match the value of the WordPress setting named “logged_in_salt” in your WordPress site. Look for the option labeled “logged_in_salt”.”
June 19, 2010 at 8:20 pm #90051In reply to: How can I do this?
kevinjohngallagher
MemberNo question is dumb mate, though the idea of testing your users to get 9/10 questions right before allowing them to talk on a forum might be very close to it

It’s just a SQL call.
You can store the information you need in the “_meta” table.
Basically don’t think about it as a bbPress plugin, just code the PHP as you would if it was a website you’d built yourself.
June 19, 2010 at 8:03 pm #90036In reply to: Existing WPMU 3 with new bbPress install
kevinjohngallagher
MemberIf I wanted to make it so people had to register and login through the blog, I would just replace all the login stuff on the forums with a link that takes you to the blog?
No, you could just point the
actionpart of your login/registration form to the WordPress one. That way people could login/register from wherever they want, but your WordPress install does all of the difficult work behind the scenes.The salts are all in the wp-config file on my blog, but they aren’t showing up in the options.php page in the blog admin
Yeah, just copy them from the WP-config file.
Also, my blog and forums both have different $table_prefixs. Should they both have the same
Nah, thts fine as long as you have changed the bb-config to let it know what the WP user table is called.
Also, WP3.0MU is totally new to us (it’s been out less than 48 hours), so if there are any additional issues you might be the first to find them.
June 19, 2010 at 7:27 pm #89974Taeo
MemberI guess I wasn’t involved with the community long enough to feel the burn from the back and forth decisions you mentioned. That does sound pretty shitty!
This is just pure speculation here but maybe the information from Automattic was so inconsistent because they weren’t sure what direction they were going themselves. I don’t know the whole history of BackPress but it sounds like it was a pretty big undertaking that would have had implications for WordPress as well. Going off my knowledge and what Matt said in the keynote it sounds like the BackPress project just didn’t work out in the long run but it was too late to take it back from bbPress.
Again, thats pure speculation so treat it with a grain of salt

BTW Taeo, I miss not being able to recommed your UI
Heh sorry about that. It was too much work to maintain between patches
I’ve posted some new stuff on my new website ( http://www.wowuigallery.com/topic/taeo-333-ui ) but it doesn’t have all the auto-config bells and whistles of the original.For an good looking, easy to setup UI I usually recommend TukUI to people. I helped him build his site (WordPress and bbPress of course).
June 19, 2010 at 7:10 pm #89921In reply to: Extra dropdown field in registration page
_ck_
Participanthttp://google.com/search?q=site%3Abbpress.org+extra+profile+fields
Since bbPress doesn’t have a dropdown generator, it’s obviously going to need custom code. You can’t set it as a profile key because bbpress won’t properly handle the output/input.
There is an action hook
do_action( 'extra_profile_info', $user->ID );which appears at the end of the regular profile block.
That’s where the data has to be shown.
However the data will not be saved by bbpress because it’s not in the profile keys.
What could be done is the profile keys could be unset when actually on the profile edit page, but exist otherwise – there is a sanitize filter that can be used:
$$key = apply_filters( 'sanitize_profile_info', $_POST[$key], $key, $_POST[$key] );Or sanitization and saving could be done manually at
do_action('profile_edited', $user->ID);by checking $_POSTSo it’s a non-trivial amount of work which is why dropdowns are not already done via a plugin.
If I get through tomorrow without a migraine I might show you how to do a Male/Female dropdown.
June 19, 2010 at 7:10 pm #89973kevinjohngallagher
MemberHi Taeo,
You’re absolutely right.
I doubt anyone here has a problem with Automattic making the best choice for them in the long run. Even if it’s not ideal for everyone; if the good outweighs the bad for a large percentage of people and it gives Automattic another feature to give their users then I can totally see why they’ve come to this decision.
The issue I have personally, isn’t with the decision (or indeed any decision that Automattic have made), but rather the way that information is passed along (or, ususally, not passed along).
To delete the bbpress0.9 milestone and decide to go back on your word to support it for 2010 without telling anyone – even weeks after you deleted it, is symptomatic of how Automattic treat the people involved with this project.
Matt’s word carries alot of weight, especially with WordPress users, so to make dispariging / negative / insulting comments about us in his KeyNote speech is poor. I realise that he was answering a question, and not a prepared statement; and we’ve all answered questions badly before, but it was a slap in the face to those of us who’ve given up our time.
Given that the 1.0.3 milestone has a year’s worth of bug fixes, and NOW isn’t going to be released until all the 1.1 bugs are finished AND a new backPress is released – though thats not been communicated to anyone yet; it makes it hard for those of us who have gotten behind bbPress to draw a line under it.
It’s also why this talk of a Fork is premature. Because when 1.1 gets released, there will be a swell of “bbpress is not dead” euphoria – much in the same way there was when Matt came back in December and when the new theme got uploaded. For me, I just want to get my current forums patched up to work the way bbPress1.0 was meant to and be treated like an adult until that happens.
BTW Taeo, I miss not being able to recommed your UI
June 19, 2010 at 6:48 pm #90046In reply to: How can I do this?
kevinjohngallagher
MemberYes, it’s possible, but you’d have to entirely code it yourself.
It’s not a plugin thing or something we could write for you.
Also, unless its very particular and of interest to the people taking the quiz, it’s a horrible thing to do.
June 19, 2010 at 6:04 pm #89972Taeo
MemberHe even admitted that right now, it would be better off to use another plugin rather than bbPress.
I agree that this seems very insulting but you have to keep in mind Matt’s target audience. Matt and Automattic are concerned first and foremost with WordPress. And the vast majority of WordPress users are not the people involved in this thread – they are bloggers and publishers with very little knowledge of code. For them, the easiest forum solution is a WordPress plugin. We know better here at bbPress.org but we make up a very small (albeit vocal) minority.
Knowing this, it is difficult to imagine the future of bbPress (under Automattic) as anything other than a “core” WordPress plugin. I think your concerns with this, Zaerl, and Kevin, are completely reasonable. It will absolutely be less lightweight than bbPress is now. I have no doubts of that although I am confident the WordPress team will minimize the hit in every way possible.
However, for me personally, the good outweighs the bad. I basically make a living off of customizing WordPress templates for people and I will be very happy to have an easily implemented and officially supported forum solution to offer my clients. I am almost sure this is how the majority of WordPress users also feel.
Unfortunately for those of you who want bbPress to remain a standalone solution I think your time is limited. Even if Automattic wanted to keep bbPress as a standalone solution I don’t think they have the developers to do it. If this is what you really want I think the only choice is to do it yourselves. Whether that means forking or taking some of the core and rebuilding completely – one of you will simply have to take charge on your own and forget Automattic.
I know that sounds harsh – I’m not trying to mean – I totally understand where you guys are coming from. I just think this is the unfortunate state you are in.
June 19, 2010 at 3:57 pm #89971kevinjohngallagher
MemberRootside ::
Has anyone considered the possiblity that Matt is keeping his eyes peeled on the current efforts of some people trying to use nothing but WordPress’ core functions to build a simple forum?
He might be mate, but probably not, as doing so isn’t that difficult at all. I creted a “theme” for WordPress that made it look/work like a forum in essence back in 2008. The same time I made and released the phpBB theme for bbPress. Both were availible on the bbProgress website (which closed last year but there should still be some links on t’internet).
And Justin’s coding one based on the new Custom Post features, which will work alot better than mine did (he actually build one last year too, but had a hard drive crash and lost it).
Basically though, a blog and a forum are different in their “n to n” nature. WordPress relies on a huge amount of caching to try and keep it’s memory intake down, and a customised caching mechanism is essential once you hit any form of modernday traffic. That sort of feature works well on “1 to many” software, but a forum is different. It has to call data differently, and handle multiple parent/child relationships.
Rootside ::
I’m guessing that any WP plugin which makes that kind of thing easy to set up and enhances its functionality would be really lightweight.
No, no way mate
The opposite.I understand the desire to make a WP plugin that is a forum, I can see Matt’s viewpoint on that, but in comparison to bbPress as it stands, it’ll be far from lightweight.
Not only will it struggle with the caching that WP relies on, but you’ll have all the overhead of loading everything in WordPress before hitting any actual forum content (including the WordPress admin sections and plugins).
It’s basically going to be very similar to the BuddyPress “bbPress” plugin, as thats a hacked/stripped version of bbpress1.0 (in general terms it removed BackPress and rewrote the function calls to call WP/buddyPress functions directly). But in order to get it to work, every page has to load WordPress then BuddyPress then bbPress forum module.
Lightweight it ain’t!
Even if the very clever people that work at Automattic and contribute to the community manage to pull a great number of rabits out of hats, there is no way that it will be anything but bloated.
But you know, 90% of folks won’t care. Take Marius (poster above me), he runs a forum about Michael Jackson with aboot 100+ users and maybe 50 topics started a week. He’s not that uncommon to alot of the folks that pass through here (other than that he is allergic to manners). They won’t care in the slightest about the small hit as the chances of them noticing it are going to be slim, and they get access to all the good stuff that comes with WordPress, heck for the most part they’ll get the stuff they think they should from bbPress/Wordpress integration now. For a percentage of people, there will be no downside, even if it’s far from lightweight.
I realise that software moves on, and I realise that as it grows there will be some bloat. Thats the reality of where we are, and WordPress does a really great job of being quick despire it’s bloat. But the sheer difference between a bbP0.9/WP2.5 deeply integrated forum (which has MORE features than we have now) and a bbP1/WP3 deeply integrated forum is unbelievable. Bloated, slower, more prone to errors and less features.
I see why Matt thinks things have to change, i don’t agree with the direction and thats cool, i don’t have to agree, nor does anyone

But really the history of this project has taught us one thing repeatedly: Heading in a direction without planning or a roadmap will definately lead us somewhere else, but we’ll be just as lost. Who knows though, 40 years later he may just lead us out of the desert

Hopefully on Matt’s way up to Montreal he’ll see a burning bush
June 19, 2010 at 3:23 pm #89684In reply to: noob bb/wp installation issues
kevinjohngallagher
MemberI can answer that Chirs.
If you type in , you get a [code] HTML output.
If you type in a [backtick] you get a [code] wrapped in a [pre] tag (which is right so formatting is preserved as well).The [pre] tag is the one that has the cool style on it.
#bborg-discussion #thread div.post pre { background-color:#FFFFFF; border:1px solid #EAEAEA; display:block; overflow:auto; padding:10px; width:528px; }Don’t you just LOVE this new untested theme with all these wonderful hacks?
[code], you get a HTML output.
If you type in a [backtick] you get a [code] wrapped in a [pre] tag (which is right so formatting is preserved as well).The [pre] tag is the one that has the cool style on it.
#bborg-discussion #thread div.post pre { background-color:#FFFFFF; border:1px solid #EAEAEA; display:block; overflow:auto; padding:10px; width:528px; }Don’t you just LOVE this new untested theme with all these wonderful hacks?
[code] HTML output.
If you type in a [backtick] you get a wrapped in a [pre] tag (which is right so formatting is preserved as well).
The [pre] tag is the one that has the cool style on it.
#bborg-discussion #thread div.post pre { background-color:#FFFFFF; border:1px solid #EAEAEA; display:block; overflow:auto; padding:10px; width:528px; }Don’t you just LOVE this new untested theme with all these wonderful hacks?
[code] wrapped in a [pre] tag (which is right so formatting is preserved as well).
The [pre] tag is the one that has the cool style on it.
#bborg-discussion #thread div.post pre {
background-color:#FFFFFF;
border:1px solid #EAEAEA;
display:block;
overflow:auto;
padding:10px;
width:528px;
}Don’t you just LOVE this new untested theme with all these wonderful hacks?
June 19, 2010 at 3:19 pm #90020In reply to: Troubleshooting White Screen of Death
kevinjohngallagher
MemberThere have been a huge increase in the number of reported WSoD reports with WP3.0, and thankfully the WP team are taking notice.
These plugins ( https://wordpress.org/support/topic/411649 ) are definately causing issues. HeadSpace2 is the biggie there as it’s a very popular plugin. I’m quietly confident that it’ll hit alot of people
WPtaven has an article on it, though right now there’s alot of people saying how it was flawless for them (how that helps those who it wasn’t flawless for i’ll never know). You can find that here:
Zaerl has written a plugin found here ( http://pastebin.com/JhJzLjvQ ) that solves one of the problems with WP3/bbP tha was brought up in this thread ( https://bbpress.org/forums/topic/wp-30-beta-2-integrated-user-registration ).
Having seen the hit my servers are taking from WP2.9.2 -> WP3.0RC3 my first guess would be memory. Deep integration of WP3 and bbP1 appears to be a nightmare, especially when I look at my one site thats still running bbP0.9&WP2.5.
Furthermore, I do believe we should start a “WordPress3.0 FAQ thread” that compiles what we know in the first post as a sticky. We’re going to face alot of questions in the next week or so, and maybe we could learn from some past mistakes
-
AuthorSearch Results