Forum Replies Created
-
In reply to: Plugin Idea: Flaming Topic Plugin
Google? Animated fire gifs have been around longer than bbPress, BuddyPress and WordPress put together…
In reply to: Including a static file in your bb templateSlight difference between
bb_load_template()
andinclude()
,bb_load_template()
can take as it’s 2nd argument an array of containing the names of variables to be used as globals within the template, whereas usinginclude()
the included file just inherits all the global variables from the parent.In reply to: WPMU 2.8.4a deep integration breaks RSS feedIn reply to: phpbb3 -> bbpress converterThe very, very first link in this thread (where it says download ‘here’) works:
http://members.lycos.co.uk/wmnkhayal/files/phpbb3tobbpress%20converter.tar.gz
but that’s the version without any fixes
In reply to: Displayname check@gerikg: There’s far more chance that someone has written something like this for WordPress in their plugin database
In reply to: Grabbing the tag_id or topic_id with add_actionGuh. Last stab at it, the action only runs on a valid tag being added (rather than just an attempt being made to add one). Beyond that though, who knows, I’m running 2.8.2 SVN so it’s always hard to tell what’s just me
In reply to: Plugin Idea: Flaming Topic PluginTo the Internets!
Nooo idea where they are then sorry, try using something like Find in Files with Programmer’s Notepad to search for the line
Not quite sure what you’re asking, but if you’re just trying to display a message to non-logged in users, use something like:
<?php if ( !bb_is_user_logged_in() ) : ?>
Welcome, please log in or register!
<?php endif; ?>in front-page.php
My coding is pretty terrible too ;P I just learn from poking around in bbPress and WordPress and breaking things a lot, so you’re going about it the right way
In reply to: Grabbing the tag_id or topic_id with add_actionThere might be a fatal database error, and database errors might hidden by default,
$bbdb->suppress_errors( false );
will turn them on if they are. Obvious question is, does that work without any database interaction?In reply to: Grabbing the tag_id or topic_id with add_actionIt’s not necessarily very obvious if it is run unless you get something to echo because it’s all hidden under AJAX
<?php
function status_tags_update( $a, $b, $c ) {
var_dump($a);
var_dump($b);
var_dump($c);
}
add_action('bb_tag_added', 'status_tags_update',100,3);
?>I put that in my functions.php and it happily threw out some mangled HTML with the dumps underneath the tag list
In reply to: IPB3 to bbPressI’d have a go at it if IPB wasn’t paid software kind’ve hard to develop for something you don’t have really, which might be why it’s difficult to find a viable converter. Do you know if there are any formats it will export to natively?
In reply to: Directly to latest post of Topic<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?> <a href="<?php post_link($topic->topic_last_post_id); ?>">Latest</a></td>
<td class="num"><?php topic_posts(); ?></td>
<!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>Just change the word Latest to whatever you like
In reply to: Integrating a remotely hosted WordPressIt should be. There’s an option in the Advanced Options section of the WordPress Integration section to specify different settings for the user database, so you’d just have to use that. The rest of the bbPress database could be stored locally.
In reply to: Displayname checkI couldn’t reproduce getting the error, only changing and getting the okay message. No idea why that is, but my money is because of MySQL and UTF-8. Maybe someone else can fix that, but I definitely can’t for now.
In reply to: Plugin Idea: Flaming Topic PluginYep.
In reply to: Help me adapt page-cornr wp plugin to bbPressThere’s no such thing as
bb_print_scripts
. bbPress is partially integrated with WordPress functions (BackPress), so in bbPress it remainswp_print_scripts
.@johnnydoe: In your theme’s register.php, before the line
if ( is_array($profile_info_keys) ) :
(above the<?php
tag before that), put:<?php unset( $profile_info_keys['user_url'], $profile_info_keys['from'], $profile_info_keys['occ'], $profile_info_keys['interest'] ); ?>
That will take out the extra fields in the register form. What you did was take out the part that outputs all the form fields
I can’t see the “to participate” part either, did you manage to get hold of the bbPress.org template?
In reply to: Displayname checkHow fun, your install is ignoring a
exit
(die
) command got a link to your forum?That or 1.0.2 is radically different in how it structures when that function is called
In reply to: Enhance your 404 page<?php
$redirect_301 = array(
'/ddd/' => '/forum/newlocation',
);
list( $request, $query ) = explode( '?', $_SERVER['REQUEST_URI'], 2);
$request = rtrim( $request, '/' );
$forum = dirname( $_SERVER['PHP_SELF'] );
foreach( $redirect_301 as $from => $to ) {
$from = $forum . '/' . trim( $from, '/' );
if( $from != $request )
continue;
if( !empty( $query ) )
$to .= '?' . $query;
wp_redirect( bb_get_uri ( $to ), 301 );
exit();
}
?>That might support IIS, the native WP function doesn’t use the Location: header so I guess that’s an issue?
http://support.microsoft.com/kb/q176113/
@chandersbs: It’s nice I tidied it up to support trailing slashes no matter what and query strings amongst other things. I think. That or it’ll break
I dropped the need to have the forum directory included in the $redirect_301 array as well, that’s automatically added now. Just change
bb_get_uri ( $to )
to$to
if you need to point the redirect outside the forum directory or use..
In reply to: Plugin Idea: Flaming Topic PluginEasy enough to do
<?php if (40 <= $topic->topic_posts) : ?>I'M ON FIRE<?php endif; ?>
Put that in your
front-page.php
and/orforums.php
somewhere inside the parts that sayforeach( $something as $topic )
, probably best before<?php bb_topic_labels(); ?>
. Change 40 to whatever you want the topic to change at and the on fire bit to something… fiery.In reply to: Directly to latest post of TopicSlightly lighter version
<a href="<?php post_link($topic->topic_last_post_id); ?>">Latest</a>
In reply to: Displayname checkThat’s… weird, and slightly worrying. Unless you mean can it stop people already registered with a duplicate name already? It could, but that’d be easily avoidable by never editing your profile. If it’s registering changes to an already existing display name from a different one though, there’s something very wrong, because it’s run before anything is saved and has a hard stop put in right after the redirect.
In reply to: Grabbing the tag_id or topic_id with add_actionDoing a quick
var_dump
of the passed argument, it’s just a string of the tags passed by the user (commas and all) and before checks are made to see if they’re existing tags. I think you’d want to usebb_tag_added
which passes$tt_id, $user_id, $topic_id
as each tag is added (if you register the action function as taking as many variables).In reply to: target _blankThis is pretty simplistic regex, you’d need something that checked the URL host again the local address for that. Probably do-able using regex, but I can’t write it to save my life…