Thx! Shall give it a try.
OT: Nice Avatar. Especially with tagline “Being active since …”
)
So I see that bb_logout_link handles the href for logout links (for the Admin panel, admin-header.php, ln 44). I’ve commented out the bb_get_uri bit that adds re=http://example.org/forums/ to the href, and this fixes the logout problem.
What’s the redirect for?
I have another install that IS integrated, and I don’t have problems with the redirect there. I’ve been comparing files but haven’t found anything yet. Could this be .htaccess related?
I did see another post in the forums about re=, but it didn’t go anywhere. Anyone have suggestions?
Thanks!
@mwaterous
Ok! You got the <h1> tag. Happy? More suggestions..
There’s a link on the bottom of the search page that says something like, “Search on Google”… I usually click on that.
If the creator of that theme is not going to update it, I think I would compare the stock kakumei front-page.php and the front-page.php from this theme to see where the differences lie. There are lots of differences, but only a few that apply to your count issue.
First of all, thank you for a great script, I have run into a problem, it seems when I try to transfer the 60k posts it reads:
Data too long for column 'post_text' at row 1 [1406]
What can I do about this? Please help it is very urgent.
Also, in order for it to work, since I installed phpbb with a different table prefix, I had to define the prefix on the script file just under the bbPress prefix, then I worked:
$table_prefix = 'phpbb3_';
The way I did it was to duplicate kakamei theme (not the blue) and put it in the my-template.
Then started with the BB header, I copied what was in the WP header. I took everything out after the body tag except for the “main” div. The BB footer I did the same. I just made sure there were enough div closing tags. Then copied over the codes that apply for the header and footer from the WP css. Most WP theme has two column one main and one sidebar. I treated BB like it was wordpress, one side the main section and the other sidebar. I treated the MAIN div as the main section and View/Hottags as the sidebar. I know this is not the best explanation but I hope you get the idea. It just takes a lot of css work.
try adding define( 'COOKIE_DOMAIN', '.mnenie.dp.ua' ); to bb-config
That theme is missing this:
<?php if (bb_get_forum_is_category()) : ?>
That skips the counts when the forum is a category. Looks like they need to update their theme.
Thanks for the replies!
I wouldn’t mind installing a plugin to accomplish this, but I tried out Role Manager and it didn’t have any option for displaying emails.
Ashfame, I just went with your method of putting it in profile.php. It’d be nice to not have it as a per template thingy, but it works fine for now. You’re right about it needing to check to see if the current user is an admin to prevent duplicates. I’m new to bbpress so I don’t know if there’s a proper way to do this or not, but I figure the admin is the only one who can edit users, so I plopped in this little guy:
<?php
if ( bb_is_user_logged_in() && !bb_current_user_can( 'edit_users' ) ) {
echo 'user_email .'">' . $user->user_email . '';
}
?>
It seems to work.
Howdy,
I’ve just installed a fresh, non-integrated 1.0.2 copy to /forums using Kakumei. I can log out of the forum area fine, but trying to log out of the Admin panel causes the following Forbidden error:
You don’t have permission to access /forums/bb-login.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
The difference in the hrefs is apparent:
example.org/forums/bb-login.php?logout=1
(forum) vs (admin panel follows)
example.org/forums/bb-login.php?logout=1&re=http://example.org/forums/
My apologies if this is addressed elsewhere; I’ve looked through the topics under “log out” and “logout” and didn’t see anything there.
Thanks.
<?php bb_profile_link( array( 'id' => $user->ID, 'text' => get_user_display_name( $user->ID ) ) ); ?>
I’d guess… not really sure on the context where you’re putting it though, so I can’t really test
I guess the most simple (and painless) way to do this will be to redirect/rewrite the profile URL from bbPress to point to the profile URL in WordPress.
You can reference the profile by the ID – in bbPress it goes like http://example.com/bbpress/profile.php?id=1 and it is equivalent to http://example.com/wordpress/?author=1
You just need some .htaccess magic
Hello,
I would like to display a link to the profiles of my WordPress website on the post.php file, just below the username and avatar.
I tried a code that I found in the profile.php file : <?php echo get_user_display_name( $user->ID ); ?>
But I can’t even make it work. Is it possible to get the Worpress user nicename to create this link? I did a complete WP/BBpress integration…
Thanks a lot for your help
It has to have my name and web site linked to somewhere on it. Then people will know my name. And my web site address. And that I’m super cool enough to be linked to from a theme that I didn’t make.
Yes ashfame…THAT!!! That’s what I want. : )
I’m using the guangzhou theme, as it best matches my WP theme. I’m just trying to find the part of the cod where I can manipulate that. Then if I need helping making sense of the code, I’ll be back, but at least I’ll try it on my own. : )
I have added a Link Category menu from my WP to my bbPress menu if anyone is interested. It’s from the WP template tag system. If anyone is interested in that.
Have a look here (if you are using 0.9.0.5):
https://bbpress.org/plugins/topic/forum-is-category/#post-1495
I’m on my way to implement it for my forum and will report later, if the _ck_ proposed “Add Topic” patch does work – just kidding …
Find
<h2><?php _e('Hot Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
add
<h2>Text</h2>
<p>Text text text</p>
=
<h2><?php _e('Hot Tags'); ?></h2>
<p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
<h2>Text</h2>
<p>Text text text</p>
@johnhiler
Using the plugin to change roles of a member is overkill in my opinion. I am not in favor of hacking core files either. My method of adding a check for user logged in & then spitting out the code should be enough for the required functionality. Along with a user logged in check it should also check if current user is not an admin so that email addresses are not repeated for admins.
@Kawauso
I put your code in functions.php and it didn’t seem to work.
With a normal user on my test setup, I wasn’t able to see the admin’s email id
I think they should be nominated for an academy award.
I’d just like to say thanks to all of the developers out there who make BB Press and all of it’s plugins possible. In particular I would like to thank Night Gunner who’s support in the last week or so has been incredibly helpful and very prompt.
Remember people these guys ( and girls ) don’t have to help and I am sure they get very frustrated dealing with repetitive problems such as the ones that would arise here so giving them some thanks goes a long way.
Cheers
I made an oops. That code above doesn’t work, and I edited it earlier but I forgot to hit submit (I have so many tabs open it’s not even funny).
The proper code is as follows;
$id = ( isset($_GET['tag']) ) ? $_GET['tag'] : false;
if ( ! $id || ! bb_get_tag( (string) $id ) )
$permalink = bb_get_tag_page_link();
else {
global $tag, $tag_name;
$tag_name = $id;
$tag = bb_get_tag( (string) $id );
$permalink = bb_get_tag_link( 0, $page ); // 0 => grabs $tag from global.
}
…with the code I originally posted, there’s no tag information passed on, so you get a whole wheelbarrow full of nothing.
Trac filed, #1197… first time I’ve ever filed a trac, so I hope I followed etiquette/protocol properly.
What do you mean “shifts out of position” in Firefox? I viewed in FF 3.5.3 on Windows XP and it looked fine to me.
One weird thing though. Even though the page comes up, the page is returned a 404 status code. Check it here:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.pctbc.com%2Fweb%2Fforum%2F
Or view the headers in Firebug.
Date: Wed, 30 Sep 2009 23:47:21 GMT
Server: Apache/2.2.3
X-Powered-By: PHP/5.2.6
X-Pingback: http://www.pctbc.com/web/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Wed, 30 Sep 2009 23:47:21 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Keep-Alive: timeout=10, max=200
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
404 Not Found
When I place this code to show the buddybar in my forum theaub.com/bbpress it blanks out and crashes. the buddybar doesnt show up and everything is duemed. CANT ANYONE HELP, I been going at it for two weeks.
if
( !defined( ‘ABSPATH’ ) & !defined( ‘XMLRPC_REQUEST’ )) {
define( ‘WP_USE_THEMES’, false );
//
// AND THIS CODE OR ONE OR THE OTHER //
//
include_once( ‘/hsphere/local/home/11111111/theaub.com/wp-blog-header.php’ );
header( “HTTP/1.1 200 OK” );
header( “Status: 200 All rosy” );
}
It looks like you’re trying to install bbPress as a plugin within WordPress?
It’s actually a separate program… you have to install it separately from WordPress. You can integrate the two, so that they have shared users.