Search Results for 'code'
-
AuthorSearch Results
-
September 5, 2009 at 4:28 am #76106
In reply to: Categories at the top?
Adam Harley (Kawauso)
Member<?php if ( bb_forums() ) : // List forums ?>
<ul class="cat_list">
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<li><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><li>
<?php endif; ?>
<? endwhile; ?>
</ul>
<?php endif; // bb_forums() ?>Put that in
header.phporfrontpage.phprespectively and use CSS to format.cat_list liSeptember 5, 2009 at 3:48 am #73174In reply to: target _blank
Adam Harley (Kawauso)
MemberQuick check, your code does actually include the
<a (.+?)>part right? That got dropped from your post, but I’m presuming that’s because you didn’t use the code tag. The plugin should add the target=”_blank” HTML attribute, which tells the browser to open the link in a new window. You can change that in the browser to open in a new tab instead, but if it’s not doing either of those, there’s something wrong.September 5, 2009 at 2:47 am #73173In reply to: target _blank
chandersbs
MemberOKay, I fixed that and don’t get the error anymore. Thanks.
However I thought the point of this plugin was to open all external links in a new tab, but that’s not really happening
What was the exact point of this plugin? The first post is a bit confusing, I guess.
September 5, 2009 at 1:07 am #73172In reply to: target _blank
Adam Harley (Kawauso)
MemberCheck for a trailing space or anything after the
?>or before the<?php. That error implies that some text is being passed and in my test install, that was a space after the?>.September 5, 2009 at 12:53 am #77508In reply to: All RSS Feeds Broken?
Adam Harley (Kawauso)
MemberWith the final patch from track applied against 1.0.2 trunk you get:
bb-templates/kakumei/rss2.php
<?php
header( 'Content-Type: text/xml; charset=UTF-8' );
echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "n";
bb_generator( 'comment' );
?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><?php echo $title; ?></title>
<link><?php echo $link; ?></link>
<description><?php echo $description; ?></description>
<language><?php esc_html( bb_option('language') ); ?></language>
<pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
<?php bb_generator( 'rss2' ); ?>
<textInput>
<title><![CDATA[<?php _e('Search'); ?>]]></title>
<description><![CDATA[<?php _e('Search all topics from these forums.'); ?>]]></description>
<name>q</name>
<link><?php bb_uri('search.php'); ?></link>
</textInput>
<atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />
<?php foreach ($posts as $bb_post) : ?>
<item>
<title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
<link><?php post_link(); ?></link>
<pubDate><?php bb_post_time('D, d M Y H:i:s +0000', array( 'localize' => false ) ); ?></pubDate>
<dc:creator><?php post_author(); ?></dc:creator>
<guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
<description><?php post_text(); ?></description>
</item>
<?php endforeach; ?>
</channel>
</rss>bb-includes/defaults.bb-filters.php
<?php
/**
* Sets up the default filters and actions for most
* of the bbPress hooks.
*
* If you need to remove a default hook, this file will
* give you the priority for which to use to remove the
* hook.
*
* Not all of the default hooks are found in this files
*
* @package bbPress
*/
// Strip, trim, kses, special chars for string saves
$filters = array( 'pre_term_name', 'bb_pre_forum_name', 'pre_topic_title' );
foreach ( $filters as $filter ) {
add_filter( $filter, 'strip_tags' );
add_filter( $filter, 'trim' );
add_filter( $filter, 'bb_filter_kses' );
add_filter( $filter, 'esc_html', 30 );
}
// Kses only for textarea saves
$filters = array( 'pre_term_description', 'bb_pre_forum_desc' );
foreach ( $filters as $filter ) {
add_filter( $filter, 'bb_filter_kses' );
}
// Slugs
add_filter( 'pre_term_slug', 'bb_pre_term_slug' );
// DB truncations
add_filter( 'pre_topic_title', 'bb_trim_for_db_150', 9999 );
add_filter( 'bb_pre_forum_name', 'bb_trim_for_db_150', 9999 );
add_filter( 'pre_term_name', 'bb_trim_for_db_55', 9999 );
// Format Strings for Display
$filters = array( 'forum_name', 'topic_title', 'bb_title', 'bb_option_name' );
foreach ( $filters as $filter ) {
add_filter( $filter, 'esc_html' );
}
// Numbers
$filters = array( 'forum_topics', 'forum_posts', 'total_posts', 'total_users', 'total_topics' );
foreach ( $filters as $filter ) {
add_filter( $filter, 'bb_number_format_i18n' );
}
// Offset Times
$filters = array( 'topic_time', 'topic_start_time', 'bb_post_time' );
foreach ( $filters as $filter ) {
add_filter( $filter, 'bb_offset_time', 10, 2 );
}
add_filter('bb_topic_labels', 'bb_closed_label', 10);
add_filter('bb_topic_labels', 'bb_sticky_label', 20);
add_filter('pre_post', 'trim');
add_filter('pre_post', 'bb_encode_bad');
add_filter('pre_post', 'bb_code_trick');
add_filter('pre_post', 'force_balance_tags');
add_filter('pre_post', 'bb_filter_kses', 50);
add_filter('pre_post', 'bb_autop', 60);
add_filter('post_text', 'do_shortcode');
function bb_contextualise_search_post_text()
{
if ( bb_is_search() ) {
add_filter( 'get_post_text', 'bb_post_text_context' );
}
}
add_action( 'bb_init', 'bb_contextualise_search_post_text' );
add_filter('post_text', 'make_clickable');
add_filter('edit_text', 'bb_code_trick_reverse');
add_filter('edit_text', 'wp_specialchars');
add_filter('edit_text', 'trim', 15);
add_filter('pre_sanitize_with_dashes', 'bb_pre_sanitize_with_dashes_utf8', 10, 3 );
add_filter('get_user_link', 'bb_fix_link');
add_filter('sanitize_profile_info', 'esc_html');
add_filter('sanitize_profile_admin', 'esc_html');
add_filter( 'get_recent_user_replies_fields', 'bb_get_recent_user_replies_fields' );
add_filter( 'get_recent_user_replies_group_by', 'bb_get_recent_user_replies_group_by' );
add_filter('sort_tag_heat_map', 'bb_sort_tag_heat_map');
// URLS
if ( !bb_get_option( 'mod_rewrite' ) ) {
add_filter( 'bb_stylesheet_uri', 'esc_attr', 1, 9999 );
add_filter( 'forum_link', 'esc_attr', 1, 9999 );
add_filter( 'bb_forum_posts_rss_link', 'esc_attr', 1, 9999 );
add_filter( 'bb_forum_topics_rss_link', 'esc_attr', 1, 9999 );
add_filter( 'bb_tag_link', 'esc_attr', 1, 9999 );
add_filter( 'tag_rss_link', 'esc_attr', 1, 9999 );
add_filter( 'topic_link', 'esc_attr', 1, 9999 );
add_filter( 'topic_rss_link', 'esc_attr', 1, 9999 );
add_filter( 'post_link', 'esc_attr', 1, 9999 );
add_filter( 'post_anchor_link', 'esc_attr', 1, 9999 );
add_filter( 'user_profile_link', 'esc_attr', 1, 9999 );
add_filter( 'profile_tab_link', 'esc_attr', 1, 9999 );
add_filter( 'favorites_link', 'esc_attr', 1, 9999 );
add_filter( 'view_link', 'esc_attr', 1, 9999 );
}
// Feed Stuff
function bb_filter_feed_content()
{
if ( bb_is_feed() ) {
add_filter( 'bb_title_rss', 'strip_tags');
add_filter( 'bb_title_rss', 'ent2ncr',
;
add_filter( 'bb_title_rss', 'esc_html' );
add_filter( 'bb_description_rss', 'strip_tags');
add_filter( 'bb_description_rss', 'ent2ncr', 8 );
add_filter( 'bb_description_rss', 'esc_html' );
add_filter( 'post_author', 'ent2ncr', 8 );
add_filter( 'post_link', 'esc_html' );
add_filter( 'post_text', 'ent2ncr' );
add_filter( 'post_text', 'htmlspecialchars' ); // encode_bad should not be overruled by esc_html
}
}
add_action( 'bb_init', 'bb_filter_feed_content' );
add_filter( 'init_roles', 'bb_init_roles' );
add_filter( 'map_meta_cap', 'bb_map_meta_cap', 1, 4 );
// Actions
add_action( 'bb_head', 'bb_generator' );
add_action('bb_head', 'bb_template_scripts');
add_action('bb_head', 'wp_print_scripts');
add_action('bb_head', 'wp_print_styles');
add_action('bb_head', 'bb_rsd_link');
add_action('bb_head', 'bb_pingback_link');
if ( $bb_log->type === 'console' ) {
add_action('bb_head', array(&$bb_log, 'console_javascript'));
add_action('bb_admin_head', array(&$bb_log, 'console_javascript'));
}
add_action('bb_send_headers', 'bb_pingback_header');
add_action('bb_admin_print_scripts', 'wp_print_scripts');
add_action('bb_user_has_no_caps', 'bb_give_user_default_role');
add_action('do_pingbacks', array('BB_Pingbacks', 'send_all'), 10, 1);
add_action( 'bb_init', 'bb_register_default_views' );
add_action( 'set_current_user', 'bb_apply_wp_role_map_to_user' );
add_filter( 'bb_pre_get_option_gmt_offset', 'wp_timezone_override_offset' );
unset( $filters, $filter );rss.php
<?php
require('./bb-load.php');
// Determine the type of feed and the id of the object
if ( isset($_GET['view']) || bb_get_path() == 'view' ) {
// View
$feed = 'view';
$feed_id = isset($_GET['view']) ? $_GET['view'] : bb_get_path(2);
} elseif ( isset($_GET['topic']) || bb_get_path() == 'topic' ) {
// Topic
$feed = 'topic';
$topic = get_topic(isset($_GET['topic']) ? $_GET['topic'] : bb_get_path(2));
$feed_id = $topic->topic_id;
} elseif ( isset($_GET['profile']) || bb_get_path() == 'profile' ) {
// Profile
$feed = 'profile';
$feed_id = isset($_GET['profile']) ? $_GET['profile'] : bb_get_path(2);
} elseif ( isset($_GET['tag']) || bb_get_path() == 'tags' ) {
if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {
// Tag recent topics
$feed = 'tag-topics';
} else {
// Tag recent posts
$feed = 'tag-posts';
}
$feed_id = isset($_GET['tag']) ? $_GET['tag'] : bb_get_path(2);
} elseif ( isset($_GET['forum']) || bb_get_path() == 'forum' ) {
if ( isset($_GET['topics']) || bb_get_path(3) == 'topics' ) {
// Forum recent topics
$feed = 'forum-topics';
} else {
// Forum recent posts
$feed = 'forum-posts';
}
$forum = bb_get_forum(isset($_GET['forum']) ? $_GET['forum'] : bb_get_path(2));
$feed_id = $forum->forum_id;
} elseif ( isset($_GET['topics']) || bb_get_path() == 'topics' ) {
// Recent topics
$feed = 'all-topics';
} else {
// Recent posts
$feed = 'all-posts';
}
// Initialise the override variable
$bb_db_override = false;
do_action( 'bb_rss.php_pre_db' );
if ( !$bb_db_override ) {
// Get the posts and the title for the given feed
switch ($feed) {
case 'view':
if ( !isset($bb_views[$feed_id]) )
die();
if ( !$bb_views[$feed_id]['feed'] )
die();
if ( !$topics_object = new BB_Query( 'topic', $bb_views[$feed_id]['query'], "bb_view_$feed_id" ) )
die();
$topics = $topics_object->results;
if ( !$topics || !is_array($topics) )
die();
$posts = array();
foreach ($topics as $topic) {
$posts[] = bb_get_first_post($topic->topic_id);
}
$title = sprintf( __( '%1$s » View: %2$s' ), bb_get_option( 'name' ), $bb_views[$feed_id]['title'] );
$link = get_view_link($feed_id);
$link_self = bb_get_view_rss_link($feed_id);
break;
case 'topic':
if ( !$topic = get_topic ( $feed_id ) )
die();
if ( !$posts = get_thread( $feed_id, 0, 1 ) )
die();
$title = sprintf( __( '%1$s » Topic: %2$s' ), bb_get_option( 'name' ), get_topic_title() );
$link = get_topic_link($feed_id);
$link_self = get_topic_rss_link($feed_id);
break;
case 'profile':
if ( bb_get_option( 'mod_rewrite' ) === 'slugs' ) {
$user = bb_get_user_by_nicename( $feed_id );
} else {
$user = bb_get_user( $feed_id );
}
if ( !$user ) {
die();
}
if ( !$posts = get_user_favorites( $user->ID ) ) {
die();
}
$title = sprintf( __( '%1$s » User Favorites: %2$s' ), bb_get_option( 'name' ), $user->user_nicename );
$link = bb_get_profile_link($feed_id);
$link_self = get_favorites_rss_link($feed_id);
break;
case 'tag-topics':
if ( !$tag = bb_get_tag( $feed_id ) )
die();
if ( !$topics = get_tagged_topics( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )
die();
$posts = array();
foreach ($topics as $topic) {
$posts[] = bb_get_first_post($topic->topic_id);
}
$title = sprintf( __( '%1$s » Tag: %2$s - Recent Topics' ), bb_get_option( 'name' ), bb_get_tag_name() );
$link = bb_get_tag_link($feed_id);
$link_self = bb_get_tag_topics_rss_link($feed_id);
break;
case 'tag-posts':
if ( !$tag = bb_get_tag( $feed_id ) )
die();
if ( !$posts = get_tagged_topic_posts( array( 'tag_id' => $tag->tag_id, 'page' => 0 ) ) )
die();
$title = sprintf( __( '%1$s » Tag: %2$s - Recent Posts' ), bb_get_option( 'name' ), bb_get_tag_name() );
$link = bb_get_tag_link($feed_id);
$link_self = bb_get_tag_posts_rss_link($feed_id);
break;
case 'forum-topics':
if ( !$topics = get_latest_topics( $feed_id ) )
die();
$posts = array();
foreach ($topics as $topic) {
$posts[] = bb_get_first_post($topic->topic_id);
}
$title = sprintf( __( '%1$s » Forum: %2$s - Recent Topics' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) );
$link = get_forum_link($feed_id);
$link_self = bb_get_forum_topics_rss_link($feed_id);
break;
case 'forum-posts':
if ( !$posts = bb_get_latest_forum_posts( $feed_id ) )
die();
$title = sprintf( __( '%1$s » Forum: %2$s - Recent Posts' ), bb_get_option( 'name' ), get_forum_name( $feed_id ) );
$link = get_forum_link($feed_id);
$link_self = bb_get_forum_posts_rss_link($feed_id);
break;
// Get just the first post from the latest topics
case 'all-topics':
if ( !$topics = get_latest_topics() )
die();
$posts = array();
foreach ($topics as $topic) {
$posts[] = bb_get_first_post($topic->topic_id);
}
$title = sprintf( __( '%1$s » Recent Topics' ), bb_get_option( 'name' ) );
$link = bb_get_uri();
$link_self = bb_get_topics_rss_link();
break;
// Get latest posts by default
case 'all-posts':
default:
if ( !$posts = bb_get_latest_posts( 35 ) )
die();
$title = sprintf( __( '%1$s » Recent Posts' ), bb_get_option( 'name' ) );
$link = bb_get_uri();
$link_self = bb_get_posts_rss_link();
break;
}
}
bb_send_304( $posts[0]->post_time );
if (!$description = bb_get_option( 'description' ) ) {
$description = $title;
}
$title = apply_filters( 'bb_title_rss', $title, $feed );
$description = apply_filters( 'bb_description_rss', $description, $feed );
$posts = apply_filters( 'bb_posts_rss', $posts, $feed );
$link_self = apply_filters( 'bb_link_self_rss', $link_self, $feed );
bb_load_template( 'rss2.php', array('bb_db_override', 'title', 'description', 'link', 'link_self'), $feed );
?>September 5, 2009 at 12:22 am #72864In reply to: Hide Links
Adam Harley (Kawauso)
MemberI think should do it, it’s based off code here: https://bbpress.org/forums/topic/open-links-in-new-window
Change the values of $forums to the forum IDs of those you wish to restrict (it’ll only work on direct parent forums, not grandparents or categories, I don’t want to include walker code unless people need it).
Tested on 1.0.2 trunk, so I’m not 100% sure it’ll run on 0.9, sorry.
<?php
/*
Plugin Name: Remove Links (conditional)
Description: Removes links for non-registered users. Based on <a href="http://ckon.wordpress.com/2007/07/12/bbpress-plugin-bb-tweaks/">bb tweaks</a>.
Plugin URI: https://bbpress.org/forums/topic/hide-links
Version: 0.01
*/
function bb_strip_links( $text ) {
global $topic;
$forums = array(
1,
2,
3,
);
if ( !in_array( $topic->forum_id, $forums ) )
return $text;
if ( !bb_current_user_can( 'write_post' ) )
$text = preg_replace('|<a (.+?)>(.+?)</a>|i', 'Login or register to download', $text);
return $text;
}
add_filter('post_text', 'bb_strip_links');
?>@Hanratty: hiding links using CSS visibility will still leave the link URLs in the code, which isn’t too desirable for some
September 4, 2009 at 5:30 pm #78633In reply to: counting subforums
johnnydoe
Memberhello again john

well looks promising, i’ll give this also a try, thank’s
September 4, 2009 at 5:27 pm #78615In reply to: Failing miserably at porting theme
unholyfruitbat
MemberI’ll keep plugging along. I come from a Sys Eng background and this is my first dive into working on the viewable side of things
September 4, 2009 at 5:27 pm #78614In reply to: Failing miserably at porting theme
gerikg
MemberThis is how I’m doing it. Please, this is not the official how to on this.
PART 1
COPY Kakemi theme into my-template. Open Style.css and change this line, Theme Name: Kakumei
I changed it to Theme Name: Kakumei (Edited Theme)
Activate it, you’ll see Kakumei’s screen shot but Kakumei (Edited Theme) as it’s name.
Then open style.css of the Edited Theme and open the CSS of the WordPress theme. Their might be multiple css so look out. I make a line in the style.css at the bottom.
/*********************** WPTHEME *******************Then start with Header.php and footer.php start copying over the codes from WP theme to BBpress theme. Slowly start looking at the classes it that the header uses and start bringing in the codes from the WP to BBpress CSS. BEWARE some of them uses the same class! so rename the WP one not the BBpress one!!! You will have to replace all the div tags and such. The only one I recommend to keep in the header is the
<div id="main">at the end. The same with the footer. but remember to put an extra</div>on the top to cover the<div id="main">in the header. Start with that. If you can get the hang of it then you’ll be able to continue.September 4, 2009 at 5:24 pm #73171In reply to: target _blank
chandersbs
MemberI tried this, I’m using 1.0.1
And I got:
Warning: Cannot modify header information – headers already sent by (output started at /home/onlin196/public_html/forums/my-plugins/tabbladen.php:14) in /home/onlin196/public_html/forums/bb-includes/functions.bb-pluggable.php on line 232
Below you have the whole code i used
<?php
/*
Plugin Name: Nieuwe tabblad openen
Plugin URI: http://bbpress.org
Description: opent links in een nieuwe venster
*/
function bb_target_blank( $text ) {
$text = preg_replace(‘||i’, ‘‘, $text);
return $text;
}
add_filter(‘post_text’, ‘bb_target_blank’,255);
?>
September 4, 2009 at 3:17 pm #77507In reply to: All RSS Feeds Broken?
deadlyhifi
ParticipantThe fix in track wraps CDATA around the title and description, then the »’s work fine and it all validates.
In your theme’s rss2.php replace with this:
<?php
header( 'Content-Type: text/xml; charset=UTF-8' );
echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "n";
bb_generator( 'comment' );
?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><?php echo $title; ?></title>
<link><?php echo $link; ?></link>
<description><![CDATA[<?php echo $description; ?>]]></description>
<language><?php esc_html( bb_option('language') ); ?></language>
<pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
<?php bb_generator( 'rss2' ); ?>
<textInput>
<title><![CDATA[<?php _e('Search'); ?>]]></title>
<description><![CDATA[<?php _e('Search all topics from these forums.'); ?>]]></description>
<name>q</name>
<link><?php bb_uri('search.php'); ?></link>
</textInput>
<atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />
<?php foreach ($posts as $bb_post) : ?>
<item>
<title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
<link><?php post_link(); ?></link>
<pubDate><?php bb_post_time('D, d M Y H:i:s +0000', array( 'localize' => false ) ); ?></pubDate>
<dc:creator><?php post_author(); ?></dc:creator>
<guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
<description><?php post_text(); ?></description>
</item>
<?php endforeach; ?>
</channel>
</rss>September 4, 2009 at 10:10 am #77506In reply to: All RSS Feeds Broken?
kirpiit
Member> https://trac.bbpress.org/attachment/ticket/1181/full-rss-filters.patch
I don’t seem to be able and reproduce the new version of the files, also because the code in 1.0.2 seems to be slightly different from the one I’m supposed to edit, and I get easily lost (not being a coder myself).
I tried all my best, but still the feed throws an error and does not get created.
Are such files dowloadable from any source, please?
September 4, 2009 at 9:05 am #71934In reply to: Instant Password
annkurs
MemberI am facing this same issue, but strangely the registration goes through via Google Chrome.
I replaced my register.php file with the original file from kakumei folder. Still the same error

(the theme I am using is toonewsy, earlier the structured theme also failed)
Is this a CSS issue?
iphonehelp.in/howto
September 4, 2009 at 4:29 am #78447In reply to: Managing Favorites
Olaf Lederer
ParticipantSubscribe to the RSS feed in Google reader

I thought long about to have a function like in other forum scripts, but these days RSS is the way how to do it.
I wrote an article about:
http://www.finalwebsites.com/forums/topic/how-to-subscribe-to-topics-from-a-bbpress-forum
September 4, 2009 at 3:59 am #78288In reply to: Help Integrate WordPressMU, Buddypress, and bbpress
gerikg
MemberWhat happened so far…
Okay I looked through the file. Yangers101 was on the right track. There were some extra lines in the wp-config:
$bb->cookiepath = '';
$bb->sitecookiepath = '';I took those out.
The problem: “www.” The WPMU was configured to be on website.com/blogs (without the www.)
so all the settings needed to be without the “www.” or with. One or the other on both WPMU & BBpress.
Since his host forced the www. We had to put all the www. in the configuration. BBpress didn’t like the www. in the dashboard so he logged into his DB and manually changed it.
September 4, 2009 at 12:04 am #78632In reply to: counting subforums
johnhiler
MemberI don’t think this is what you want… but the code might provide some inspiration, since it also deals with subforums.

https://bbpress.org/forums/topic/counting-forums#post-21338
Good luck!
September 3, 2009 at 11:47 pm #31637Topic: counting subforums
in forum Themesjohnnydoe
Memberis there a way to force bb-press to show/count “also” the number of subforums instead only the amount of topics?
(coders the following code might hurt your eyes but i’am (not yet) so skilled in php, i’m really sorry)
kinda…
<?php if ( bb_forums() ) : ?>
<table class="etcetera">
<tr>
<td>
<?php bb_forum_pad...etctera>
</td>
<td class="info">
<?php forum_topics(); ?>
</td>
</tr>
</table>
<?php else( bla() ) : ?>
<?php if ( bb_forums() ) : ?>
<table class="etcetera">
<tr>
<td>
<?php bb_forum_pad...etctera>
</td>
<td class="info">
<?php forum_subforums(); ?>
</td>
</tr>
</table>September 3, 2009 at 11:15 pm #78177In reply to: 10,000 downloads of bbPress in August
Adam Harley (Kawauso)
MemberVery impressive indeed
if that equates to anything like that number of forums, that’s pretty amazing
September 3, 2009 at 8:20 pm #78204gj-tje
MemberOkay, I’ve fixed it and it’s working at the moment!

I forgot the settings in wp-admin/options.php for WordPress itself.
September 3, 2009 at 7:41 pm #78586In reply to: Need to fix a couple of things in theme
gerikg
Member<?php bb_new_topic_link(); ?>the code to add new.The first one I know is in front-page.php
you have
<?php if ( $forums ) : ?>then the Latest Discussion
then Forum
<?php endif; // bb_forums() ?>Then Views
and the part you’re missing
<?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 ?>September 3, 2009 at 7:33 pm #78585In reply to: Need to fix a couple of things in theme
Adam Harley (Kawauso)
MemberHmm… as far as I can work out, (at least with pretty links on) a forum link redirects to
forum.phpwhich invokespost_form()towards the end of the page. That’s found infunctions.bb-template.php(underbb-includes) and as well as running the respective pre/during/post actions, it loads thepost-form.phptemplate from the theme’s directory.Could you post your theme’s
post-form.phphere?September 3, 2009 at 7:01 pm #78319hopeful4info
MemberHmmm, that’s interesting. I ftp’d the options-wordpress.php file down from the site and opened it in Dreamweaver. I recognize some of the comments in this as being from the “wordpress Integration settings as found in the Settings/Wordpress Integration tab of the Admin section of bbpress. This is where I set the “User Role Map”, WordPress Address (URL), Blog Address (URL), auth cookie salt, secure auth cookie salt, and logged in cookie salt.
HOWEVER, when I look into the actual options-wordpress.php file (as ftp’d down from the site) and open it up, the php code still seems to be asking for those items??? I just copied a bit of the code from that file and pasted it below. Please advise,
<table>
<tr>
<th><?php _e(‘WordPress’); ?></th>
<td></td>
<th><?php _e(‘bbPress’); ?></th>
</tr>
<tr>
<td>AUTH_KEY</td>
<td><=></td>
<td>BB_AUTH_KEY</td>
</tr>
<tr>
<td>SECURE_AUTH_KEY</td>
<td><=></td>
<td>BB_SECURE_AUTH_KEY</td>
</tr>
<tr>
<td>LOGGED_IN_KEY</td>
<td><=></td>
<td>BB_LOGGED_IN_KEY</td>
</tr>
</table>
September 3, 2009 at 6:33 pm #78202gerikg
Memberthis is a shot in the dark but JesperA move the line
define( 'SITECOOKIEPATH', '/' );BEFORE
define('DB_NAME',September 3, 2009 at 6:12 pm #78627In reply to: highlight first post
Adam Harley (Kawauso)
MemberPut
<?php if (get_post_position() == 1) { continue; } ?>after theforeach ($posts as $bb_post)line intopics.phpto stop the first post appearing in the loop.To get the first post separately, you could use
<?php $bb_post = bb_get_first_post(); bb_post_template(); ?>or<?php $bb_post = bb_get_first_post(); ?>and use the same functions as inpost.phpin your HTML.No idea on modifying the number of posts for the first page though
probably a plugin for that
September 3, 2009 at 3:42 pm #76949In reply to: Use XML RPC to post in bbPress
Ashish Kumar (Ashfame)
ParticipantI didn’t get the idea of remote posting in a forum. Is there any client for forums which enables the conversation without a web browser?
P.S. – I would love that
-
AuthorSearch Results