Search Results for 'code'
-
AuthorSearch Results
-
September 22, 2009 at 9:03 pm #79580
In reply to: Theme integration between bbPress and WP…
gerikg
MemberThe code he uses calls the WP theme header.php but the WP header is showing null when he is in his forums.
September 22, 2009 at 8:46 pm #79579In reply to: Theme integration between bbPress and WP…
Jim R
ParticipantNow…we can at least state between the require code and the get_header();, it works on an otherwise blank page. So this can’t be a WP template issue. Using just the following:
<?php
require_once('/home/jwrbloom/public_html/wp-load.php');
get_header();
?>I get this: http://www.hoosierhoopsreport.com/wp-test.php
That works as it should. When I put the code in the bbPress template (the require code in bb-config and the get_header wherever bb_get_header is, it doesn’t work.
September 22, 2009 at 8:29 pm #79503In reply to: User Activity & Topics Started
gerikg
MemberWhat if I say I want the User Activity & Topics Started to show on the side instead of the profile, would that make a difference?
I saw this in my bbpress header, what does it do?
<?php
$_head_profile_attr = '';
if ( bb_is_profile() ) {
global $self;
if ( !$self ) {
$_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"';
}
}
?>It might be something I need to pull the User Activity & Topics Started???
September 22, 2009 at 7:40 pm #78774In reply to: "next page" link redirects to WordPress login page
annejan
MemberThanks for your reply. I copied your code and deleted my own code.
The WP things in my bbPress are still working, but the “next page” problem is there still too.
Anyone a solution for the “next page” problem?
Thanks in advance!!
September 22, 2009 at 7:29 pm #79459In reply to: hooking a function makes mysql query to return empty
Adam Harley (Kawauso)
Member$limit was passed something which wasn’t numeric because… I guess that’s what do_action() does when it doesn’t have any arguments? Doing a var_dump(), it appears to be an empty string, so I guess it just passed the default value of the argument variable.
I found it because I noticed the SQL query wasn’t valid when it was run in phpMyAdmin and then noticed that there wasn’t anything after LIMIT.
I don’t know if there’s any performance gain, but it’s how bbPress code is written iirc and in the case of calling the user table, it’s essential when you’re working with a WP/bbP integration (as the table prefix is different).
So mostly it allows for the table names to be entirely variable, which is probably better practice in case a plugin changes them.
September 22, 2009 at 5:15 pm #79600In reply to: Pagination
Billy Wilcosky
ParticipantThanks guys, I’ll try both of those tonight when I get home, I’m at work right now. It probably is the space. CSS can be sensitive.
I wish I wasn’t so picky, then I wouldn’t even be worrying about this.
September 22, 2009 at 4:42 pm #79458In reply to: hooking a function makes mysql query to return empty
Ashish Kumar (Ashfame)
ParticipantSomehow I missed replying sensibly. I just want it to hook with the
post_post_formaction. Looks like Kawauso got it fixed but I am looking for explainations. Thanks!Why the $limit was passed something which wasn’t numeric? and how did you find it? I would like to know your approach.
And I didn’t get the point of using $bbdb over $bb_table_prefix ? Is there any performance gain?
and yes your code for profile link works more efficiently than mine. Thanks!
September 22, 2009 at 3:35 pm #79457In reply to: hooking a function makes mysql query to return empty
Adam Harley (Kawauso)
MemberWhen I tried this (not using a manual call), it seemed that $limit was being passed something, but it wasn’t numeric. So I added in before the
globalline:if (!is_numeric($limit))$limit = 5;I also changed $query_recent_replies to:
$query_recent_replies = "SELECT * FROM $bbdb->topics JOIN $bbdb->posts ON $bbdb->topics.topic_id = $bbdb->posts.topic_id $where ORDER BY post_time DESC LIMIT $limit";and first echo inside the foreach to:
echo "n<li>". bb_get_profile_link( array( 'id' => $recent_reply->poster_id, 'text' => get_user_display_name( $recent_reply->poster_id ) ) ) . ' on <a href="' . get_topic_link($recent_reply->topic_id);but that’s more just my idea of cleaner code
September 22, 2009 at 2:08 pm #79599In reply to: Pagination
Ben L.
Member.page-numbers.current– Don’t use a space, it’s not a descendant.September 22, 2009 at 1:13 pm #79598In reply to: Pagination
Ashish Kumar (Ashfame)
Participantspan .page-numbers .currentshould workSeptember 22, 2009 at 12:50 pm #79597In reply to: Pagination
Billy Wilcosky
ParticipantThat didn’t work for me. I event added !important to it and emptied my cache.
That’s actually one of the things I tried last night. Anyone have any other ideas to make the following bold?
<span class=”page-numbers current”>1</span>
If it helps, .page-numbers {font-weight:bold;}, works! But, it changes all the pagination links bold and not just the current page. So, you would think the .page-numbers .current code would work but it doesn’t. I also tried .page-numbers #current and .page-numbers current
September 22, 2009 at 12:30 pm #79563In reply to: First Poster
Process of Illumination
ParticipantOMG thank you so much Ashfame!
Will try your code right now and will let you know if i encounter problems.
Thanks thanks thanks!
the Process.
September 22, 2009 at 9:48 am #79481kirpiit
MemberOk, this one works smooth!

Thanks again.
September 22, 2009 at 8:31 am #79605In reply to: Avatar Problem
brad_langdon
MemberPerfect

Thanks man, saved me a headache!
September 22, 2009 at 8:27 am #79604In reply to: Avatar Problem
September 22, 2009 at 7:50 am #79595In reply to: Pagination
Olaf Lederer
Participantit must be
.page-numbers .current {font-weight:bold;}otherwise “current” becomes and element and not a pseudo class
September 22, 2009 at 6:19 am #79533In reply to: Adding a sidebar to a theme.
chrishajer
ParticipantWordPress sidebar code will not work straight away.
You can find themes that use sidebars here and maybe find something you can copy from:
http://bbshowcase.org/forums/view/available-themes
Or, you can find professional help with programming for bbPress here:
http://bbshowcase.org/forums/topic/bbpress-professionals-advertise-in-this-topic
Or, anyone familiar with modifying WordPress should be able to help as well since they’re very similar.
September 22, 2009 at 4:38 am #31836Topic: Pagination
in forum ThemesBilly Wilcosky
ParticipantWhere is the pagination code?
This is being very picky, but, I want the current page number to be <b>bold</b>.
Could someone tell me where the code is so I can add bold tags around the current page OR can someone tell me the CSS code that I can add to my style sheet that will make the current page number bold?
Just from viewing the source of one of my view pages I found the following:
<span class=”page-numbers current”>1</span>
So, I tried adding .page-numbers current {font-weight:bold;} to my style sheet, but that doesn’t work.
September 22, 2009 at 4:33 am #79544In reply to: Thanks for everything, Sam!
johnhiler
MemberThere’s a committee?
September 22, 2009 at 4:30 am #79543In reply to: Thanks for everything, Sam!
gerikg
MemberThank you Sam,
What does it take to be in the committee? I want to get involved but I’m no coder. Just have ideas.
September 22, 2009 at 1:23 am #79440In reply to: bbPress Codex – lolz
Sam Bauers
ParticipantThe plan for a second there was to run the codex from the BuddyPress.org site (which is WPMU). It didn’t pan out for some technical reasons, but the domain is still mapped there.
September 22, 2009 at 1:20 am #79542In reply to: Thanks for everything, Sam!
Sam Bauers
ParticipantThanks for your gratitude, I have indeed left Automattic. I decided it was time to move on and pursue some of my own ideas and other interests.
I won’t have much time to contribute to bbPress now and I can’t report who is going to be taking over from me or if anyone is even being sought for the role.
It has been great being so involved in this project and I appreciate all the help that people have given in peer support on these forums and with the code itself.
September 21, 2009 at 11:16 pm #79570In reply to: Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a
terryjsmith
Member@chrishajer I believe I found originally that including only wp-load.php did not register the actions and filters in WordPress and I wanted to keep those for our specific installation. But generally speaking, it would carry quite a bit less load

@AphelionZ I am very glad you solved the problem, congratulations!
September 21, 2009 at 10:29 pm #79480Adam Harley (Kawauso)
Member<?php bb_profile_link( array( 'id' => get_post_author_id(), 'text' => get_post_author() ) ); ?>@bbback: you can avoid echoing
get_functions by dropping theget_, there’s always an echo alias function@kirpi.it: my bad, I left it using an echo function rather than returning the output
September 21, 2009 at 9:56 pm #79479bbhack
MemberDo this:
<a href="<?php echo esc_attr( get_user_profile_link( get_post_author_id() ) ); ?>"><?php echo get_post_author(); ?></a> -
AuthorSearch Results