Search Results for 'bbpress'
-
AuthorSearch Results
-
June 17, 2007 at 1:12 pm #58417
In reply to: Editing hot tags so they point outside the bb
Nola1974
Participant> like the default bbpress tag that points to the bbpress web site
It does?
June 17, 2007 at 9:20 am #56530In reply to: Strut Your bbPress!
yottabite
Memberfairly standard install with a few tweaks, mostly within the themes folder:
June 17, 2007 at 9:12 am #58399In reply to: bbpress info in wordpress?
fel64
MemberThe URL doesn’t point to a valid image file so it just displays the alt text. Check what’s wrong with the URL (and remove the pointless reference to $bbposter->user_login).
June 17, 2007 at 7:27 am #55215In reply to: Adding a plugin admin page into the admin menu
Sam Bauers
ParticipantThere are functions to do this in the current trunk of subversion. These will be part of 1.0.
Check how it is done in my LDAP plugin, so that it will degrade gracefully on older versions of bbPress.
June 17, 2007 at 7:23 am #55214In reply to: Adding a plugin admin page into the admin menu
Sam Bauers
ParticipantThere are functions to do this in the current trunk of subversion. These will be part of 1.0.
Check how it is done in my LDAP plugin, so that it will degrade gracefully on older versions of bbPress.
June 17, 2007 at 5:19 am #58422In reply to: Download bb 1.0?
Trent Adams
MemberbbPress 1.o hasn’t been released yet. We are going to have another release out here soon, or check out the ‘development’ versions at:
Trent
June 16, 2007 at 11:21 pm #58398In reply to: bbpress info in wordpress?
Kahil
MemberI’m confused… I activated that plugin and pasted what you put…but all that is there is the the word “avatar”….

I put in the url of the forum… did I do something wrong?
Thanks,
Kahil
June 16, 2007 at 11:02 pm #58397In reply to: bbpress info in wordpress?
fel64
MemberSame database but not same codebase. However you can make bb load wp at the start, and you can make wp load bb at the start (that’s the other method). It’s not difficult but not guaranteed to work, because only a few people have done it. It might mean fiddling with things until they work. If you did that, you could do what you were trying.
<?php
/*
Plugin Name: WP Avatars
*/
function wp_aud( $felID ) {
$avatar = get_usermeta( $felID, 'avatar_file' );
$avatar = explode('|', $avatar );
$bburl = 'Plz enter the URL of your bb install here';
echo '<img alt="' . $bbposter->user_login . ' avatar" src="' . $bburl . '/avatars/' . $avatar[0] .'" class="avatar" />';
}
?>Otherwise you could paste that in a new text file, save it in your plugins folder, activate it and then use this in wordpress:
<?php wp_aud( $comment->user_ID ); ?>In theory.
June 16, 2007 at 10:27 pm #58396In reply to: bbpress info in wordpress?
Kahil
MemberI wouldn’t know where or how to insert something like you posted above. I thought that since both wordpress and bbpress were using the same database that all I’d have to do is paste the code. Like this for the avatar plugin I am using in bbpress:
<?php avatarupload_display($user->ID); ?>
June 16, 2007 at 10:02 pm #58416In reply to: Editing hot tags so they point outside the bb
peter-b
MemberI think I’m losing the plot..
just checked the bbpress hot tag and it points internally … so I suppose that while the question remains, the answer is probably “You can’t” – which in turn leads me to raise an enhancement request that such a facility (like the one in wordpress where you can add links to a blogroll on a sidebar)In fact it would be more useful if these tags could be added on a per forum (or even per topic basis)
June 16, 2007 at 8:43 pm #58010In reply to: wpmu bbpress wp bbpress orgy
matt123
MemberOk so i went over my config file. Figure it must not be looking at the right place. I keep getting “Cannot select DB.” Can anyone spot where I went wrong? I know the other stuff is set up correctly. Bbpress is installed in mysoberlife/democlinical/forum/. Any help would be much appreciated! Tried install bbpress inside a subdirectory on another domain and had the same problem.
$bb_table_prefix = ‘bb_’;
$bb->domain = ‘http://mysoberlife.com’;
$bb->path = ‘/democlinical/forum/’;
$bb->wp_table_prefix = ‘wp_’;
$bb->wp_home = ‘http://mysoberlife.com/democlinical’;
$bb->wp_siteurl = ‘http://mysoberlife.com/democlinical’;
June 16, 2007 at 8:37 pm #58395In reply to: bbpress info in wordpress?
fel64
MemberDidn’t see ganzua’s post, posted at the same time. 😮
When copy and pasting the code you have to remove any bb dependencies. For example, bb uses the $bbdb; wordpress uses the $wpdb, and for queries and the like you can just switch them. Note that $wpdb does not contain information about the names of bb tables, so $wpdb->topics or the like will not work. In other cases the function names are simply different; bb_get_option() or simply get_option() for example. This code is what I used in bbSync to integrate avatars:
function bbreplyavatar() {
global $bbposter, $opshuns;
$avatar = get_usermeta( $bbposter->ID, 'avatar_file' );
$avatar = explode('|', $avatar );
$bburl = $opshuns['bburl'];
echo '<img alt="' . $bbposter->user_login . ' avatar" src="' . $bburl . '/avatars/' . $avatar[0] .'" class="avatar" />';
}Note that $opshuns and $bbposter need definition (or changing). bbSync could be quite useful to you actually.
What’s the specific problem you want to solve right now, and what have you tried?
June 16, 2007 at 8:20 pm #58394In reply to: bbpress info in wordpress?
Kahil
Memberthe edit profile link, yes, that was resolved, but I just meant that statement as an example. There are other things from bbpress that I would like to have displayed in my wordpress sidebar.
Well, since you mentioned that the first option can be tricky, lets start with the latter? the php code?
Thanks,
Kahil
June 16, 2007 at 7:57 pm #1959Topic: Editing hot tags so they point outside the bb
in forum Requests & Feedbackpeter-b
MemberHow do I edit hot tags so that they point to a site outside the borad (like the default bbpress tag that points to the bbpress web site? There doesn’t seem to be any table field where tag address information is stored.
June 16, 2007 at 6:14 pm #58393In reply to: bbpress info in wordpress?
fel64
MemberOkay, but which do you want to do? I don’t feel qualified to make that decision for you. Can you make a start on either?
June 16, 2007 at 6:02 pm #58392In reply to: bbpress info in wordpress?
ganzua
Member“I would like to insert the “edit profile” link and some other stuff into my wordpress sidebar.”
-> I think we have solved this question in the other topic
June 16, 2007 at 5:41 pm #58391In reply to: bbpress info in wordpress?
Kahil
MemberI would appreciate any help. Whichever is the easiest and will work the best. I’m fairly new to coding myself, but I learn fast. yourkahil.com is where I’m doing this. I have a lil login form in that first box in the sidebar and once you login, it has a couple links now, like logout. I would like to be able to show the user’s avatar with the “upload avatar” plugin, the private message link(s) from the “private message” plugin.
Thanks for the help!
Kahil
June 16, 2007 at 5:32 pm #58359In reply to: Any idea to integrate wp and bb login forms?
ganzua
MemberIt works!!!!!!
The working whole code is;
function wp_registro( $before = '<li>', $after = '</li>' ) {
if ( ! is_user_logged_in() ) {
if ( get_option('users_can_register') )
$link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
else
$link = '';
} else { if( current_user_can('activate_plugins') ) {
$link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}
else {global $current_user; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $current_user->ID . '">' . __('Profile') . '</a>' . $after;
}
}
echo apply_filters('register', $link);
}Now when any user logs in, wordpress sidebar displays a link to his profile in bb, but when is the admin the one who logs in he get a link to wp control panel.

Thanks a lot fel64!
June 16, 2007 at 5:09 pm #58357In reply to: Any idea to integrate wp and bb login forms?
fel64
MemberTry this one.
global $user_ID;
get_currentuserinfo();
... bbpress/profile.php?id=' . $user_id . '">' . ...June 16, 2007 at 4:44 pm #58356In reply to: Any idea to integrate wp and bb login forms?
ganzua
MemberThese two do not display anyting either;
/bbpress/profile.php?id=' . ID . '">'/bbpress/profile.php?id=' . $user->ID . '">'June 16, 2007 at 4:36 pm #58355In reply to: Any idea to integrate wp and bb login forms?
ganzua
MemberNop, it doesn’t work; this line
global $user; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $user . '">' . __('Profile') . '</a>' . $after;links to
/bbpress/profile.php?id=it is not catching the user idJune 16, 2007 at 10:58 am #1958Topic: Adsense (and YPN) injections (ads plugin)
in forum Pluginsthierryyyyyyy
ParticipantI made for my bbPress forum (http://forum.2diabolos.com) a plugin that inserts Adsense or YPN code in the posts.
Lots of configuration parameter (not show to administrators, positionning, number of adsense block ….);
easy to install and configure, with a administration panel (in Themes menu)
June 16, 2007 at 9:12 am #55080In reply to: Fix bbPress Plugin 0.8.1-1
peter-b
MemberSorry – this was a duplicate – mod please delete)
June 16, 2007 at 9:10 am #55079In reply to: Fix bbPress Plugin 0.8.1-1
peter-b
MemberWorked for me, although initially highlighted another @strpos error in the functions.php script.
However setting is bozo to 1 in the admin pages creates the appropriate row in the meta table for the user, setting it back to zero deletes the row, rather than setting the value to zero (which is presumably why the box remains blank) while it works, it seems an odd way of doing it!
(Just realised I am being critical of someone else’s work without the ability to do it better myself – my apologies – I suppose I ought to get down a book on PHP and try and actively contribute rather than just fault find…)
June 16, 2007 at 6:29 am #57912In reply to: Bbpress themes
bbolman
ParticipantMake sure that you insert all the files from the folder into your /my-templates/ file. The answer that makes most sense to me is that you are missing a few of your files. Let me know if that makes any difference. It’s late here, so I may be making things up.
-
AuthorSearch Results