Search Results for 'bbpress'
-
AuthorSearch Results
-
June 16, 2007 at 8:20 pm #58394
In 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.
June 15, 2007 at 11:00 pm #50274In reply to: Users dont receive password after registration
fel64
MemberYou’re running this on WP.com? How’d you manage that? 😮
Anyway, you need this fix because the default setting should indeed be 0. Once the fix is applied, you also have to go to each affected user and set their status to 0 again.
starrett
Memberfel64,
Thanks for all the hard work you put in on this. I just installed the latest (I assume) version of bbsync on my site, and I’m getting the following error message when I try to save a post in WP:
“got opshuns
got bb
got currentuserinfo
Fatal error: Call to a member function on a non-object in /path/to/my/forums/bb-includes/functions.php on line 607″
I added “global $bbdb;” to my bbpress config.php like you suggest, and it didn’t seem to make any difference. As well, when I use the “<?php felbbreplies(); ?>” call on my indie pages I get the following:
“doin’ felwptobb
pre-query in felwptobb. bb_topicmeta = bb_topicmeta
felwptobb post-query, topic_id = 2
~ 21:36 15th Jun 07 admin
blah blah blah this is a test reply
Fatal error: Call to undefined function: get_topic() in /home/.reactor/starrett/lifthill.com/wp/wp-content/plugins/bbsync.php on line 432″
So it is bringing in and displaying the replies, but then it gives the error.
I’m running WP 2.2 and BB 0.8.1.
Thanks!
June 15, 2007 at 8:48 pm #57911In reply to: Bbpress themes
htheeditor
MemberHey Trent,
The one theme for this blog kinda doesn’t work for me…check this out.
http://bbpress.proyectoquisqueya.net/UPLOADS/bbpress.gif
Am I doing something wrong?
June 15, 2007 at 6:02 pm #50272In reply to: Users dont receive password after registration
fel64
MemberI don’t know about chosen passwords.
Bugs go to http://trac.bbpress.org.
No permanent deletion yet.
No locking forums.
Yes. If
is_bozois 1, that is true, and the user is considered a spammer. 0 means they are not a bozo/spammer.Several other whats you have found?
June 15, 2007 at 6:00 pm #58390In reply to: bbpress info in wordpress?
fel64
MemberYeah. That’s because WP doesn’t load bb and all the associated functions. You have two options: you could set up wp to always load bb, or you could recreate the functionality yourself. The first could be tricky and fiddly, the latter means coding the PHP yourself. We can help with either.
June 15, 2007 at 5:16 pm #58389In reply to: bbpress info in wordpress?
Kahil
MemberThose two plugins don’t help at all. Basically if you have a lil php code that you have in your bbpress theme to display anything from display names, profile info or the avatar when using upload avatar plugin….when you paste that code on the wordpress side you get an error.
June 15, 2007 at 5:09 pm #55212In reply to: Adding a plugin admin page into the admin menu
thierryyyyyyy
ParticipantIf bbPress includes a “Plugin” menu or an “Option” menu, it would be natural for all new plugin to have their submenu in it.
Do you think I can ask that in TRAC ?
June 15, 2007 at 3:37 pm #58319In reply to: Theme not working
simon551
MemberI was able to find this in past discussion. I’m posting the fix here in case anyone else needs it:
https://bbpress.org/forums/topic/700/page/2?replies=64#post-4936
from Trent, but code fixed up a little by Nanome:
“Create a file called whatever you want, but I recommend path-to-url.php
and put the following in it and upload it to /my-plugins/ directory:”
-Trent
Nanome’s fix:
<?php
function fix_bb_path_to_url( $url ) {
$url = str_replace(array(‘//’, ‘\\’, ‘\’), array(‘/’, ‘\’, ‘/’), $url);
return preg_replace( ‘|
([^/])|’, ‘
/$1′, $url );}
add_filter( ‘bb_path_to_url’, ‘fix_bb_path_to_url’, 1, -1 );
?>
June 15, 2007 at 2:34 pm #58351In reply to: Any idea to integrate wp and bb login forms?
ganzua
MemberHi fel64, thanks for the explanation.
I tested and the function works but there are two errors in the code.
First, the id user line displays “21” for every user
global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;Next,
if( current_user_can('administrate')doesn’t seem to work because it display a link to bbpress profile instead to /wp-admin/This is the whole function so far;
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('administrate') ) {
$link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}
else {global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;
}
}
echo apply_filters('register', $link);
}did I made a mistake in the second “else” ?
June 15, 2007 at 6:55 am #58388In reply to: bbpress info in wordpress?
Pravin Paratey
ParticipantJune 15, 2007 at 6:53 am #58311Pravin Paratey
ParticipantCould you just post the relevant parts of css here? By relevant, I mean the all-enclosing div tag and the 3 divs for the 3 columns. I’m thinking it’s a padding + width issue. IE and firefox handle these differently. For one, Width = width + padding. For the other Width is width without the padding.
June 15, 2007 at 4:59 am #1957Topic: bbpress info in wordpress?
in forum TroubleshootingKahil
MemberHow do I insert info from bbpress into wordpress? I would like to insert the “edit profile” link and some other stuff into my wordpress sidebar.
Thanks
-
AuthorSearch Results