Search Results for 'code'
-
AuthorSearch Results
-
September 22, 2009 at 8:31 am #79605
In 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>
September 21, 2009 at 9:29 pm #79532In reply to: Adding a sidebar to a theme.
InvTrdr
MemberCan I get help with that? Can I get the code for the sidebar.php file in bbPress and anything else that goes with it? Will the WP sidebar code work?
Thanks.
September 21, 2009 at 9:27 pm #79568In reply to: Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a
AphelionZ
ParticipantSo what I did to patch this was comment out the BPDB function on line 140 of /html-root/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress.php
Not ideal, I know – but it allowed me to keep working. Here’s the paste. http://pastebin.ca/1574452
I’m open to suggestions
September 21, 2009 at 9:23 pm #31832Topic: Theme integration between bbPress and WP…
in forum InstallationJim R
ParticipantI know there are many topics out there dealing with this, but there doesn’t seem to be a set way of doing it. Right now, I have…
require('/home/jwrbloom/public_html/wp-load.php');
…in my bbconfig.php file. I have changed all of the
bb_get_header
toget_header
in my bbPress theme, and I have done the same with my footer. What isn’t carrying over is my site’s navigation. I’m using the Hybrid News theme for WP and kakumei for bbPress.I’d like to have full or most of my WP functionality for my bbPress, but at this point, other than maybe adding some widgets to a sidebar, I’m not sure what my plan is there. I definitely need all of my header information.
September 21, 2009 at 6:10 pm #79566In reply to: Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a
AphelionZ
ParticipantOk, so I was mistaken – its a 200 response with either wp-load or wp-blog-header and the fatal error from the logs is:
Fatal error: Cannot redeclare class BPDB in /Users/mrh/Sites/irrational.dev/community/bb-includes/backpress/class.bpdb.php on line 39
September 21, 2009 at 5:53 pm #79556In reply to: Error on installation – DB Error: cannot select
angelamaria
MemberI said change the database name since I’m changing it from the default entry in **-config-sample.php to the same database name as on my wp-config.php
I found the error — basically I had copy-pasted the whole database name line, quite unthinkingly; hence the constant was also renamed. Fixed now
September 21, 2009 at 5:12 pm #79562In reply to: First Poster
Ashish Kumar (Ashfame)
ParticipantI think all are covered now
September 21, 2009 at 5:11 pm #79561In reply to: First Poster
Ashish Kumar (Ashfame)
Participantview.php
<?php bb_get_header(); ?>
<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php view_name(); ?></div>
<?php if ( $topics || $stickies ) : ?>
<table id="latest" role="main">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Voices'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Author'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
<?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(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
</table>
<p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this view'); ?></a></p>
<div class="nav">
<?php view_pages(); ?>
</div>
<?php endif; ?>
<?php bb_get_footer(); ?>September 21, 2009 at 5:09 pm #79560In reply to: First Poster
Ashish Kumar (Ashfame)
Participanttag-single.php
<?php bb_get_header(); ?>
<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> » <?php bb_tag_name(); ?></div>
<?php do_action('tag_above_table'); ?>
<?php if ( $topics ) : ?>
<table id="latest" role="main">
<tr>
<th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Voices'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Author'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php 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(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; ?>
</table>
<p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> link for this tag') ?></a></p>
<?php tag_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
<?php endif; ?>
<?php post_form(); ?>
<?php do_action('tag_below_table'); ?>
<?php manage_tags_forms(); ?>
<?php bb_get_footer(); ?>September 21, 2009 at 5:09 pm #79453In reply to: hooking a function makes mysql query to return empty
chrishajer
ParticipantRather than add the plugin (which isn’t working, right?) to the Extend section, why not just post the code you need help with, unless I am misunderstanding your question.
You can post your code at pastebin.com and post the link here.
September 21, 2009 at 5:08 pm #79559In reply to: First Poster
Ashish Kumar (Ashfame)
Participantand forum.php
<?php bb_get_header(); ?>
<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div>
<?php if ( $topics || $stickies ) : ?>
<table id="latest" role="main">
<tr>
<th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Voices'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
<?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(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
</table>
<p class="rss-link"><a href="<?php bb_forum_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this forum'); ?></a></p>
<?php forum_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
<?php endif; ?>
<?php if ( bb_forums( $forum_id ) ) : ?>
<h2><?php _e('Subforums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class('bb-category'); ?>>
<td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; ?>
<?php post_form(); ?>
<?php bb_get_footer(); ?>September 21, 2009 at 5:06 pm #79558In reply to: First Poster
Ashish Kumar (Ashfame)
ParticipantYour new frontpage.php
<?php bb_get_header(); ?>
<?php if ( $forums ) : ?>
<div id="hottags" role="main">
<h2><?php _e('Hot Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
</div>
<div id="discussions">
<?php if ( $topics || $super_stickies ) : ?>
<h2><?php _e('Latest Discussions'); ?></h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Voices'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Author'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; // $super_stickies ?>
<?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(); ?></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"><?php topic_author(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; // $topics ?>
</table>
<?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
<?php endif; // $topics or $super_stickies ?>
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class('bb-category'); ?>>
<td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>
<?php if ( bb_is_user_logged_in() ) : ?>
<div id="viewdiv">
<h2><?php _e('Views'); ?></h2>
<ul id="views">
<?php foreach ( bb_get_views() as $the_view => $title ) : ?>
<li class="view"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; // bb_is_user_logged_in() ?>
</div>
<?php else : // $forums ?>
<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Add New Topic'); ?></div>
<?php post_form(); endif; // $forums ?>
<?php bb_get_footer(); ?>September 21, 2009 at 4:10 pm #79571In reply to: Direct login path to bbPress.
Ipstenu (Mika Epstein)
ModeratorSlap /bb-admin to the end of your forum URL.
So if your forum is at https://bbpress.org/forums then your admin’s at https://bbpress.org/forums/bb-admin/
September 21, 2009 at 3:25 pm #31828Topic: Deep Integration with bbPress 1.0.2 and WPMU 2.8.4a
in forum TroubleshootingAphelionZ
ParticipantI’m trying to get the wordpress functions inside of bbPress and vice versa, and therefore get the buddypress functions into bbPress as well. I tried the method described here: http://labs.b5media.com/blog/creating-the-anypress-solution/ but to no avail. In short, it involves adding this code to the bottom of my bb-config.php file:
// Include WordPress functionality
$currDir = dirname(getcwd());
// Make sure this isn't install or admin (go up if it is)
if(!file_exists("$currDir/wp-blog-header.php"))
$currDir = dirname($currDir);
if(!file_exists("$currDir/wp-blog-header.php"))
die("Cannot find WordPress integration files.");
error_reporting(E_ALL);
require_once("$currDir/wp-blog-header.php");The only clues I have from my error logs are a 404 error and a white screen of death when I try to access my forum root, which is at /community. Also, my rewrite log is here: http://pastebin.ca/1572291
Please note that im using an external install of bbPress intentionally because I need the forums to be centrally located and somewhat separate from my blog. Any insight or help would be greatly appreciated!
-
AuthorSearch Results