Search Results for 'code'
-
AuthorSearch Results
-
December 12, 2008 at 11:45 am #67711
In reply to: Login using Facebook Connect
_ck_
ParticipantFacebook just needs to offer OpenID like everyone else, not yet another proprietary standard.
The OpenID plugin for bbPress is nearly finished, I have an early working version, just need to finish the new account code.
Someone wrote a Facebook OpenID gateway somewhere, can’t find it at the moment.
December 12, 2008 at 10:25 am #69921In reply to: bbpress is slow like godaddy says?
chrishajer
Participant_ck_ – I doubt a visitor is complaining about either
1.298 - 35 queriesor0.489 - 35 queries– that’s not enough for people to complain. I could be wrong, and the performance tips are good, but I doubt this falls into the range of horrible for a forum visitor. Loading Adsense and Analytics takes more time than that.December 12, 2008 at 10:04 am #69871In reply to: Trac linking in the support forum
_ck_
Participanttesting:
bbPress is the #1 forum software for do-it-yourselfers

+should maybe be{3,8}insteadbackticks:
bbPress is the
#1forum software for do-it-yourselfersnope, still broken in backticks.
testing some more:
Joe User
100 Main Street Suite #17
Anywhere, USA
nope
In fact it removed the space between Suiteand#17[trac=123]see this ticket[/trac] or [trac]123[/trac] would be better.
Or just copy the entire url out of trac once you’ve looked up the number anyway.
December 12, 2008 at 9:55 am #69977In reply to: when bbp 1.0 release?
_ck_
ParticipantPlease see the other dozen “when will 1.0 be ready” topics.
bbPress 1.0 will absolutely, most certainly, not be done this year.
1.0 has many internal changes from 0.9 and several complete code rewrites on some functions and has many bugs.
Do not use the alpha on live sites.
December 12, 2008 at 8:51 am #69920In reply to: bbpress is slow like godaddy says?
_ck_
ParticipantAnother performance tweak that will help with the end user’s page loading times (but won’t reduce that
queries - timereport for the page generation) is to remove the shedload of external javascripts that bbPress tries to load on many pages. Note that doing this will remove the ajax features but bbPress falls back to the conventional page-reload method instead so that’s okay.Only admin can use most of the ajax features anyway so this is crazy that bbPress adds half a dozen scripts for everyone, including the bloated 100k jquery library.
This technique requires a mini-plugin unfortunately:
<?php
/*
Plugin Name: bb-tweaks
*/
// get rid of default forum scripts
remove_action('bb_head', 'bb_print_scripts');
?>(I’ve never tried it but it might be possible to just put the single line
remove_action('bb_head', 'bb_print_scripts');inside
functions.phpin the theme folder.December 12, 2008 at 8:40 am #69919In reply to: bbpress is slow like godaddy says?
_ck_
Participant1.298 - 35 queriesis absolutely horrible actually.However I only get
0.489 - 35 querieson that site which is barely acceptable.It’s probably due to an overloaded shared hosting box.
Let’s review some basics.
First of all, let’s make sure you are using 0.9 and not 1.0
(If you are using 1.0 I can’t really help you much because it’s slower than 0.9 for now and I keep explaining to everyone not to use it but they do anyway)
Performance 101: (for everyone)
1. go into
bb-config.phpand add this line:$bb->load_options = true;2. after you add the above line, queries should be under 20 per page, usually less than 15 – if they are not, then you have a misbehaving plugin (or are running 1.0)
3. if you run your own server or VPS, turn on the mysql cache
4. if you run your own server or VPS, install a PHP opcode cache
(eaccelerator, APC or xcache)
5. if you are on shared hosting ask your host why they don’t use 3 and 4 and if they don’t give you a good answer, get a better host
GoDaddy is up there in like the top 10 for people who dislike their hosts.
Just google the number of people that have trouble with them on wordpress.
But unlike WordPress, bbPress doesn’t have any page cache plugins yet so if your host sucks in the first place, any large php program is not going to perform well.
December 12, 2008 at 8:21 am #69680In reply to: Retrieving forum ID from post ID
_ck_
ParticipantIt’s extremely easy to get
forum<->topic<-> post relationships in bbPress.Depending on where you are, you may just be able to do a
global $topic,$bb_post;Then $topic or $bb_post will have the following objects inside:
$bb_post
post_id
forum_id
topic_id
poster_id
post_text
post_time
poster_ip
post_status
post_position
$topic
topic_id
topic_title
topic_slug
topic_poster
topic_poster_name
topic_last_poster
topic_last_poster_name
topic_start_time
topic_time
forum_id
topic_status
topic_open
topic_last_post_id
topic_sticky
topic_posts
tag_count
You use it like this:
global $topic; echo "$topic->topic_title";or to answer your original question:
global $bb_post; echo "$bb_post->forum_id";Of course doing it this way bypasses any filters that may be in place from plugins but that may not matter if you are just trying to do something simple.
December 12, 2008 at 5:13 am #69904In reply to: Getting forum page number
serpentguard1701
MemberWell, I found this function that’s used by the rss.php file:
function get_post_link( $post_id = 0 ) {
$bb_post = bb_get_post( get_post_id( $post_id ) );
$page = get_page_number( $bb_post->post_position );
return apply_filters( 'get_post_link', get_topic_link( $bb_post->topic_id, $page ) . "#post-$bb_post->post_id", $bb_post->post_id );
}Is there a forum version fo the italicized portion of this function?
December 12, 2008 at 3:59 am #69917In reply to: bbpress is slow like godaddy says?
kevinjohngallagher
MemberHi vannak,
If the forum you’re reffering to is the one linked to in your profile, then it seems to be running nicely.
If you like showing off the fact that your server rocks,
1.298 – 35 queries
That said, if you think it’s running slowly the best bet is to do a few things:
1) delete any plugins that you are not using (i know they shouldnt have any effect but always better to be safe than sorry, wordpress 2.6.1 had a similar bug)
2) deactivate plugins one at a time, and see if you notice any difference.
3) use Yslow to see what is taking the time to load from the front-end.
4) try disabling the adverts on the website. they shouldn’t have an effect, but sometimes Flash banners can do that (though they should only slow it down after the page has loaded)
5) Ask godaddy for the server logs and error logs, or ask them exactly what page/script is slow.
BBpress isn’t perfect, but the code is well written and generally very very fast.
December 12, 2008 at 3:55 am #69902In reply to: Getting forum page number
kevinjohngallagher
MemberHey JJJ,
its my understanding that all functions, including those that have the template hardcoded into it, require a plug-in to overwrite.
This sadly cant be kept in the template folder, nor turned on as default.
December 12, 2008 at 3:31 am #69975In reply to: when bbp 1.0 release?
John James Jacoby
KeymasterDear Santa,
For Christmas this year I would like bbPress 1.0 with working WordPress integration, and for daddy to find a job.
Love,
Little Johnny
@vannak: How many licks does it take to get to the center of a Tootsie Pop?The world, will never know.
December 12, 2008 at 3:28 am #69914In reply to: Need user role explanation
John James Jacoby
KeymasterThe Key Manager is basically designed to always be able to do everything, without any loss of functionality. Where as Admin’s can be changed to be whatever you would like them to be.
If you want the side by side comparison:
$roles->add_role( 'keymaster', __('Key Master'), array(
'use_keys' => true, // Verb forms of roles - keymaster
'administrate' => true, // administrator
'moderate' => true, // moderator
'participate' => true, // member
'keep_gate' => true, // Make new Key Masters //+
'import_export' => true, // Import and export data //+
'recount' => true, // bb-do-counts.php //+
'manage_options' => true, // backend //+
'manage_themes' => true, // Themes //+
'manage_plugins' => true, // Plugins //+
'manage_options' => true, // Options //+
'edit_users' => true,
'manage_tags' => true, // Rename, Merge, Destroy
'edit_others_favorites' => true,
'manage_forums' => true, // Add/Rename forum
'delete_forums' => true, // Delete forum
'delete_topics' => true,
'close_topics' => true,
'stick_topics' => true,
'move_topics' => true,
'view_by_ip' => true, // view-ip.php
'edit_closed' => true, // Edit closed topics
'edit_deleted' => true, // Edit deleted topics/posts
'browse_deleted' => true, // Use 'deleted' view
'edit_others_tags' => true,
'edit_others_topics' => true,
'delete_posts' => true,
'throttle' => true, // Post back to back arbitrarily quickly
'ignore_edit_lock' => true,
'edit_others_posts' => true,
'edit_favorites' => true,
'edit_tags' => true,
'edit_topics' => true, // Edit title, resolution status
'edit_posts' => true,
'edit_profile' => true,
'write_topics' => true,
'write_posts' => true,
'change_password' => true,
'read' => true
) );
$roles->add_role( 'administrator', __('Administrator'), array(
'administrate' => true,
'moderate' => true,
'participate' => true,
'edit_users' => true, //+
'edit_others_favorites' => true, //+
'manage_forums' => true, //+
'delete_forums' => true, //+
'manage_tags' => true,
'delete_topics' => true,
'close_topics' => true,
'stick_topics' => true,
'move_topics' => true,
'view_by_ip' => true,
'edit_closed' => true,
'edit_deleted' => true,
'browse_deleted' => true,
'edit_others_tags' => true,
'edit_others_topics' => true,
'delete_posts' => true,
'throttle' => true,
'ignore_edit_lock' => true,
'edit_others_posts' => true,
'edit_favorites' => true,
'edit_tags' => true,
'edit_topics' => true,
'edit_posts' => true,
'edit_profile' => true,
'write_topics' => true,
'write_posts' => true,
'change_password' => true,
'read' => true
) );December 11, 2008 at 10:45 pm #69894In reply to: wp27final + 1.02a no “Add new” link
ganzua
MemberPerhaps there is a way.
This guy;
http://www.adityanaik.com/bbpress-and-wordpress-integration/
integrated wp 2.6.3 with bbpress;
meta name="generator" content="WordPress 2.6.3"We are missing something.
December 11, 2008 at 7:32 pm #69217In reply to: BBpress faster than WordPress
chrishajer
ParticipantI recently ran into a problem with eaccelerator installed from source:
When you update PHP, Apache will not restart since eaccelerator was compiled with an earlier version of PHP, and Apache can’t load the eaccelerator.so binary. If Apache won’t start, maybe this is why. Apache didn’t give any good messages at all, but
php -mon the command line showed a problem with the eaccelerator binary being compiled for an earlier version of PHP. So, just recompile, reinstall and restart Apache.Hope that helps someone.
December 11, 2008 at 5:44 pm #4403Topic: Thinking of using bbPress for a forum…
in forum Requests & Feedbackkgosser
MemberHey all,
So I’ve been checking out various forums to use for my business’ site, and I’ve got it paired down to bbPress and Vanilla. I’m leaning towards bbPress, but I have a few questions that I’m seeking answers to first. If anyone can help me out, it would be greatly appreciated!
(1) Is it available either by default or a plug-in to allow users to post <embed> or <object> snippets to show Flash files?
(2) Is there a plug-in available to allow image uploading to our server, or are all the ways to get an image to display within a thread by bb [img]code or the “Allow Images” plug-in?
(3) Would you consider bbPress’ theme customization to be about as equal (or easier) than WordPress’?
(4) Are there plug-ins to allow for either digg-style voting or normal 5-star voting? Being able to host community-driven contests is important for this project.
Thanks a lot in advance. One of the reasons I always use WordPress for my projects is because the community is one of the best on the Web, so I hope it rubs off a little bit for bbPress! Thanks again!
December 11, 2008 at 5:20 pm #69866In reply to: Trac linking in the support forum
kevinjohngallagher
MemberHey we can put the bug in trac and link to it now though
December 11, 2008 at 3:23 pm #69865In reply to: Trac linking in the support forum
Ipstenu (Mika Epstein)
ModeratorTracklinking has had the bizarre effect of breaking apostrophes when in code blocks.
‘ is just fine.
'is not so much.December 11, 2008 at 2:49 pm #69678In reply to: Retrieving forum ID from post ID
_ck_
ParticipantYou can do it with a custom query.
Something like
$forum_id=$bbdb->get_var("SELECT forum_id FROM $bbdb->posts WHERE post_id=$post_id LIMIT 1");where $post_id is your post id.
This will generate an extra query per page but for just editing that would be fine.
December 11, 2008 at 2:40 pm #69629In reply to: New forum layout
Ipstenu (Mika Epstein)
ModeratorI’m partial to without the break, if there’s no color change.
Back to this theme, there’s something wonky with how the code markup shows apostrophes …
'is not the same as ‘December 11, 2008 at 2:37 pm #69627In reply to: New forum layout
Ipstenu (Mika Epstein)
ModeratorThe bb image was really small on mine, I like that third one, but yeah, when you’re shooting for 80×15, it’s hard to get something CLEAR
December 11, 2008 at 12:21 pm #69893In reply to: wp27final + 1.02a no “Add new” link
ganzua
MemberThanks for your answer John
Then there is no way to go further
December 11, 2008 at 11:24 am #69214In reply to: BBpress faster than WordPress
_ck_
ParticipantApache, both 1 and 2 are based on old slow code. You can spend hours fiddling with performance settings and barely fix the problem. They don’t do well for very active sites and apache can be easily ddos’ed. You can either throw more hardware at the problem or replace apache when the loads get too high.
LiteSpeed is literally twice as fast/half the load as apache (it’s also a bit expensive for the commercial version but there is a 5 account version available for free). Additionally it can plow through many kinds of ddos attacks. It’s a piece of cake to install and configure (GUI based).
The free Nginx is also twice as fast as Apache but LiteSpeed can use Apache’s httpd.conf and .htaccess files so it’s very easy to install (10 minutes tops) and you can even switch back to Apache if so desired. Nginx requires a complete rewrite of any mod_rewrite rules, etc. and requires technical skill to install/operate.
Matt is slowly converting some of Automattic’s server from LiteSpeed to Nginx to keep the ideals of open source but LiteSpeed is still too good and has no serious competition as far as compatibility so I bet he will probably continue to run it on some servers for years.
As far as opcode caches I am surprised you had trouble with eaccelerator which tends to be the most compatible/easiest to install. APC does have some quirks but it’s being adopted by PHP and may become “built in” in some future version.
December 11, 2008 at 11:09 am #4401Topic: wp27final + 1.02a no “Add new” link
in forum Troubleshootingganzua
MemberHi!
I tried to integrate wp27final and bbpress 1.02a. I installed bbpress, followed the integration steps during installation, then changed bb-config.php with this code;
define('WP_BB', true);
if ( !defined('DB_NAME') ) {
require_once( dirname(__FILE__) . '/../wp-config.php');
}
$bb->wp_table_prefix = 'wp_'; // your wordpress db prefix is
$bb->wp_home = 'http://myhost.com';
$bb->wp_siteurl = 'http://myhost.com';…and I’ve found several issues, the first one the no admin panel issue already discussed in this forum, but the fact is that I have no “Add new” link when logged in as user different to admin. Besides, I have no post form when logged in as admin and click “Add new”.
I can’t go further with my integration but I like how bbpress is being developed, it is pretty fast and simple, just what I needed. Is there any way I can solve these issues?
December 11, 2008 at 5:20 am #63017In reply to: hide subforums on main page
chaslie
MemberOK – now I gotcha:
If using the default (kakumei) theme, lo0k for this code which is about line 43:
<?php if ( bb_forums() ) : ?>
REPLACE it with this code:
<?php if ( bb_forums(“depth=1”) ) : ?>
Works beatifuuly as described.
December 11, 2008 at 2:07 am #69649In reply to: bbPress Facebook page
kevinjohngallagher
MemberHi Ipstenu,
I’m going to disagree with you a little mate, and try not to take it off topic too much.
Yes, each adjective is subjective to ones perspective. “easy” and “alot” etc. can mean different things to different people. That said, lets look at them a sec.
“extensive plugins?”
There are just under 120 plugins for BBPress.
Over 1/3rd haven’t been updated in a year. I’d wager a good few of them don’t work anymore.
And the ones with latest comments 6-12 months ago, usually don’t work either.
Also from what i’ve seen about 1/4 of them are redundant or useless in 0.9 / 1.0alpha.
So we’re looking at maybe 40-50 plugins.
Does anyone think that’s “extensive”?
I know it’s subjective, but, um, well you can make up your own mind.
“You CAN redesign the hell out of a bbPress site”
To a certain extent i’ll agree and disagree with it. To redesign a bbpress forum so that it doesn’t look like this theme actually takes a bucket load of work. I’ve done it for 3 websites, and every time it’s involved me writing full on plugins just to output the right code, or W3C acceptable code, or overwrite the damned code thats stored outwith the templates (why is that btw?).
Can i stop and ask that? WHY does a theme designer NEED to write alot of non basic php code as a separate to their theme plugin, just to over write HARDCODED design output? Since when was hardcoding design output into the core of a theme-able piece of software a good idea?
What you can’t do with bbpress, is hand a Designer/ HTML coder your template files and expect to get anything back that’s not a flat output of a table. It’s a point I raised a while ago (and i’ll not bang on about it) but BBpress works at doing one thing. Outputting a flat list from a database.
In terms of your all forums kinda look the same , i have to agree in this instance. Most forums, ipb/vBulletin/phpBB etc do all look the same. but guess what. bbpress doesn’t look much like them. I’ve stated before BBpress’s horrific handling of parent/children with categories etc. is bloody woeful; but if you’re talking about usability, then bbpress starts to fall down a little.
What it outputs is simple, yes, to the user, but it’s not very perceptive. Finding a specific post or vital information (say that 0.9 = WP2.5 – you know , something you’d expect to be on the documentation or download page but is actually on page 3 of a topic started 1 year ago) , is a disaster. It’s reliant on the user
who posted the content using TAGS appropriotely and ofc it requires a better search function.
Lets not forget that ‘tags’ are fairly new, and really only web savvy people use/know about them. A huge chunk of this software’s cross-pollination and iteration is taken out of the developers hands and placed smack bang in teh hand of the end user (whom we know nothing about nor can reply on).
Just because something is simple/plain, does not make it inherently usable.
Think Boo.com.
================================================
Anyway, there are a number of things we’d all like to see fixed in bbpress. Some more vital than others. we’ll all agree and disagree on many, but my over riding feeling is this:
Our Clients, customers, friends, colleagues, schools, own sites, will at some stage like to, nah need to, be updated to the latest version of WordPress. it will vary from person to person, but at some stage you know that a wordpress upgrade is probably in the pipes.
But if you’re using BBpress, then you’ve been forced to hold off upgrading for over half a year. We will be/are a whole version behind, and surely someone can see that it’s got to be an issue.
I suppose what i dont understand is, and maybe i’m the only one, so please 100% feel free to explain it to me like an idiot.
if The most requested topic on this website is “wordpress integration”, and the singular fail point of the software is “wordpress integration”, and teh company that owns this software also own wordpress, and it happens to be your singular initial selling point of the software, um, well, WHY THE HELL HAS IT NOT BEEN THE ONLY PRIORITY AND FIXED IN THE 3 MONTHS SINCE 1.0ALPHA CAME OUT?
We’ve had other fixes, new code, new features, a facebook page (see i hadn’t forgotten), but yet without even a hint of when this base level feature might appear, we’re told it’s a moving target.
Please, explain it to me like a 5 year old, that hasn’t read the blog posts linking to the $29 million dollars investment, that also lead to Sam being taken on as a full time developer on bbpress (i.e. dont say no time/resources).
-
AuthorSearch Results