Search Results for 'bbpress'
-
AuthorSearch Results
-
July 25, 2007 at 6:15 am #58941
_ck_
ParticipantActually, I just realized there is a cheat way to do zero extra mysql queries and link to the profile.
<td class="num"><a href="/forums/profile.php?id=<? echo $topic->topic_last_poster; ?>"><?php topic_last_poster(); ?></a></td>untested but should work in theory
This will just use the stored last posted id # instead of forcing bbpress to lookup all their meta data and profile link in the database.
If your forum uses permalinks, it will just rewrite the url on display.
July 24, 2007 at 11:02 pm #52948In reply to: usually forums would have…
riddle
MemberMistainu, by “breadcrumb structure” do you mean that the family tree of a sub-forum should be displayed? That’s high on my wishlist.
In other words, right now a subforum’s breadcrumbs look like:
Food Forums – winesaps
When I wish they looked like:
Food Forums – fruit – apples – winesaps
I’m reluctant to use subforums at all if I can’t give the user good feedback about where they are in the forum structure.
So: does your breadcrumb code address this problem? And if so, is it coherent enough that I can glue it into place myself without being an expert about bbPress internals? (I do know enough PHP to be dangerous.)
July 24, 2007 at 10:10 pm #58656outchy
Memberis there a way to limit the maximum number of characters for a username?
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.
July 24, 2007 at 7:57 pm #59322In reply to: Strange (?) (404) report i Firebug
berniesteak
MemberMay be worth linking that thread over to this one (I don’t have a WP forum account just now), as it does affect both systems (working together).
If I turn off permalinks on bbpress it seems to work though, same with you?
I have used MultiViews as well as the more in depth htaccess and it didn’t change anything.
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 4:26 pm #56729In reply to: Plugin: Avatar Upload
fel64
MemberHere’s a hacked workaround, though I am not sure it’s a good idea to tap into the user_cache directly. I’d otherwise suggest nicely using bb_get_user() as it checks the cache first but the problem with that is it fetches ALL the data if not in the cache which is overkill. Too bad there isn’t a bb_get_user_meta($id,’metaname’) but oh well – for now replace this top section of code:
The user _must_ be in the cache at this point if his details are being displayed next to the post, right? Implying that bb_get_user would never need to use a single query.
There _is_ a bb_get_usermeta() already: https://trac.bbpress.org/ticket/691. It’s in the latest.
July 24, 2007 at 4:22 pm #57314In reply to: Plugin: bb-Topic-Views
_ck_
ParticipantI’ve now come up with an extremely easy/fast way to grab and display the views per forum in the forum list on the front page (or forums with sub-forums.
Here’s the plugin:
function forums_views_append($forums) {
global $bbdb; $sum_meta_value="SUM(meta_value)";
$forums_views = $bbdb->get_results(" SELECT $sum_meta_value,forum_id FROM $bbdb->topicmeta LEFT JOIN $bbdb->topics ON $bbdb->topicmeta.topic_id = $bbdb->topics.topic_id WHERE $bbdb->topicmeta.meta_key='views' GROUP BY $bbdb->topics.forum_id");
foreach ($forums_views as $forum_views) {$forums[$forum_views->forum_id]->views=$forum_views->$sum_meta_value; }
return $forums;
}
add_filter('get_forums','forums_views_append');To display the views, edit your front-page.php template and insert a views header and views column like so:
<th><?php _e('Views'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>.
<td><?php echo $forum->views; ?></td>
<td><?php forum_topics(); ?></td>
<td><?php forum_posts(); ?></td>Since there is no clean way to store forum meta data right now in bbpress (apparently an oversight) this will run on every time the forums list is displayed. Maybe not such a good idea for very busy forums, even though it’s a single mysql query (nifty eh?).
Eventually I’ll figure out a nice way to store this and only update upon new posts or new topics to reduce overhead (or a cron job perhaps).
July 24, 2007 at 2:18 pm #59233In reply to: Plugin: Plugin browser for bbPress
_ck_
ParticipantWould it be possible for you to properly use fsockopen or curl instead of “file()” for remote files? Like many hosts, I disable file() for remote urls for security vulnerability reasons which cripples your plugin. You’re likely to get many complaints that “nothing happens”
Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/example/public_html/forums/bb-admin/admin-functions.php on line 798.
update: actually this is not directly your fault, though you are trying to use a bb-admin function that was meant for local file access to do remote file access?
If I am not mistaken, you just found a bbpress security loophole.
ps. any concerns about eventually 2,000-20,000 bbpress users hammering the svn with so many file downloads to examine all the plugin headers?
July 24, 2007 at 1:28 pm #59318In reply to: Strange (?) (404) report i Firebug
berniesteak
MemberHaving the very same issue here. Main wordpress site is at / bbpress at /forum/ and although all appears fine the headers returned are 404 not found.
If anyone can shed any light on this weirdness that would be much appreciated.
I attempted moving the htaccess content into a vhost file on my server and put them in <Directory> sections, to see if that made any difference. No surprise really it didn’t.
I’m not an htaccess ot http expert and this seems just weird to me.
July 24, 2007 at 1:04 pm #56728In reply to: Plugin: Avatar Upload
LMD
Participant@Box87 – thanks, but I think the class has far too many features for an avatar upload script. It would be fantastic for a fully-fledged image/photo album/file-browser plugin, but I’m not interested in going down that route.
Avatar Upload now already has the two chief functions it lacked: resizing (including maintaining aspect ratio) and sharpening of resized truecolor images (unsharp mask). I want to keep it as simple as possible.
I onced used a forum where the avatar feature was integrated with a generic image upload browser and my users got a bit confused. They didn’t realise it was one and the same place (they hardly EVER uploaded anything that wasn’t an avatar) – you uploaded an image and had to select the one to use as an avatar – it was possible to select an image that was too big etc. So I hacked the plugin to make it more specifically for avatars (making my own for this particular forum would have been a right-Royal pain in the [gr]ass), but I was never really happy with the forum software and ditched it for another one — until bbPress arrived!
@_ck_ thanks, I’ll look into it. My primary concern right now is getting the plugin to play nicely with the Plugin Browser plugin.
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.
July 24, 2007 at 10:10 am #2145Topic: super beginner :)
in forum Themeswarmechoco
MemberHello everyone,
I know a bit about html (but that is not necessary here I guess :p) but nothing about css & php..
I managed to install bbpress on my website.. I am integrating the forum with Iframes on my website.
now I would like to have a very cleen and simple forum
– no hot tags
– not a big header
– the forums on top & the latest discussions on the bottom
the theme I think leans the most to my needs is Superbold for bbPress1 by Refueled (looking at styles). So I’m thinking I could start by editing this theme?
as you can see I need a little help,
I have dreamweaver to edit things.
can someone help me and say me how to start or what is the best thing to do?
July 24, 2007 at 6:54 am #56726In reply to: Plugin: Avatar Upload
_ck_
Participant@box87, be aware that single upload class is larger than most of the the entire bbpress core code itself – massive overkill unless you really, really really need it’s extra features?
@louisedade – I found a major caching bug where you are not taking advantage of user meta data that has already been loaded previously in the same execution – this causes 10-30 extra mysql queries for every topic that is displayed depending on how many posts are displayed at once.
Here’s a hacked workaround, though I am not sure it’s a good idea to tap into the user_cache directly. I’d otherwise suggest nicely using bb_get_user() as it checks the cache first but the problem with that is it fetches ALL the data if not in the cache which is overkill. Too bad there isn’t a bb_get_user_meta($id,’metaname’) but oh well – for now replace this top section of code:
function avatarupload_get_avatar($id, $fulluri=1, $force_db=0)
{
global $bbdb, $user, $bb_user_cache;
if ($force_db == 0 && ($id == $user->ID || !empty($bb_user_cache[$id])) )
{
if (!empty($user->avatar_file)) {
$a = explode("|", $user->avatar_file);
} else {
if (!empty($bb_user_cache[$id]->avatar_file)) {
$a = explode("|", $bb_user_cache[$id]->avatar_file);
}
else {return false;}
}
}
elseDrops my topic queries by 20 per page while still functioning correctly in all other cases.
Discovered this problem via bb-benchmark
July 24, 2007 at 12:33 am #2151Topic: Adding bbPress as WP Page
in forum TroubleshootingTrent Adams
MemberI came across this post in the wp.org forums and it seems to work from what I hear.
Trent
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: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.
-
AuthorSearch Results