Search Results for 'code'
-
AuthorSearch Results
-
July 5, 2009 at 11:46 pm #15157
Topic: Adding an image to a topic?
in forum Troubleshootingthekmen
MemberHi all, using bbPress 1.0, how do I add an image to a topic?
Using <img src=”path_to_image” /> just displays that code on the topic.
July 5, 2009 at 11:38 pm #75486In reply to: Getting Plugin URL
r-a-y
ParticipantI think gautam2011 means outputting the path to bbPress’ plugin URL directory.
Is there a constant variable like WP_PLUGIN_URL?
I’m looking for this too! I’m porting a WP plugin over.
[EDIT]
Found it! It’s in bb-settings.php
The variable is BB_PLUGIN_URL.
Simple as that!
July 5, 2009 at 11:02 pm #75349In reply to: bbPress 1.0 released
bb-gian
MemberThanks r-a-y, thanks Jason_JM…
I am now convinced that I need to go straight to WP MU 2.7.1 instead of upgrading to regualr WP 2.8
The thing is that I have a running site with bbPress alpha 6 integrated and didn’t figure out the best way to switch to a WP MU + BuddyPress + bbPress 1.0 configuration.
Anyway, you’re right I should make another post for it, but where? WordPressforum? bbPress forum (here)? BuddyPress forum?
The biggest trouble I am having now is to figure out how can I test all thenew configuration and set up leaving the existing site running and than switch to the new congfig, when I see that everything works properly. Copy the existing into a subfolder and with anew database? Mmmh…
July 5, 2009 at 8:21 pm #75345In reply to: bbPress 1.0 released
r-a-y
Participant+1 on WPMU 2.7.1, BuddyPress 1.0.2 and bbPress 1.0.
No issues… yet!
July 5, 2009 at 6:59 pm #75343In reply to: bbPress 1.0 released
r-a-y
ParticipantAt the moment, WP and WPMU are separately maintained. But there are plans to merge the two codebases into one, don’t expect that in the next couple of months. More like next year sometime.
So if you’re planning on using BuddyPress in a few months, I would recommend getting acquainted with WPMU 2.7.1 since it works with the latest version of BuddyPress. This is just my advice, but I wouldn’t upgrade to WP 2.8.
Moving over from WP to WPMU is not that straightforward. You have to do a number of things in order to get things right.
Since this is straying away from the original topic, create a new thread about this and others can chime in.
July 5, 2009 at 5:51 pm #75496In reply to: .pot files / localization
Arturo
Participantno new pot in the repository, is possible force the generation manually? thanks!
July 5, 2009 at 3:11 pm #75485In reply to: Getting Plugin URL
johnhiler
MemberYou can submit plugins here:
https://bbpress.org/plugins/forum/requests
Once they’re approved, you’ll get a bbPress URL for your plugin.
July 5, 2009 at 3:02 pm #15175Topic: bbPress Codex
in forum Requests & FeedbackGeezerjim
ParticipantI am a big fan of bbPress. One thing that has been missing has been in depth documentation. With that in mind, I have created an un-official bbPress Codex. You are welcome and encouraged to add to and help edit the information there.
It is currently rather raw and incomplete, but with help we can get going.
July 5, 2009 at 2:51 pm #75483In reply to: list forum name in the sidebar
michael3185
Member@Marcomail; Thanks for raising this point about a sidebar forum list. I was curious and tested out the code I posted above, and it works very well (without the table definition). I just put the forum loop into the hottags div section and it looks fine. The site link is in my previous post if you want a look, and the code I used is;
<div id="hottags">
<h2><?php _e('Forums'); ?></h2>
<?php if ( bb_forums() ) : ?>
<?php while ( bb_forum() ) : ?>
<a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br />
<?php endwhile; ?>
<?php endif; // bb_forums() ?>
<br />
<h2><?php _e('Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map( 9, 13, 'pt', 50 ); ?></p>
</div>It tidies up the front page a lot, and there’s less need to scroll down to see the recent posts. Cheers!
July 5, 2009 at 1:35 pm #75482In reply to: list forum name in the sidebar
michael3185
Member@ashfame; In the example I gave, I’d just pulled some stuff out of my front-page.php, which is a modified version of Kakumei. It has tables because it came that way – here’s the fist code section;
<div id="discussions">
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><br /><div class="hints"><?php forum_description(); ?> (<?php bb_forum_pad( '</div>' ); ?><?php forum_topics(); ?> topics, <?php forum_posts(); ?> posts)</div></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>I read somewhere that using lists is not good (can’t remember why). I removed all the alternative line colourings to give a very simple layout, which you can see at http://mbforum.letsdoo.org.
How would I use a list to get the same layout? I once removed the remaining table stuff, but the page turned into a mess. A list will add bullets or numbering, won’t it?
July 5, 2009 at 12:33 pm #75481In reply to: list forum name in the sidebar
Ashish Kumar (Ashfame)
ParticipantIt may be simple using hard-coded html tags but
php
code will serve the needs of all those who are looking for that functionality.Michael’s code seems fine (I just don’t get the point of using table, should have been a list).
July 5, 2009 at 11:17 am #75207In reply to: How to add different style to the first post?
thekmen
MemberNothing special to be done if you are using bbPress 1.0 as position-1 will be added as a div id to the first post in each thread.
So you only need to add something like
#position-1 .threadpost { background: #FF9; }
to your theme css file to style the first post.
July 5, 2009 at 10:31 am #75480In reply to: list forum name in the sidebar
Marcomail
Memberit’s more simple using static html
July 5, 2009 at 8:58 am #75528In reply to: legacy plugin workarounds for 1.0
_ck_
ParticipantSome plugins attach to the “Manage” admin menu, which was skipped over in 1.0
This will emulate the slot so the plugins become visible again.
(do not click “Manage” directly or you’ll get a 404, unfortunately it has to be that way because of how 1.0 was changed)
<?php
/*
Plugin Name: Legacy Plugin Fixes
*/
add_action('bb_admin_menu_generator', 'admin_manage_menu', 1);
function admin_manage_menu() {global $bb_menu; $bb_menu[165] = array( __( 'Manage'), 'moderate', 'content.php', 'bb-menu-manage' );}
?>July 5, 2009 at 8:28 am #61978In reply to: how to disable registration ?
Simon Wheatley
MemberRather than editing or removing core files, I wrote this simple plugin:
<?php
/*
Plugin Name: Disable Registrations
Description: This plugin disables access to registration.php and blocks any registrations.
Plugin URI: http://simonwheatley.co.uk/bbpress/disable-registrations
Author: Simon Wheatley
Author URI: http://simonwheatley.co.uk/
Version: 0.1
*/
// Fires every time bbPress inits, a bit ick but it's super quick string ops
// (which is what PHP is good at).
function da_disable_registrations()
{
// Shame there isn't a hook to grab before the new user is registered on register.php
// In the absence of that, we will check whether we're on register.php
if ( ! da_str_ends_with( strtolower( $_SERVER[ 'PHP_SELF' ] ), 'register.php' ) ) return;
// We are on register.php? Stop executing (with a message).
bb_die( "Registration is not allowed on this website. Please contact the site administrators." );
exit; // Never reached, unless bb_die fails for some freaky reason
}
// Checks whether string a ends with string b
function da_str_ends_with(& $str, $end)
{
return ( substr( $str, - strlen( $end ), strlen( $end ) ) == $end );
}
add_action( 'bb_init', 'da_disable_registrations' );
?>July 5, 2009 at 5:53 am #75471In reply to: how can i verify the login ?
Ashish Kumar (Ashfame)
ParticipantUse
bb_is_user_logged_in()
July 5, 2009 at 5:47 am #75447In reply to: Support for 0.9 – how long?
Ryan Hellyer
Participantps. the 2.0 branch of WordPress was it’s best version
,
No prizes for guessing who likes stable software then!
I’m quite used to the WP upgrade system now. I didn’t like the frequent upgrades in the beginning, but I’ve slowly realised that as long as I keep my plugins/themes up to date with the latest WP recommended approaches that any new updates are highly unlikely to affect them.
I also never liked the 0.9 branch very much. But I get the impression some of you are happy to keep using it for quite some time yet. I guess if someone can be bothered maintaining it then they may as well. I’ve had clients request for support for ancient WP plugins before and I try as hard as possible to get them to upgrade. Supporting out of date software is generally at the absolute bottom of my priority list.
July 5, 2009 at 3:12 am #75445In reply to: Support for 0.9 – how long?
johnhiler
MemberbbPress has several fathers.
Matt did a lot of the early work… and Michael (mdawaffe) took over for a while too:
July 5, 2009 at 1:46 am #75444In reply to: Support for 0.9 – how long?
michael3185
MemberIt seems to me that what we have here, albeit with lots of talented helpers, is a ‘marriage in code’ between Sam and _ck_. He built the house, she makes it pretty. Almost all of the useful plugins are _ck_ home grown or have contributions from her. I can’t contribute in any hugely useful way, but love your baby nonetheless.
Seems to me like it’s essentially up to the two of you, when it comes down to it.
July 4, 2009 at 9:25 pm #75508In reply to: Navigation error
taboo
MemberThanks, but it didn’t help…
After activating the plugin it looks just the same.
July 4, 2009 at 8:18 pm #68316smi1ey
MemberSo was this issue supposed to have been resolved in the 1.0 final release? I just installed it and am having the exact issue. When I login to bbPress, it logs me out of WordPress. I have searched several posts, and ensured that the cookie AUTH keys are all the same in WP and bbPress config files. The home site URL is the same as well. I even installed the WP bbPress Integration plugin as recommended, and added their extra code to the wp-config file.
Anyone else still experiencing thing? I hate to bring up an old topic, so if it’s been resolved somehow, lemme know!
July 4, 2009 at 8:13 pm #75521In reply to: Showing page count per topic on the front page
clarklab
MemberAh, I am using 1.0 final. Is there a master list of template tags / functions somewhere like they’ve got for WP? In WP any time I need something I can usually just go track it down in their codex but with bbPress I always feel lost. I see on that page it says to use the topic page links function. Where can I get some info on that?
July 4, 2009 at 3:58 pm #15168Topic: Gravatar in the front-page loop
in forum InstallationMarcomail
MemberHow can i show gravatar in the front-page topic loop
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
July 4, 2009 at 3:18 pm #15167Topic: Navigation error
in forum Troubleshootingtaboo
MemberNavigation on the front page is screwed (I use CSS modified kakumei): when I go to page 2 (/page/2) the link attached to text “page 1” is the very same page 2 (/page/2) and not “/” as it should be.
the code:
<?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
Any clues please?`
July 4, 2009 at 1:06 pm #75332In reply to: bbPress 1.0 released
bb-gian
MemberHi, I waited for so long for this version to be released!
I got a running WP site and a bbBress integrated forumin it.
WP is 2.7.1
bbPress is 1.0-alpha-6
In WP I use the bbPress Integration (1.0-rc-2) plugin
Did the necessary integration routine (with AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY, etc.)
Now, I want to upgrade WP to 2.8 and bbPress to 1.0, what’s the best procedure?
(Of course, I will backup files and database of both installation).
Should I upgrade WP to 2.8 first or bbPress to 1.0? (About bbPress, don’t even seem to know HOW upgrading, since I guess there isn’t an upgrading button, right?).
And what about integration? Now that those 2 version support seamlessly integration, should I delete the AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY in bb-admin.php?
And should I also delete the bbPress Integration plugin, or is it still necessary?
Well, I thought I’d ask before adventuring in the process.
Thanks to anyone who will answer…
-
AuthorSearch Results