Search Results for 'bbpress'
-
AuthorSearch Results
-
July 23, 2007 at 4:29 pm #58684
In reply to: I want to change bbPress’ default text
outchy
Memberworked like a CHARM. thank you so much.
July 23, 2007 at 3:44 pm #58683In reply to: I want to change bbPress’ default text
M
MemberFunny you mention this… I’m doing some work for a client at the moment using WordPress and I wanted to change some of the admin backend text without modifying core files. Localization using an
en.mofile turned out to be the way to go.I believe bbPress supports localization as well. It’s probably going to be the route you’ll want to take. (edit: it does, BBLANG in config.php, drop the .mo file in
/bb-includes/languages/I would assume)The file you’ll need to edit is a compiled binary, so you’ll have to get the bbpress.pot file, probably from the bbPress site somewhere. (edit: http://svn.automattic.com/bbpress-i18n/pot/tags/)
Once you’ve got the file, check out poEdit (http://sourceforge.net/projects/poedit/). It’s an open-source cross-platform mo/po/pot editor. Create a
New catalog from .pot file, make sure the option to compile to .mo is checked in the preferences, and you should be good to go.The top-left box contains the text to be translated, the bottom-left contains the “translation.” Ctrl-F, find the string, and you’re good from there.
Note: I haven’t tried this with bbPress but it works great with WordPress. Hope it helps.
July 23, 2007 at 3:41 pm #52444In reply to: blockquote?
azizpoonawalla
MemberI just installed bbpress yetserday on a new domain and have integrated it with wordpress using the plugin, etc. I also have found that the default template has no blockquote support. Even by including the blockquote definition given above by Trent verbatim in my bb-admin/style.css file does no good, here is a view source excerpt of the source file:
<blockquote><p>[Shakir 5:57] O you who believe! do not take for guardians those who take your religion for a mockery and a joke...</p></blockquote>as a test…
testing blockquote here in bbpress support
nope. above line doesnt render in blockquoted indent either.
i think the problem is the insertion of <p></p> tags around every paragraph. Since blockquote is an inline style, the p tags override it. we could get around this by using a div class=blockquote kind of construction instead but wouldt it be nicer if blockquote just worked out of the box?
July 23, 2007 at 3:10 pm #58682In reply to: I want to change bbPress’ default text
outchy
Memberwhere can i change this default text for these links at the bottom of topic.php:
<?php topic_delete_link(); ?> <?php topic_close_link(); ?> <?php topic_sticky_link(); ?>
i can’t find it except in template-functions.php, which i won’t ever touch again
July 23, 2007 at 12:57 pm #56720In reply to: Plugin: Avatar Upload
Sam Bauers
ParticipantI’ve made a few additions to the plugin which I think will help with a few of these issues that are coming up. They are:
1. Added an admin page for configuration.
2. Moved the actual plugin files to the root of the plugin.
3. Moved all other files except the readme.txt to an “additional-files” folder.
4. Removed the plugin header from the file “avatar-upload.php”, this can now be kept only in the main plugin file (this was the root cause of the activation error that Trent reported).
5. Updated readme.txt to reflect these changes.
Grab it here and review it, I think it is a good first step to easing installation of the plugin, and making it more compatible with the Plugin Browser.
July 23, 2007 at 10:31 am #56719In reply to: Plugin: Avatar Upload
LMD
ParticipantWell, yes, the plugin includes a file that must be placed into the bbPress root as well as another file that must be moved into the templates folder (either
bb-templates/kakumeiormy-templates/template-name). Not to mention the creation of theavatarsfolder and uploading of thedefaultavatar.I can not see any way around this other than uploading all files to the
my-plugins/avatar-uploadfolder and then using the script to move them to the right locations. Although, the file that remains in themy-pluginswould still need to be manually edited to set the plugin’s options. Likewise, the folder creation could be done with a script rather than the current manual creation (as SamBauers suggested on the Plugin Browser thread).Is there a hook for when a plugin is activated? Looking around bbPulp I found the following…
bb_deactivate_pluginXXX
bb_activate_plugin_XXX… but no information on how they are used.
July 23, 2007 at 4:22 am #2149Topic: Plugin: List Bookmarks
in forum Pluginsbobbyh
MemberA lot of bbPress forums have taken advantage of easy user integration with WordPress. The next step to integrating a WordPress blog and bbPress Forum is to create a bbPress Theme to match your WordPress Theme. bbPress doesn’t ship with built-in support for a sidebar, although I found it trivial to add this with a small plugin. What I really missed was a lightweight way to access WordPress’ wp_list_bookmarks Template Tag function, which lets you display your WordPress Blogroll links.
To add this functionality, I wrote this bbPress List Bookmarks plugin. To install this plugin, download the zip and unzip it to your bbPress server under your /my-plugins folder. The zip should extract to a folder named “list_bookmarks”, so the location of these files should be /my-plugins/list_bookmarks. Then, in your bbPress theme, add a wp_list_bookmarks Template Tag with whatever parameters you want (just like you would when editing a WordPress Theme). You shouldn’t need to hack any of the plugin files to get this to work, although of course you’ll have to edit your bbPress Theme to take advantage of this plugin.
This plugin should work whether or not these WordPress tables are located in the same database as your bbPress tables, as long as your WordPress tables are located in the same database as your integrated user tables.
I’ve tested this plugin on my site, which currently uses bbPress v0.8.2.1 and WordPress v2.2.1. If you use WordPress 2.0 or earlier and you want to use this plugin, you should probably upgrade your WordPress first as wp_list_bookmarks is a new function introduced in WordPress v2.1. I don’t think it should matter what version of bbPress you use.
This plugin ships with a database class called bbwpdb.php that lets us access the WordPress database tables. The bbwpdb.php file is basically a clone of the bbPress /bb-includes/db.php file, edited to let us retrieve WordPress tables. The remaining files are simply three WordPress PHP pages needed (wp-admin/admin-db.php, wp-includes/bookmark-templates.php, and wp-includes/bookmark.php), with slight edits to make it use the bbwpdb database class, instead of the WordPress or bbPress database class. The last file (list_bookmarks.php) just glues everything together.
July 22, 2007 at 10:53 pm #59269In reply to: let’s build a poll plugin!
M
MemberPeople that are attracted to bbPress will be attracted because of its out-of-the-box simplicity and its extensibility.
It’s great… if you want a plugin and you’ve messed around with WordPress for any length of time, you’ll feel right at home. I personally dislike polls… _ck_ obviously doesn’t, and he’s not alone. That’s the beauty of bbPress. These features aren’t crammed down your throat; rather they are completely optional.
Also, I don’t think that bbPress was built to win a popularity contest. It was built with certain things in mind and is continuing in that trend. I think that’s great.
One more thing… those people who were attracted to other forum software solutions (ie, SMF, IPB, vB), wanted something feature-bloated. All kinds of things pouring out of every corner. They wouldn’t be attracted to bbPress unless it became a miniature of what they were already using. And what’s the point in that, eh?
July 22, 2007 at 10:28 pm #59350In reply to: mysql_query() OR $bbdb->get_results() ?
M
MemberStick with the ezSQL format… it’ll be much easier.
Something like this (using
foreachinstead ofwhile):$query = "SELECT * FROM $bbdb->menu
WHERE set = 'inactive' ORDER BY order ASC";
$r = $bbdb->get_results( $query );
foreach( $r as $rw ) {
// now mess with $rw
echo $rw->database_row . "<br>n";
}Something that might be helpful would be to browse the source of the ezSQL class in
/wp-includes/wp-db.phpThe latest from Justin Vincent, the author
http://www.woyano.com/jv/ezsql
The version used in bbPress and WordPress
https://trac.wordpress.org/browser/trunk/wp-includes/wp-db.php
It might help you… you’d be able to see where
mysql_queryis begin used, and how to use the ezSQL format best.I think the reason you’re running into problems with
mysql_fetch_arrayis because it’s already used.Not sure on that one though… I would have to check.
Also, what might cause an error:
$bbdb->querywill not return anything at all.$bbdb->get_resultsneeds to be used for multi-dimensional array data,$bbdb->get_rowor$bbdb->get_colneed to be used for single array data, and$bbdb->get_varneeds to be used for non-array/string data.$bbdb->queryis used for inserting data, the others are used for retrieving it.Someone correct me if I’m wrong, but I’m pretty positive that’s how it goes.
ezSQL is lovely. It certainly takes the pain out of MySQL data manipulation.
So I guess that makes the answer to your question “Neither.”
$bbdb->get_resultsshould do the trick.And sorry for the screed.
July 22, 2007 at 10:51 am #57312In reply to: Plugin: bb-Topic-Views
_ck_
ParticipantThe topic metadata is returned with every set of topics returned to bbpress.
In the front page (or any topic page) for example, in the loop it can be found as $topic->views
There is no need for an extra mysql query. It’s possible to make a function that’s called with $topic if you don’t want to do it as simple as above.
July 22, 2007 at 5:20 am #57452In reply to: *seamless* wordpress integration
kenzor
MemberSo, if you now go through the template files for your bbPress installation, you will need to replace all instances of “
<?php bb_get_header(); ?>” with the WordPress command “<?php get_header(); ?>“. The same thing goes for the footers, so you change all instances of “<?php bb_get_footer(); ?>” to “<?php get_footer(); ?>“.I used a simpler method to achieve the same result. Rather than going through and changing every call to bb_get_header() and bb_get_footer() I simply created a custom header.php and footer.php file.
Then in the header I have only:
<?php get_header(); ?>In the footer I have only:
<?php get_footer(); ?>The benefit of this is you only need 2 custom files, you don’t need to search and replace all instances, and if you need to setup global vars for the more advanced WordPress integration techniques you only have to add them once into your custom header.php.
July 22, 2007 at 3:24 am #59266In reply to: let’s build a poll plugin!
_ck_
ParticipantI’ve never heard anyone on the various bbPress related channels talk about a need for poll features
Do you realise the irony in that if this thread had a poll, we could more easily evaluate how many people are interested in a poll feature. LOL. Also evaluate in other threads how much interest there is in wp+bb integration.
I simply want more people and therefore more talent in the fray that is bbpress. I’ve tried various clever google search patterns to try to determine the unique number of bbpress installs (that are publicly indexed) and I come up with around 200 installs. How many of these are active and have more than a few members is unknown of course. I’d like to see that number be 2000 by January and the only way for that to happen is to have certain common forum perks available. “Competitive frenzy” is one way to see it but inaccurate to my thoughts. I’d just call it feature motivation
July 22, 2007 at 2:16 am #59265In reply to: let’s build a poll plugin!
Sam Bauers
ParticipantI don’t think there’s any need to be so ernest about adoption rates of bbPress. I get the impression it would be supported by Automattic even if there was only one user.
Sure there is room for improvement, but I don’t think there is a need to emulate every feature on the forum software check list. I’ve never heard anyone on the various bbPress related channels talk about a need for poll features (for example), although I may be wrong. I think if you want to improve bbPress, then you would be better directing your energy at some of the existing bugs and well-known shortcomings (like search).
I’m not trying to stop you building a poll plugin by the way, and perhaps your suggestions regarding the quality of bbPress are well-founded. I just don’t think you are going to get much support from people around here by attempting to whip them into a competitive frenzy against other forum platforms.
July 22, 2007 at 1:26 am #59232In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantThere is a project with much broader scope to implement a full-blown plugin updater on WordPress which is part of the Google Summer of Code.
July 21, 2007 at 5:58 pm #59231In reply to: Plugin: Plugin browser for bbPress
jolaedana
MemberGreat stuff.
I think this is something it would be cool if WordPress should attempt- though it’d require one heck of an organizational system.
fel64
MemberCertainly there’s no code that does that in bbSync, nor in bbPress I think. Bizarre.
post_title? Have you maybe got a plugin that adds titles to posts?If only errors included where in the PHP code it was
July 21, 2007 at 2:33 pm #59336In reply to: performance idea, preloading general options
_ck_
Participanter, omg, tracing the code I think the option has already been written into bbpress and just not documented?
$bb->load_options = true
put into config.php ?
can it be that easy? does it work or not ready for primetime?
demonicume
MemberFel64, much appreciate your patience.
i get errors now, even though it posts in the forum now.
‘bbPress database error: [Unknown column ‘post_title’ in ‘field list’]
UPDATE bb_posts SET post_title='(No Title)’ WHERE post_id=’4′ ‘
‘Warning: Cannot modify header information – headers already sent by (output started at /home/host/public_html/domain/forums/bb-includes/db-mysqli.php:158) in /home/host/public_html/domain/wp-includes/pluggable.php on line 331’
it does post though. we’re almost!
July 21, 2007 at 1:10 pm #59264In reply to: let’s build a poll plugin!
_ck_
ParticipantWell there’s isn’t any forum development issue that is urgent in a firetruck sort of way (but that’s a cute expression).
Maybe I’m just being impatient, maybe it’s far too soon for bbpress to attract a decent base of plugin developers/users. I’d just like to see it sooner than later. 0.8.2.1 added some critical features, with just a few more it’s almost ready to hatch.
Let’s look at the finish line, one possible goal for bbpress. Take a look at a typical Simple Machines forum aka SMF (PHP+mysql, open source)
http://forums.lesterchan.net/ (that’s GamerZ)
look at the useful features on the page.
Now look at the lovely low query counts down below.
I’m a big vbulletin fan but that works better than vbulletin IMHO.
I wouldn’t call that forum “heavyweight” and I wouldn’t call SMF “bloated”. So what’s going to be bbpress’s niche then if it’s not going to do what SMF does?
(ps. poke through the menus on SMF 2.0 too http://www.simplemachines.org/community/ oh and then look at the insanely low query count at the bottom of a full page of posts)
July 21, 2007 at 12:08 pm #59263In reply to: let’s build a poll plugin!
fel64
MemberThe rush is that the project is “out there” and people are looking at it and coming to conclusions. Bad conclusions.
One of these days you’re going to have to show us the crystal ball that tells you everything about the users and potential users of bb.
What I find interesting is the belief around here that wordpress integration is not a major desire by most people evaluating it. How would we ever know the sheer number of people that have looked and been turned off?
I think that tidbit (or at least, in my case) is based on a hand-me-down from Trent who’s pretty close to the folk at automattic and they’d be the ones to know.
How would we ever know the sheer number of people that spontaneously combust when they use bb?! You make it sound like the entire internet trooped over and looked at bbPress yesterday, saw that there was no plugin for this or for that and decided that they would stick to phpBB.
I think that the implied opposite of ‘overly sophisticated’ (is that a polite ‘bloated’?) can equally be ‘lean and mean’ rather than ‘underly sophisticated’.
I think that bb just isn’t ready in a lot of ways for what you’re trying here. At 0.8.2.1 it doesn’t _need_ to have a full gallery of plugins yet just like it doesn’t yet have a full feature set. Sure more plugins are a good thing but it’s not urgent in the sort of firetruck way.
fel64
MemberYup. Add
global $bb_cache;to bbpress’ config.php.July 21, 2007 at 11:14 am #59262In reply to: let’s build a poll plugin!
_ck_
ParticipantThe rush is that the project is “out there” and people are looking at it and coming to conclusions. Bad conclusions.
I’ve tried to attract/recruit some of the major wordpress plugin writers to bbpress and the response has not been good unfortunately.
What I find interesting is the belief around here that wordpress integration is not a major desire by most people evaluating it. How would we ever know the sheer number of people that have looked and been turned off? At least one person on wikipedia sees it this way:
The project was created by Matt Mullenweg to support users of WordPress. Existing bulletin-board software was overly sophisticated for those requirements, so bbPress was created with the same focus as WordPress: a functional and extensible core, with all other capabilities delivered through plugins.
The “overly sophisticated” really bothers me.
Because that would mean bbpress’s goal is to be under sophisticated. Obviously that’s not the official statement but my point is that’s how it’s being perceived.
Keeping advanced features out of the core is fine. I get that. But some of those features should somehow exist in plugin form by now – at least that’s what I was hoping for. So now I am trying to make that happen, which I can barely do on my own as I am not a professional programmer by any means.
In some good news, GamerZ is happy to have me try porting his WP Polls. The bad news is he is unlikely to stop using his SMF forum software anytime soon and try bbpress. Not that I blame him right now.
July 21, 2007 at 4:13 am #59297In reply to: front page takes 50 mysql queries
_ck_
ParticipantActually he can’t really “fix” the plugin, it’s an overall integration failure which necessarily adds more mysql queries (just like the plugin needed to allow spaces adds more overhead).
Basically the output template will HAVE to use a difference function call than the “use display name” which fixes it everywhere else before it’s written back to the database.
It’s the cost of integration and yet another example of why bbpress isn’t magically better than any other forum for integration with wordpress.
(or just use my workaround to cut out the extra queries

ps. “mdawaffle” wasn’t a “dig” – isn’t that his nickname?
July 21, 2007 at 4:01 am #59316_ck_
ParticipantYup this is another area where bbpress has to be fixed before it hits the mainstream (or before the mainstream will adopt it).
If you are using it with wordpress, for now you can route all the login/register links to wordpress which does a better job.
I discovered this by accident from the plugin that email favorites which I then had to hack directly to fix.
I’ll open a ticket in trac if there isn’t one already.
July 21, 2007 at 1:11 am #59230In reply to: Plugin: Plugin browser for bbPress
Sam Bauers
ParticipantI’ve updated the plugin to version 0.1.5 which adds support for plugins with sub-directories.
-
AuthorSearch Results