Search Results for 'code'
-
AuthorSearch Results
-
July 20, 2010 at 12:57 pm #91320
Ivaylo Draganov
MemberI should really consider learning how to use subversion
I’ll try that and post the result shortly.
July 20, 2010 at 12:55 pm #34780Topic: One WordPress Vs Multiple bbPress
in forum Plugins_KB_
ParticipantSo, here exactly What I want,
Suppose I’ve planned to run multiple discussion boards, and I’m using
http://zptest.info/ ( WordPress )
http://zptest.info/students/ [bbpress 1]
http://zptest.info/teachers/ [bbpress 2]
http://zptest.info/management/ [bbpress 3]
I’ve done:
-1: Shared User Integration ( Works )
-2: Shared Database Integration ( Works )
-3: Shared Cookies Integration (Not Works, that’s what I want)
I’ve followed all instruction from bbpress Integration tutorial
Now cookies not works, you can test it at zptest.info
user: test
pass: test
(I can send also admin’s or ftp detail, if anyone really interested)
cookies are conflicting, sometimes not logout from other boards.
Suggestion:
I’m hopping there should be a plugin, just for set cookies for multiple boards in same domain.
People just do, user integration, and database integration.
then install ( cookies plugin ), that’s all,
Come on, _ck_, you can do it,

Thanks
KB
July 20, 2010 at 12:22 pm #91317Ivaylo Draganov
Memberphpinfo()tells me that PHP is Version 5.2.13Now, pretend I am crazy and tripple check the settings at the top
LOGGED_IN_KEY
LOGGED_IN_SALT
The two keys and salts are the same. Keys I get from
wp-config.phpand salts fromwp-admin/options.php.take a REALLY good look at the cookie data – it changes between bbPress and WP but really only two parts should change, the expire date and the hash. So between the last | in the data
How the hash forms is still not quite clear to me, but obviously that’s where the issue lies. I notice that it’s different every time I log in (no matter from which side). I if log in/out of WP 10 times I get 10 different hashes. But maybe that’s the normal way.
Other things to note:
* I am using year long cookies plugin on the bbPress side
* bbPress has a trailing slash in these settings:
$bb->wp_siteurl = 'http://dev.example.net/';
$bb->wp_home = 'http://dev.example.net/';whereas WP has them without the slash:
define('WP_HOME', 'http://dev.example.net');
define('WP_SITEURL', 'http://dev.example.net');* as you can see I am doing this on a
devsubdomain and not on the live site. Even though I did test it on the live site(with the main domain) too and the result was the same* the lines you mentioned in the plugin did not match: I had that code on lines 70 and 83
*
define('AUTH_COOKIE_VERSION', 2 );should be added at the top of_freshly-baked-cookies.php, right? I did not exist there in the plugin download, so I added it before starting the testsThanks a lot for helping out
July 20, 2010 at 11:22 am #91440In reply to: bbPress.org is running 1.1-alpha-2475 now
Gautam Gupta
ParticipantWhen editing a reply, the “Notify me of followup posts via e-mail” text appears twice (once below the “Allowed markup” and once above.)
I think this is related to theme, I didn’t happen on my installation with Kakumei.
This means that the theme here doesn’t contain
edit-form.phpand is using Kakumei’s. In the patch I posted, the action (to add the checkbox) is removed infunctions.phpand is instead added at a custom location in Kakumei’sedit-form.php, and as functions of Kakumei aren’t loaded here, the default action isn’t removed and the checkbox is displayed twice. This doesn’t happen withpost-form.phpas it is present here.July 20, 2010 at 10:53 am #91500kevinjohngallagher
MemberI’d strongly recommend this: http://wpbbpthemes.org/integration/
It covers installation in more than 8 steps, and should help a fair bit
July 20, 2010 at 10:23 am #91400ZKuJoe
MemberI originally used WordPress for my blog but now I use bbPress for my blog. I have no plans on ever installing WordPress again since bbPress acts as my blog while functioning like a forum.
If bbPress was formed into a plugin instead of a standalone script, I will continue using it and do me and my team will do our own coding/bug fixes.
July 20, 2010 at 10:05 am #91399Erlend
ParticipantBut you certainly are not going to get anyone who is NOT using WordPress to install WordPress just to create a forum. There are far better options out there.
You’re probably right. Yet allow me to give an example of how major plugins like bbPress and BuddyPress complement WordPress in a way that greatly adds to its appeal (i.e. grows the customer base beyond those interested in WordPress)
Much like WordPress, our project (jMonkeyEngine) is a continuation of someone else’s work. When we picked up the reins of the jmonkeyengine.com website, we were stuck with three separate content systems (SMF, DokuWiki, WordPress) and a mess of custom code. We looked at several options, like:
– Extend SMF (no doubt the heart of our community activities) into a full-scale CMS
– Tie all systems together with a solution like Atlassian’s Crowd
– Replace our custom front page with Joomla! and use JFusion to tie all four tightly together.
– Replace everything with a widely extended Joomla!
We practically tried all of those options and more in practice, either in testing environments or on our live site. Meanwhile I’d been looking at complete ‘community solutions’, like Elgg, OpenWack, JomSocial, BuddyPress…
(I definitely looked at Drupal as well, but they just didn’t seem to have anything near as simple as say JomSocial that just goes ‘boom, now you can start build your community).
Then bbPress came to BuddyPress, and I made a decision. I proposed an overhaul and we got moving:
http://www.jmonkeyengine.com/forum/index.php?topic=13934.0
The only reason we’re not spamming press-boards with ‘look at us!’ links yet is because we made the decision to move everything over at once, and that includes the risky decision of adopting the BuddyPress-Wiki plugin (every other essential has been covered by core features) to replace our DokuWiki. With D.P. Cartwright’s dedicated help we’re just about there though.
Erm, point ahoy!
So the point I’m trying to make is, we never stopped to consider WordPress as a CMS, until BuddyPress arrived as the major complement to fulfill our every need in one package, as opposed to 20+ plugins. Having used WordPress for my own portfolio page and general sandbox play I already knew how intuitive (extremely so when compared to Joomla!) and easy to extend it is. When the last remaining piece of the puzzle arrived, the choice was a no-brainer. I imagine many will come to the same realization with bbPress.
I know I did not prove you wrong; I just figured people might find this brief case study interesting.
July 20, 2010 at 9:14 am #91289ZKuJoe
MemberI don’t get it. bbPress is open source and under the GNU GPL license. If the current teams stops developing it I’m sure somebody may pick it up. I for one won’t stop using it even if me or my co-workers have to code our own bug fixes.
July 20, 2010 at 7:46 am #91238In reply to: Moving posts to catagories is disabled
mr_pelle
ParticipantFrom the same page where you usually create forum. Remember to select its parent forum from the dropdown menu!
July 20, 2010 at 7:31 am #91260In reply to: What should be a Plugin, and what should be in Core
John James Jacoby
Keymasterjohnhiler, part of us using WordPress’s built in API and architecture means we’re actually leaving turned off a lot of functionality that could easily be turned on, filtered, changed, or added to with actions.
Without it being too over the top, we’re trying to plan ahead and put actions and filters where I think I would use them myself. Since most of what we do for clients is develop custom plugins to change the way WordPress functions, we should be able to apply that experience to bbPress.
One of the things we’ve struggled on with BuddyPress, is how to make plugins, for plugins. Since plugins don’t have an internal dependency like there is on CSS or JS, we’ve had to filter and action our way into a workable solution.
So while bbPress itself is a plugin, the plan is for other plugins to be able to sneak in and change bbPress behavior before it loads, or be able to ‘plug in’ the same as always. So bbPress will be its own core, but also modular and pluggable.
All this, while striving to be as light as possible. Our work is cut out for us.
July 20, 2010 at 7:18 am #91397John James Jacoby
KeymasterI think if there was such a thing as optimism police, they would live in these forums.

I also think, the people we will win over, are everyone that thinks this is the worst thing ever to happen since burnt bread.
July 20, 2010 at 7:06 am #90516kevinjohngallagher
Member_ck_,
Really apprecaite the hints.
I’m definately not a PHP coder by trade, so these sorts of tips are invaluable.
Cheers,
Kev
July 20, 2010 at 6:57 am #91205In reply to: bbPress activity metrics
_ck_
ParticipantHey stats are working in the plugin section, awesome. Thank Matt.
Now just get tag import working again (from the
readme.txt) and the plugin section practically back to 100%July 20, 2010 at 6:26 am #90515_ck_
ParticipantHey good work.
Let me make a strong suggestion in your code technique.
All those variable names being tossed around as globals is somewhat dangerous – someone is going to accidentally “step” on one someday.
Instead how about an array or object instead?
ie.
$topic_add_quotes=blah;
$topic_add_sticky=blah;
$topic_add_sticky_label=blah;
etc.and
global $topic_add_quotes;
global $topic_add_sticky;
global $topic_add_sticky_label;
etc.instead becomes
$kjg_seo->topic_add_quotes=blah;
$kjg_seo->topic_add_sticky=blah;
$kjg_seo->topic_add_sticky_label=blah;
etc.and then no matter how many items you just pass one pointer in your functions
global $kjg_seo;The added benefit is you can later loop through all the elements if you make an admin menu.
Also, when switching based on page type, constantly calling all the different functions, ie is_forum, is_front, is_topic etc is “expensive” because of how bb_get_location works
Instead just
$location=bb_get_location();and then look at what it sends you in the string which is ultra fast for each of the comparisons.
July 20, 2010 at 5:22 am #91278In reply to: Turned bbPress into my blog
ZKuJoe
MemberThanks for the feedback and the link to the plugin but I don’t want it to look or feel like a blog, just act like a blog. I prefer the thread/post structure over the entry/comment structure. I was originally using WordPress and had a MyBB forum on the same site, then I switched over to just a MyBB forum with a Blog plugin, but then found that bbPress felt like both a blog and forum without requiring different installations to achieve both. I just created certain categories that only I could post in (the “My” areas) for my “blog areas” and the rest are open for free discussion.

I am working on getting the first post of the latest topic to appear on the front page but I have to many other development projects on my plate at the moment.
July 20, 2010 at 4:44 am #91259In reply to: What should be a Plugin, and what should be in Core
johnhiler
Member“Shared-hosts are the bread and butter of WordPress usage. The good news is servers are way more powerful than when I wrote the first bbPress, and we can take advantage of that to provide a richer experience.”
This is definitely true. It’s kind of the Microsoft approach: grow the OS core, and lean on the hardware handle the growing codebase. It works for smaller sites that don’t hit scaling limits and for larger sites that can afford bigger hardware.
“The uncertainty of testing the interactions of N factorial plugins is daunting and gets untenable quickly.”
Plugin interaction is definitely a concern. But in practice, I have rarely if ever had plugins conflict with each other.
“Better to draw a line in the sand and promise the user ‘these things will always work together.'”
I think the “promise” model depends on having a large and growing team of developers actively managing the core. That hasn’t been the case in the past, so moving stuff into the core has actually slowed down development of the platform quite a bit. Perhaps things will be different in the future…
In any case, even with developers available to help build up the core – I’d still prefer to have a model that embraces plugin developers, and then has specific plugins blessed as official branches. This is where more social forms of source control like GitHub may be better than Subversion; plugins wouldn’t be dependent on just one developer, since anyone can seamlessly create and post a new branch. It’s much more like the pastebin stuff that’s constantly going on here in the bbPress forums.
Thanks for the reply!
John
July 20, 2010 at 4:19 am #91340Matt Mullenweg
KeymasterI also remember 0.7 fondly — along with Akismet it was the released product with the highest percentage of my code. Last year I shifted most of my code to internal tools, and this year that has waned even more due to the force of nature that is Mr Momrik my Technical Assistant.
That said, there is minimalist-beautiful, and minimalist-useless. Even Ferarris have stereo systems. I think we can find the balance between the two even though it might mean we misstep in one direction or the other along the way.
I agree with you more than you. In hindsight BackPress was a mistake. Its goal was to unify WP and bbP development, and it just ended up crippling bbPress with needless abstraction and didn’t actually generate any user-critical improvements, like being able to use WordPress themes.
July 20, 2010 at 4:00 am #91257In reply to: What should be a Plugin, and what should be in Core
johnhiler
Member“johnhiler, if you like plugin-centric development, you should love the bbPress plugin so far (hopefully)
Hopefully it’s able to walk the line and offer the best to both.”@John James Jacoby – I’d love to hear more! What do you mean?
July 20, 2010 at 3:38 am #91395John James Jacoby
KeymasterI think bbPress as a plugin is going to win a lot of people once it’s ready and out in the wild.

Erlend, will try my darnedest to deliver
July 20, 2010 at 3:34 am #91256In reply to: What should be a Plugin, and what should be in Core
John James Jacoby
Keymasterjohnhiler, if you like plugin-centric development, you should love the bbPress plugin so far (hopefully)
Hopefully it’s able to walk the line and offer the best to both.What is a plugin and what is core is always one of those topics that tends to change and drift with the times. 6 years ago having properly formatted links to someones blogroll was considered important enough for WordPress core, but chances are people are using that functionality less and less as time goes on and people are able to connect to people more quickly and organically.
kevinjohn, we haven’t tackled it in the plugin version yet, but the difference between a ‘category’ and a ‘forum’ will be fairly distinct once we get it going. My experience working with the Categories Hierarchy project back in my phpBB days taught me the importance of handling the way those types of data behave.
July 20, 2010 at 1:01 am #89048In reply to: OneMoreThing.nl
johnnydoe
Memberi’ve echoed already everything before, but still whammy
July 20, 2010 at 12:48 am #89047In reply to: OneMoreThing.nl
kevinjohngallagher
MemberDude, blame sleep on my part. Add an echo
echo bb_get_avatar( $topic->topic_last_post_id , '48');July 20, 2010 at 12:42 am #89046In reply to: OneMoreThing.nl
johnnydoe
Memberso the
echo $topic->topic_last_post_id;string worked, i’ll get some i’d s like 1075, 1071, 1065 etcetera, but still no pictures the other way around, is there probably also a problem because i’m on localhost?July 20, 2010 at 12:30 am #34769Topic: bb_admin_link – Can I change the 'Admin' text?
in forum Themeselbuagnin
MemberHello,
I’m working on a site with full integration of WordPress & bbPress. Everything is working great! (After a fair bit of fiddling!
)So now I’m just working on cosmetics. I want to show both WordPress & bbPress admin links in the header. So I want to make it obvious which is which.
Is there anyway to get bb_admin_link to output something different than ‘Admin’. Does it take more arguments other than ‘after’ and ‘before’? Or do I need to hard-code it somewhere?
I’ve looked around a bit on the site, but I haven’t found much info on this function.
Thanks!
July 19, 2010 at 11:57 pm #89045In reply to: OneMoreThing.nl
kevinjohngallagher
MemberOk mate, first thing to test is, if you specify an ID, do you get an image.
eg: bb_get_avatar(1);
If so, aweosome. then we’ve narrowed down the problem to the ID we’re passing.
i’d also add this line:
echo $topic->topic_last_post_id;and see what that outputs. (should be a number).
-
AuthorSearch Results