Search Results for 'code'
-
AuthorSearch Results
-
September 4, 2009 at 5:24 pm #73171
In reply to: target _blank
Navin
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
September 3, 2009 at 3:31 pm #78584In reply to: Need to fix a couple of things in theme
Ashish Kumar (Ashfame)
ParticipantI fixed the second & third issue but I am still stuck at the first one.
Looking at the markup I found
<select name="forum_id" id="forum-id"">is being generated by bbPress codebut the same works in default theme flawlessly so this isn’t the cause. Can I have the complete lookup order for file required to generate the “Add new” page.September 3, 2009 at 1:33 pm #75647In reply to: my custom theme stopped working with 1.0
Ipstenu (Mika Epstein)
ModeratorIs your theme installed correctly?
For example:
/bbpress/my-templates/themename/style.css
/bbpress/my-templates/themename/screenshot.pngEtc etc…
September 3, 2009 at 8:14 am #78630In reply to: Alert/notification for new posts in a forum?
Olaf Lederer
Participanthehe, I like my plugin very much, most of all if I get a notification mail about a new spam thread and that one was already filtered by Akismet
September 3, 2009 at 4:39 am #78217In reply to: Using bbpress as my "blog"… adding a header navbar
Adam Harley (Kawauso)
MemberYou could use bbPages (https://bbpress.org/plugins/topic/bbpages/) for pages. You’ll probably need to edit some code yourself though if existing plugins don’t do what you want and possibly write some of your own as well. WordPress is really more geared towards this sort of thing with regards to WYSIWIG and image management, to even allow images on bbPress you need to install a plugin and BBcode is probably the closest to WYSIWYG.
I’m sure with a lot of coding, you could get bbPress to behave like a portal, but why not just use WordPress and integrated bbPress?
September 3, 2009 at 3:37 am #78624In reply to: highlight first post
Adam Harley (Kawauso)
MemberBlergh. No idea why they’re using the post_id() instead, but okay. Try putting this
<?php if (bb_is_first(get_post_id())) : ?> style="background-color:#FFFF99;"<?php endif; ?>afterclass="typo"(no need for a space). You can change thestyleto aclassor whatever obviously, but I think that should work.September 3, 2009 at 2:58 am #78623In reply to: highlight first post
johnnydoe
Memberyay this is somehow all greek to me, were you able to handle those instructions john?
since i’m not a kakumei user it seems to be a little tricky
so i’ve got in my topic.php…
<?php do_action('under_title', ''); ?>
<?php if ($posts) : ?>
<?php topic_pages(); ?>
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php bb_post_template(); ?>
<?php endforeach; ?>
<?php topic_pages(); ?>
<?php endif; ?>and in my post.php the following code…
<table class="content" id="fbg3" cellspacing="0" id="post-<?php post_id(); ?>">
<tr>
<td class="typo">
<?php post_text(); ?><div class="link"><?php post_edit_link(); ?><?php post_delete_link(); ?><?php post_ip_link(); ?></div>
</td>
<td class="info">
<div class="avatar"><?php post_author_avatar(); ?></div>
<div id="fbg3info">
<div id="bubble2"></div>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php post_author(); ?>"><b><?php post_author(); ?></b></a><br />
<?php printf( __('%s'), bb_get_post_time() ); ?>
</div>
</td>
</tr>
</table>
September 3, 2009 at 1:53 am #78620In reply to: highlight first post
johnnydoe
Memberi’ll give this a shot kawauso.
thanks for now
September 3, 2009 at 1:31 am #78619In reply to: highlight first post
Adam Harley (Kawauso)
MemberThe ID of the entire first post (including the poster’s details) would depend on your theme’s code, but in Kakumei it’d be
div#position-1. If it’s anything else, it’d be underpost.php, but you could just use Mozilla Firefox’s DOM Inspector or Google Chrome’s Inspect Element to check the ID on the page anyway.Again in the case of Kakumei, the post itself is
.threadpost, so you could use something like<style>div#position-1 .threadpost {background-color:#FFFF99;}</style>to change the background colour.Hope that’s some help
September 2, 2009 at 10:27 pm #78200gerikg
MemberThe bbPress Integration plugin doesn’t make it work. It gives you instructions on what to do next.
If you have WPMU then you’ll receive four lines from the plugin
define( 'COOKIEHASH', '????????????????????????????????????' );
define( 'COOKIE_DOMAIN', '.????????????????.com' );
define( 'SITECOOKIEPATH', '/' );
define( 'COOKIEPATH', '/' );Paste it in wp-config after
<?then do the same in bb-config without the first line. -
AuthorSearch Results