Forum Replies Created
-
In reply to: unable to log in in iframes
> how else do you integrate a forum in a site??
Preferably not with iframes. iframes are really nasty, because you can never access the url of anything you navigate to and instead of the full browsing window you have just that frame.
It really depends on the kind of integration you want. If you want visual integration, just make it look the same or use some of the methods other dudes have used here (see Chris’ links).
In reply to: What are the future plans for bbpress ?_ck_, are you saying that you will also contribute to the bb codebase or are you just talking about something unrelated?
> The rush job on the WP 2.3 release is suspect.
Maybe something for the WP forums.
I think there might be reduced bb activity for a while as mdawaffe will be working on backPress if I understood that right. The work will also be useful to bb, but bb is not the sole aim of the project.
[Edit] Thanks for taking care of that duplicate for me, Trent.
In reply to: bbpress won’t installYeah, give it a shot.
In reply to: bbpress won’t installSounds like your bb_forums table is empty. If it is, bb thinks it hasn’t been installed yet. Just continue with this install from here: http://www.popcultureshock.com/pcs/forum/bb-admin/install.php?step=1
In reply to: Subforums on frontpage — fel64?Yeah, cheers Chris for finding that one.
In reply to: Add rolesCoolio. Any modifications needed?
In reply to: Subforums on frontpage — fel64?No idea to be honest. Bloody colon syntax. Play around with it until it works.
In reply to: Subforums on frontpage — fel64?Removed a (probably) unnecessary if statement. Give this one a shot: http://pastebin.com/m5eb1069a – sorry!
In reply to: Subforums on frontpage — fel64?In reply to: bbSyncI think that wp 2.3 will break this as there’s (currently) a function name conflict – both use get_tag(). Will have to see about that. I’m sure bb’s function name will eventually shift but not sure when.
In reply to: Subforums on frontpage — fel64?Oh hey. I think the colon syntax works so that the endif comes after all of it, including the else statements. So just try removing the
endif;
. If that gets unexpected results, can you copy the entire code for that file to http://pastebin.com/ and link it here for me to look at please? In fact, might be best to do that anyway just to make sure.&& and || are just two different things. && means both things have to be true for the entire result to be true, || means just one needs to be true for the entire result to be true.
On a german keyboard I think it’s the capital letter on button just left of backspace. On a spanish layout it should be the one two left of enter, the one that also gives you
^
and[
(if I’m looking at the diagrams right).In reply to: Unread TopicsThere is one thing you can do – there’s a generic
query
filter that executes every time bbdb makes a query. You could use a regex to get the thread numbers from that. (If you don’t know regexes that well I could write it.)Probably no design decision behind that, just an oversight. Go to trac, log in using your details here and create a new ticket requesting this (marking it as an enhancement not bug). Mdawaffle (^^) is busy with wp or something at the moment but when he sees it he’ll probably either implement or discuss at least.
In reply to: Cannot access profile pageSounds like no amount of messing with the template could save you from this fate. I have no idea why you would have done this, but have you replaced
profile.php
in the root of bb with a template file? This is whatprofile.php
should look like. (Your custom templates should go in amy-templates/
folder in root.)<?php
require_once('./bb-load.php');
bb_repermalink(); // The magic happens here.
if ( $self ) {
if ( strpos($self, '.php') !== false ) {
require($self);
} else {
require( BBPATH . 'profile-base.php' );
}
return;
}
$reg_time = strtotime( $user->user_registered );
$profile_info_keys = get_profile_info_keys();
if ( !isset( $_GET['updated'] ) )
$updated = false;
else
$updated = true;
do_action( 'bb_profile.php_pre_db', $user_id );
if ( isset($user->is_bozo) && $user->is_bozo && $user->ID != bb_get_current_user_info( 'id' ) && !bb_current_user_can( 'moderate' ) )
$profile_info_keys = array();
$posts = get_recent_user_replies( $user_id );
$threads = get_recent_user_threads( $user_id );
do_action( 'bb_profile.php', $user_id );
bb_load_template( 'profile.php', array('reg_time', 'profile_info_keys', 'updated', 'threads') );
?>No problem.
Option #3 was a throwaway possibility, not really meant for actual use as it’s rather silly.
whatever && !is_bbpress()
means, literally, thatwhatever
has to be true AND is_bbpress() is not true. The!
operator inverts the boolean meaning, so true becomes false and vice versa. If is_bbpress() is true,!
makes it read as false. If false, it makes it read as true.By the way, the backtick ` that indicates code is on the top left button on most English and European characters.
Actually the function works just fine, you’re just expecting it to work differently. Try using different flow control or rewriting your logic.
if( blah_is_true() ) {
} elseif( foo_is_true() ) {
} elseif( third_thing_is_true() ) {
} else {
// default
}The elseifs mean that if a previous if statement was true, none of the successive ones will be tried. That way, if it is bb, it won’t even check if it’s single or a page.
Alternatively,
if( ( is_single() || is_page() ) && !is_bbpress() ) {
}will work just fine.
If you’ve integrated bb into wp that way, of course some of the WP template tags will work that way. If you wanted everything else to return false when you loaded bb, you’d have to do this:
function adjust_flags_to_bb() {
global $wp_query;
$wp_query->init_query_flags();
}
add_action('bb_init', 'adjust_flags_to_bb', 999);
//not sure if that's the right action, but mehbut that’s really quite unnecessary.
What version are you running?
It’s not .8.2.1, so unless you’re running trunk, upgrade first. If you’re running trunk, try previous commit number thingies.
What’s the actual problem? How are you using it, what do you expect it to do, what exactly is it doing?
You’re the one that asked about BB_Query a while back to achieve this, right?
Looks good, nice concept. My only problem is that it feels unresponsive when you select a star.
What all did you have to do to achieve this? If you could write up and post here or somewhere your general method, problems maybe and so on, that’d be great for other people that might want to do this.
In reply to: Advanced SearchIt’s pre-1.0. What did you expect?
> so you can not search by poster name, or a date range?
Yes, you can. That is only the default.
> Your search page may need a template change: https://trac.bbpress.org/ticket/694#comment:1
In reply to: Is there a theme…It’s unlikely that someone will stumble onto this and feel like making one, so if you just learnt HTML I recommend you keep your momentum and roll onto CSS; it’s a breeze, and a pleasantly cool one with Firebug. Just copy the style.css file from bb-templates/kakumei to my-templates/fjords, change the info at the top and mess around with the numbers and properties. Anything you want to know you can see at http://www.w3schools.com/css/ .
In reply to: after integration -> some problems!Kein Problem, kann ich lesen.
I think that problem with the feeds is easily fixable. Look for spaces before and after <?php and ?>, and possibly check if this works for you otherwise (you may have to look for a similar mistake in bb rather than in wp).
Might have asked what you wanted straight away.
So open your theme’s functions.php and add this:
function is_bbpress() {
global $bb;
return $bb ? true : false;
}Off the top of my head, but should work anyway. Try it.
In reply to: after integration -> some problems!1. Sounds like a cookie problem. Clear your cookies, log in with bb and see what cookies are set; repeat for wp.
2. Possibly an integration problem. Open bb-settings.php and add the line you used in config.php to load wordpress, then see if the problem persists (just at a wild guess).
They already exist.
https://trac.bbpress.org/browser/trunk/bb-includes/template-functions.php#L248