Search Results for '+.+default+.+'
-
AuthorSearch Results
-
July 25, 2007 at 12:57 pm #2156
Topic: Topic Pages
in forum TroubleshootingAndrew
MemberRight now bbpress appears to default to 15 post per topic before being paged. Where is the variable to reset this to another value?
fel64
MemberI did (I think) verify that the capabilities entry is being posted to wp_usermeta as a result of bbsync. If I disable the bbsync plug-in and post, a row with capabilities (without the bb_ prefix) is not added to wp_usermeta.
Yeah, I agree and you’re probably right. I think it’s an issue with bb being all confused when it’s loaded after wp, and not finding capabilities it assigns the defaults but with the wrong meta_key … or sumthin’?
Is the entry created every time you post? Is it only created if it doesn’t yet exist (or has been deleted)? Repeatability is where the problem is, since everyone seems to get different problems and I haven’t had that one.
July 24, 2007 at 9:47 pm #59323In reply to: Strange (?) (404) report i Firebug
oledole
MemberI’ll link it. And it’s the same userid over at WP as here att bbpress.
Turning of/setting WP permalinks to default fixes it at my site.
crowspeaker
Memberfel,
Using a forum name instead of a number in the Write Post screen while the default is left blank also results in no post to the forum.
Anything I put in bbsync ~ forum box in the Write Post screen is overridden by what is in the default screen.
So a summary; no posts if default is empty on config screen; posts only if the default screen is filled in and then posts only to that forum, overriding anything in the Write screen.
BTW, I have two additional integration plugins running: in BBPress, I have WordPress Integration 0.7 by Michael D Adams; in WP I have bbPress Integration 0.74 also by Michael D Adams.
July 24, 2007 at 10:46 am #58688In reply to: I want to change bbPress’ default text
outchy
Memberi think that mysterious text appears when some kind of system text is missing:
for example, when i changed this line in login.php from:
<h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(‘Log in’) ; ?></h2>
to
<h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(”) ; ?></h2>
that crazy text appeared where ‘Log in’ should have been. hope this helps.
crowspeaker
MemberIt’s not finding any error logs.
I did get it to post something in the forum from WP, but it used the default forum id rather than the one I put in during the posting process. Going back and leaving it blank on the options page causes the post not to appear in the forum.
Also, once I posted, a new row was created in wp_user_meta for the post with my user id, the meta-key of capabilities (rather than wp_ or bb_capabilites) nad a capability set to “member”.
July 23, 2007 at 6:15 pm #58687In reply to: I want to change bbPress’ default text
outchy
Memberyeah, login with this info:
Your username is: supercoolman
Your password is: 1c46c2
You can now log in: http://www.manonfire.cc/sk6ers/
then click here:
http://www.manonfire.cc/sk6ers/topic.php?id=4&page&replies=3
it appears above the textarea box
July 23, 2007 at 5:59 pm #58686In reply to: I want to change bbPress’ default text
M
MemberMost peculiar. I’ll look into it later.
Do you have a live example?
July 23, 2007 at 5:44 pm #58685In reply to: I want to change bbPress’ default text
outchy
Memberone thing though, i just noticed. above all of my forms, the following text is appearing:
Project-Id-Version: POT-Creation-Date: PO-Revision-Date: 2007-07-23 13:42-0500 Last-Translator: NJO Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit
is there a way to get rid of that?
July 23, 2007 at 4:30 pm #58905In reply to: Why “favorites” ? Bad terminology choice?
M
Member@_ck_ – “Hack” core files = baaad. Try localization… it works for bbPress and WordPress. Easy to do as well.
If you don’t like the “favorites” text, you can change it without losing the changes on an update. Not updating because of some little changes you made is bad news indeed. Might as well wear a sign that says “hack me.”
July 23, 2007 at 4:29 pm #58684In reply to: I want to change bbPress’ default text
outchy
Memberworked like a CHARM. thank you so much.
July 23, 2007 at 3:58 pm #52445In reply to: blockquote?
fel64
Memberverbatim in my bb-admin/style.css file does no good
because there are no blockquotes in bb-Admin. Apply them to your theme, which should be in my-templates/themename/style.css. I agree, kakumei needs default blockquote support. I’ll add a trac ticket or sumthin’.
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.mo
file 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:43 pm #56724In reply to: Plugin: Avatar Upload
LMD
ParticipantThanks Sam! That’s awsome. I’ve downloaded and reviewed the code and I’ve made a couple of small modifications – added an option to the admin page and a tiny bit of validating (so that you can’t have a non-numerical or zero max_width etc — actually setting the sizes to zero will now reset the options to their “factory defaults”).
@Plugin Users: I’m adding an unsharp mask routine to the reszing code before I commit the updates, so it might not be ready until tomorrow. If you’ve downloaded Sam’s update, you will have to do another update later.
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 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/kakumei
ormy-templates/template-name
). Not to mention the creation of theavatars
folder and uploading of thedefault
avatar.I can not see any way around this other than uploading all files to the
my-plugins/avatar-upload
folder and then using the script to move them to the right locations. Although, the file that remains in themy-plugins
would 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 22, 2007 at 1:38 pm #57313In reply to: Plugin: bb-Topic-Views
_ck_
ParticipantHere’s a plugin to extend the topic-views plugin and add a “most-views” view page (ie. view.php?view=most-views)
It does it with a minimum number of mysql calls, just 10 to display an entire page on my setup. You have to hack your views.php template to add the views column, use $topic->views for the view count to use the cached data in memory instead of an extra mysql query for each topic.
function most_views_views( $views ) {
global $views;
$views['most-views'] = 'Topics with the most views';
return $views;
}
add_filter('bb_views', 'most_views_views');
function most_views( $view ) {
global $bbdb, $topics, $view_count;
switch ( $view ) :
case 'most-views' :
$limit = bb_get_option('page_topics');
$where = apply_filters('get_latest_topics_where','');
$most_views = $bbdb->get_results("SELECT topic_id FROM $bbdb->topicmeta WHERE meta_key='views' ORDER BY cast(meta_value as UNSIGNED) DESC LIMIT $limit");
foreach (array_keys($most_views) as $i) {$trans[$most_views[$i]->topic_id] =& $most_views[$i];} $ids = join(',', array_keys($trans));
$topics ="SELECT * FROM $bbdb->topics WHERE topic_id IN ($ids) $where ORDER BY FIELD(topic_id, $ids)";
$topics = $bbdb->get_results($topics);
$view_count = count($topics);
$topics = bb_append_meta( $topics, 'topic' );
break;
default :
do_action( 'bb_custom_view', $view );
endswitch;
}
add_action( 'bb_custom_view', 'most_views' );July 21, 2007 at 12:21 pm #59317In reply to: Strange (?) (404) report i Firebug
oledole
MemberSome more info:
If I set permalinks in WP to default the 404-message in firebug goes away, and I can chech the forum pages with http://www.websiteoptimization.com/ without problem …
July 20, 2007 at 3:21 pm #59309In reply to: Noobish CSS Question
fel64
MemberThere’s no direct solution. You can do one of these:
- Change
<?php tag_heat_map(); ?>
to<?php tag_heat_map('limit=30'); ?>
. The default limit is 40 I think, if you set it to 30 or any appropriate number they won’t go so far down. But you’d want to change that again later. - Put the
footer
inside thewrapper
. I’m not sure how your templates are arranged, but in kakumei you’d just have to openfooter.php
and move the codeblock that produces the divfooter
up a few lines, just above the previous</div>
. Permanent change, now the footer is on the white, but the white will always stretch down sufficiently. - Wait it out – eventually there’ll be enough topics to stretch the page
I think there are a few other things you could do, but that second point is probably the best if you need it changed now.
July 20, 2007 at 6:49 am #2136Topic: front page takes 50 mysql queries
in forum Troubleshooting_ck_
ParticipantCan anyone tell me what the standard number of queries for the front page are on a default install of bbpress?
I think mine are high because of my template hack for the latest reply link. (added: nope, tried removing it and no query reduction)
There has to be a way to cache that and reduce the number of calls by pre-fetching all the links for all the topics to be listed, instead of doing one call at a time…
July 19, 2007 at 12:55 pm #59049tisme
Member+1 for wider (800px) template.
also, default “Reply” input textarea is too small (get scrolled) and
‘background: url(images/bg.png) #ccc fixed center top;’ makes it somewhat slow.
so far, wp.com forums layout by the Matt Thomas is the best layout of all bb forums I had a chance to see.
nice addition would be to have a link to the “Latest Post” on the front page/forum posts index table — it’s a matter of just a couple of lines to be added to the front-page.php/forum.php — makes a big deal to quickly get on a last post of multi-page posts w/o having to redundantly load a 1st page of the thread.
July 18, 2007 at 8:59 pm #59190In reply to: BBPress Integration with MY login sistem
fel64
MemberThe user login handling functions are all pluggable. They’re in bb-includes/pluggable.php, always check if a function of that name already exists before defining the default one, and is loaded after plugins are run. So you can overwrite any of them.
July 18, 2007 at 4:43 am #2118Topic: Why does New Posted Topics default into Hot Tags?
in forum TroubleshootingInquirer
MemberWhy does New Posted Topics default into Hot Tags?
I thought Hot Tags were to provide links to other web pages or Web sites.
Can Hot Tags links be added through Admin or do they have to be edited in a file and FTPed?
Is there a Administration plugin, which provides more functionality to add, delete, and edit?
July 17, 2007 at 4:10 am #59088In reply to: WordPress/BBPress Single Sign On
_ck_
ParticipantRemember that many users will already have the “remember me” set for their cookie on wordpress and that doesn’t expire for a year. This means their bbpress login will mysteriously fail. They’ll either give up or re-register a new nickname.
You also need the space and period plugin fix for names. WordPress allows them, bbpress doesn’t by default. So anyone with a space or period in their nickname will fail logging into bbPress. Not knowing such things can drive you mad.
I also went a step further and routed all the login links on bbpress back to the wordpress login box since it has a few extra features. I use the redirect_to option to bring them back to bbpress.
ps. another good integration thread for a future integration sub-forum
- Change
-
AuthorSearch Results