Search Results for '"wordpress'
-
AuthorSearch Results
-
May 12, 2008 at 7:27 am #64919
In reply to: Make BBPress a Page in WordPress???
mrhoratio
MemberIPSource,
The short answer is you have to convert your WordPress theme to bbPress by hand.
I’m currently doing the same thing you’re trying to do on my WordPress blog with bbPress also. It pretty much means taking your WordPress theme and going through each file one by one and converting them to bbPress. So you have to strip out the WordPress tags and functions in the theme files and replace them with bbPress versions. There’s no list of equivalent tags, so translating them is just gonna take a lot of trial and error and testing.
May 12, 2008 at 7:23 am #64918In reply to: Make BBPress a Page in WordPress???
ipsource
MemberThanks for getting back to me and I will definitely look into that. But the problem I’m having is putting my forum actually onto my site.
I just want a button at the top next to “Home” on the navigation bar that says “Forum” and when you click on it, it takes you to my forum. I would prefer to keep the header and footer on it so that it looks like it’s actually in the site still.
Any suggestions???
May 12, 2008 at 6:52 am #64917In reply to: Make BBPress a Page in WordPress???
bobbyh
MemberThe easiest way is to find and install an existing theme that exists for both WordPress and bbPress. For instance, K2 for bbPress is similar to the WordPress default theme. Here are some bbPress themes for you to check out.
May 12, 2008 at 5:50 am #3362Topic: Make BBPress a Page in WordPress???
in forum Installationipsource
MemberSorry I’m new and I tried to look around for this topic but I guess I’m not wording it right in the search.
I want to make BBPress a page on my WordPress site. I’ve installed both and they are both sharing information just fine. I just want to integrate it visually into my site.
So is there anyway that when you click “forum” on my Navigation bar that the forum would just show up in the window below?
Again, I’m pretty new to this so when I have to go in and start messing with code I get lost easily. I really would appreciate any advice or help you can give. Thank you.
May 12, 2008 at 5:21 am #64781In reply to: bb_query: get topics started within a date range?
mrhoratio
MemberHey Sam, thanks for making a ticket for this. I was able to query for topics within a date from directly from WordPress as well. Here’s something I wrote to merge “super sticky” bbPress topics into the WordPress loop. It’s a bit of hack, but it brings the “Promote to Front Page” functionality of Drupal into WordPress/bbPress:
<?php get_header(); ?>
<?php
//Put WordPress posts into an array
$wp_posts = $posts;
if (!is_single()){
//Retrieve first post of previous page (we need this post's date to query bbPress topics
$offset=$paged*$posts_per_page+$posts_per_page;
$first_post_of_previous_page = get_posts('numberposts=1&offset='.$offset);
//First set the start and end dates to limit the query to the bbPress table
$startdate=(date('YmdHis',strtotime($first_post_of_previous_page[0]->post_date_gmt)));
//If it's the most recent page, set end date to today
if ($paged){
$enddate=(date('YmdHis',strtotime($wp_posts[0]->post_date_gmt)));
} else {
$enddate=gmdate('YmdHis');
}
//Retrieve "Super Sticky" topics from bbPress tables
//This assumes your bbPress and WordPress tables are in the same database
$bb_topics = $wpdb->get_results("SELECT * FROM bb_topics WHERE topic_sticky = 2 AND topic_start_time BETWEEN $startdate AND $enddate ORDER BY topic_start_time DESC");
//Map bbPress topics to WordPress posts structure
foreach($bb_topics as $bb_topic){
$bb_first_post = $wpdb->get_results("SELECT post_text FROM bb_posts WHERE post_position = '1' AND topic_id = $bb_topic->topic_id", ARRAY_A);
$bb_post->ID = "forum_topic_".$bb_topic->topic_id;
$bb_post->post_author = $bb_topic->topic_poster;
$bb_post->post_date = $bb_topic->topic_start_time;
$bb_post->post_content = $bb_first_post[0][post_text];
$bb_post->post_title = $bb_topic->topic_title;
$bb_post->post_status = "publish";
$bb_post->comment_status = "open";
$bb_post->ping_status = $bb_topic->post_id;
$bb_post->post_name = "forums/topic/".$bb_topic->topic_slug;
$bb_post->post_type = "post";
$bb_post->comment_count = $bb_topic->topic_posts-1;
//add bbPress topic to WordPress posts array
$wp_posts[] = $bb_post;
};
//Create function to sort array of posts by date
function compare($x, $y){
if ( $x->post_date == $y->post_date )
return 0;
else if ( $x->post_date < $y->post_date )
return 1;
else
return -1;
}
//Sort array
usort($wp_posts,'compare');
}
?>
<div id="content-box" class="span-8">
<div id="content-area" class="clearfix">
<?php if ($wp_posts): ?>
<?php foreach ($wp_posts as $post): ?>
<?php setup_postdata($post); ?>
<div class="entry">
<div class="entry-header clearfix">
<div class="info span-2">
<a href="<?php the_permalink(); ?>#comments" class="comment-activity"><?php comments_number('<strong>Post comment</strong>', '<strong>1</strong> Comment', '<strong>%</strong> Comments' );?></a>
</div><!-- end info -->
<div class="content span-6 last">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div><!-- end content -->
</div><!-- end entry-header -->
<div class="entry-content clearfix">
<div class="info span-2 clearfix">
<p><strong><?php the_author() ?></strong><br />
<?php the_time('M j, Y'); ?>
</p>
<p class="share-this"><?php akst_share_link(); ?></p>
<p class="post-comment"><a href="<?php the_permalink(); ?>#respond">Comment</a></p>
</div><!-- end info -->
<div class="content span-6 last clearfix">
<?php the_content('Click to continue'); ?>
<p class="entry-tags"><?php the_tags('<strong>Posted in: </strong>', ', ', ''); ?> </p>
</div><!-- end content -->
</div><!-- end entry-content -->
</div><!-- end entry -->
<?php endforeach; ?>
<?php include (TEMPLATEPATH . '/navigation.php'); ?>
<?php else : ?>
<h2 class="page_header center">Not Found</h2>
<div class="entry">
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
</div>
<?php endif; ?>
</div><!-- end content-area-->
</div><!-- end content-box -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>May 12, 2008 at 3:36 am #64910In reply to: New bbPress BUGGY!!!
mdata
MemberLet me premise this by stating that I installed an “integrated” version of the upgrade (BTW, the instructions could be a LOT clearer on this process – not everyone is experienced with php).
I was planning on spending some time on this later, but on this subject (links), my original links were set to “Numeric …/forums/1”. After upgrading, links from my web sites to the bbPress section no longer worked and generated a 404 error. I looked at the links within the bbPress site and they looked fine. For instance, a “sticky” topic I link to from all my web sites is “http://www.masterdata.com/forum/bbpress/topic/62” (I copied the shortcut with a right click on the link). It looks correct, but it does not work. Not even within the bbPress section and certainly not from the outside coming in.
So I switched the setting on my “Pretty permalink type” to “None …/forums.php?id=1”. With this setting, everything once again worked. I left it this way, but these are definitely not “pretty” links. The link to the same topic is now “http://www.masterdata.com/forum/bbpress/topic.php?id=62”. BTW, “Name based …” links do not work either.
OK, that is the first issue. There are more and I will detail those tomorrow, each one in its own separate topic as suggested above.
Let me, however, compliment everyone who has been involved in this project and WordPress. Both efforts are truly beyond belief in terms of what you get by simply downloading some code from the internet. ABSOLUTELY EXCELLENT! So good, in fact, you spoil us to the point where we expect everything to be close to perfect at all times. That is a bit irrational and the experience with both programs should be graciously appreciated. Thank you for your work!
Best
L. Carhartt
May 12, 2008 at 1:48 am #64665In reply to: Troubleshoot integration
Sam Bauers
Participant@ mykes
I double checked, the latest stable version of WordPress MU uses the old password hashing and cookie types.
You can dumb down bbPress to work with that version of WordPress MU by using both of these bbPress plugins.
https://bbpress.org/plugins/topic/mouldy-old-cookies-for-bbpress/
https://bbpress.org/plugins/topic/md5-insecurity-for-bbpress/
May 12, 2008 at 1:35 am #64786In reply to: bbPress Top 100 – May 2008 update
Sam Bauers
ParticipantYou might have missed all the international wordpress.com forums, although only one or two might creep into the top 100.
http://de.forums.wordpress.com
http://el.forums.wordpress.com
http://en.forums.wordpress.com
http://es.forums.wordpress.com
http://fa.forums.wordpress.com
http://fr.forums.wordpress.com
http://id.forums.wordpress.com
http://it.forums.wordpress.com
http://nl.forums.wordpress.com
http://pt.forums.wordpress.com
http://pt-br.forums.wordpress.com
http://sv.forums.wordpress.com
http://tr.forums.wordpress.com
You should change the listing for the English forum to en.forums…
Look out for i18n number formats!
May 11, 2008 at 11:32 pm #64907In reply to: Theme Editor
_ck_
ParticipantCorrect me if I am wrong but the “theme editor” in WordPress is simply a remote file editor for templates. Doesn’t do anything special other than let you edit a file directly on your server without having to use FTP (or shell).
While it seems handy, if I am not mistaken it also requires you to chmod 777 your theme folder which is very dangerous on a shared server.
I suppose bbPress will get the feature eventually because it’s so very simple. I would guess it could be ported from the WordPress code in probably an hour.
May 11, 2008 at 12:10 am #64868In reply to: How to shorten a profile link?
mrhoratio
MemberOkay, I think I got it working.
I was able to fix the redirection issue by modifying the get_user_profile_link() function in the template-functions.php. I added the following line towards the end of the function, right before the last line of code in the function:
$r = str_replace('forums/profile/' . $user->$column , "profile/" . $user->$column, $r);
This is the full code:
function get_user_profile_link( $id = 0, $page = 1 ) {
$user = bb_get_user( bb_get_user_id( $id ) );
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
if ( $rewrite === 'slugs' ) {
$column = 'user_nicename';
} else {
$column = 'ID';
}
$r = bb_get_option('uri') . "profile/" . $user->$column . ( 1 < $page ? "/page/$page" : '' );
} else {
$r = bb_get_option('uri') . "profile.php?id=$user->ID" . ( 1 < $page ? "&page=$page" : '' );
}
$r = str_replace('forums/profile/' . $user->$column , "profile/" . $user->$column, $r);
return apply_filters( 'get_user_profile_link', $r, $user->ID );
}I noticed that if you did not install bbPress with WordPress cookie integration, then this hack will cause bbPress to always think you are logged out. I think it has something with it not being able to retrieve the cookie because of the path change.
However, if you have WordPress cookie integration enabled, then everything seems to work. Not exactly sure why. But I think it must be something to with the path that’s being set in the cookie.
May 10, 2008 at 5:36 pm #57728In reply to: One profile page to rule them all
Detective
MemberIf you have a WP profile (like the author archive or some other profile) you can redirect the bbPress profile using this hook:
//add_action('bb_init', 'profile_redirect');
function profile_redirect() {
if (is_bb_profile() && $_GET['tab'] != 'edit' && $_GET['tab'] != 'favorites') {
$user = bb_get_user($_GET['id']);
if ($user) wp_redirect("http://www.example.com/member/" . $user->user_nicename);
}
}I did this using this plugin for WordPress profiles, so even users who don’t have published posts have a profile. It works but you miss the profile edit messages (like “your profile has been updated”).
May 10, 2008 at 5:31 pm #63719In reply to: Plugin request gamertags
Detective
MemberHi, i have a plugin that will support this soon
The plugin is named Gaming Codes. It’s for WP, but i have a stripped down version for bbPress. I’ll post it here soon.
May 10, 2008 at 2:32 pm #3360Topic: Theme Editor
in forum Requests & Feedbackbingu
MemberI think bbpress should have a theme editor like wordpress.
May 10, 2008 at 10:05 am #56985In reply to: bbpress / wordpress avatar?
kmccallum
MemberThe code he pasted, above, is missing the <?php … ?> tags, so I’m also getting compiler errors.
May 10, 2008 at 6:56 am #57727In reply to: One profile page to rule them all
mrhoratio
MemberPerhaps this idea of a single profile page for both WordPress and bbPress will be part of the recently accounted backPress.
It would great to have a profile link such as:
http://www.example.com/member/username
that works for both WordPress and bbPress. Instead of separate ones at:
http://www.example.com/forums/profile/username
or`http://www.example.com/author/username
May 9, 2008 at 9:37 pm #3347Topic: 1.0 Development Plan?
in forum Requests & Feedbackbryan868
MemberIs there a version 1.0 development plan anywhere? I’m curious what new features we’ll be seeing in bbPress.
Additionally, are there plans to update the web site design (like wordpress.org) and add a Codex?
That “future of bbpress” announcement in January was very exciting, but it doesn’t seem like much as happen since then. Other than the WP 2.5 integration of course, which is great don’t get me wrong.
May 9, 2008 at 6:58 pm #64587In reply to: bbPress 0.9.0.2 released
bryan868
MemberI’m having a problem with a fresh install of 0.9.0.2. After last step of installation…
Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 - Creating database tables
>>> Create table bb_forums
>>> Create table bb_posts
>>> Create table bb_topics
>>> Create table bb_topicmeta
>>> Create table bb_tags
>>> Create table bb_tagged
>>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
>>>
>>>>>> Duplicate key name 'user_nicename'
Step 2 - WordPress integration (optional)
>>> WordPress address (URL): MYURL
>>> Blog address (URL): MYURL
>>> WordPress cookie secret key set.
>>> WordPress database secret set.
>>> User database table prefix: wp_
Step 3 - Site settings
>>> Site name: MYSITENAME
>>> Site address (URL): MYURL
>>> From email address: MYEMAIL
>>> Key master role assigned to existing user
>>>>>> Username: admin
>>>>>> Email address: MYEMAIL
>>>>>> Password: Your existing password
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email sent
There were some errors encountered during installation!I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….
Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22
May 9, 2008 at 3:52 pm #3356Topic: can’t log in anymore
in forum Troubleshootinghijen
MemberI just installed bbpress on my site with a username “jen”. After it was installed, I went into the settings and integrated it with my wordpress user database. However, now I cannot log in — “jen” no longer exists and my “admin” wordpress user doesn’t exist either. What did I do wrong and how can I log back in?
Thanks.
May 9, 2008 at 2:01 am #64858In reply to: Login status not translating to BBPress from WP
chilledfresh
MemberI was having the exact same problem. This post has been very helpful in resolving the problem: https://bbpress.org/forums/topic/user-intregation-between-wordpress-038-bbpress-not-work?replies=7#post-10428
May 8, 2008 at 10:56 pm #64602In reply to: user_nicename error on installtion
bryan868
MemberI’m having this same problem. Fresh installation using version 0.9.0.2.
Referrer is OK, beginning installation…
>>> Setting up custom user table constants
Step 1 - Creating database tables
>>> Create table bb_forums
>>> Create table bb_posts
>>> Create table bb_topics
>>> Create table bb_topicmeta
>>> Create table bb_tags
>>> Create table bb_tagged
>>> Added index wp_users UNIQUE KEY user_nicename (user_nicename)
>>>
>>>>>> Duplicate key name 'user_nicename'
Step 2 - WordPress integration (optional)
>>> WordPress address (URL): MYURL
>>> Blog address (URL): MYURL
>>> WordPress cookie secret key set.
>>> WordPress database secret set.
>>> User database table prefix: wp_
Step 3 - Site settings
>>> Site name: MYSITENAME
>>> Site address (URL): MYURL
>>> From email address: MYEMAIL
>>> Key master role assigned to existing user
>>>>>> Username: admin
>>>>>> Email address: MYEMAIL
>>>>>> Password: Your existing password
>>> Description: Just another bbPress community
>>> Forum could not be created!
>>> Key master email sent
There were some errors encountered during installation!I should note that I assigned the key master as my admin user in WordPress. When I go to my forum I receive the following error….
Parse error: syntax error, unexpected T_STRING in /MYPATH/bb-config.php on line 22
May 8, 2008 at 9:14 pm #64616In reply to: Cookies login issue with WPMU
lmsalgado
MemberJust found out:
My problem was even simpler:
I instaled MD5 Insecurity and Mouldy Old Cookies on folder bb-plugins when I should had install it on folder my-plugins.
I change them to the new folder, delete again the line
$bb->cookiepath = ‘./wordpress’;
on bb-config.php
And it is still working.
May 8, 2008 at 8:51 pm #64615In reply to: Cookies login issue with WPMU
lmsalgado
MemberI was having the exact same problem, but with normal WP (not WPMU).
My problem was that I instaled wp and bbPress both in subfolders, like:
http://www.mysite.com/wordpress
The problem was on cookies, since bbPress was creating them on root and wordpress both on root and on ./wordpress – but it seems that the ‘good cookie’ was the one on ./wordpress.
The ideal solution would be to set WP to use cookies only on root, but I wasn’t able to do it in a simple way. So I configured bbPress to set cookies on ./wordpress.
This was done by simply adding a line to bb-config.php:
$bb->cookiepath = ‘./wordpress’;
Now it seems that all is working fine.
Hope it helps you too
May 8, 2008 at 6:14 pm #64702In reply to: Theme similar to wordpress ?
_ck_
ParticipantMay 8, 2008 at 6:13 pm #64854In reply to: Request: Plug-in Update
chrishajer
ParticipantIt made sense to me, but I didn’t think it would be happening any time soon. Since WordPress just got this functionality in 2.5, I figured it would be a while until bbPress got it since it’s not quite to version 1 right now. The projects they took on for the Google Summer of Code were related to import/export, not anything like this, that I know of.
https://codex.wordpress.org/GSoC2008#Web_Forums_Export.2FImport_Standard_and_Tools
May 8, 2008 at 3:24 pm #64716In reply to: bbPress 0.9.0.2 + WordPress 2.5.1 cookie conflict?
Sam Bauers
ParticipantYou guessed right.
-
AuthorSearch Results