add_filter( 'bbp_get_user_edit_profile_url', 'http://example.com');
should do it
Can you give me complete code please? I’m not developer, i just collect code somewhere and posted and try on. ^^
probably the easiest is to filter the edit profile call
bbp_get_user_edit_profile_url
held in
includes/users/template.php
it has
return apply_filters( 'bbp_get_user_edit_profile_url', $url, $user_id, $user_nicename );
so an ‘add_filter’ on that should work nicely
it may be that your theme is overwriting it (or it could be lots of other reasons !)
try
#bbpress-forums {
font-size: 16px !important ;
}
or use my style pack, which will let you style fonts and much more
https://wordpress.org/plugins/bbp-style-pack/
bbPress version: 2.5.11
My Site: http://figoocraft.de/forum-3/
Theme: Sydney
Hello everyone,
I am trying to change the size of my font in bbPress.I tried editing the bbpress.css file in: content/plugins/bbpress/templates/default/css
First I edited the Size of the bar that holds the topics, that worked perfectly.
Then I tried to edit the overall size of all fonts, so I changed:
#bbpress-forums {
font-size: 12px;
}
To:
#bbpress-forums {
font-size: 16px;
}
That didn’t change anything, so I tried to copy the bbpress.css to my themes directory as that’s what’s mentioned in the documentation. That neither changed anything, so now Im wondering what am I doing wrong?
@johnjamesjacoby
In the meantime I migrated the second beta to my live site, http://www.starry-night.nl
I noticed (after the migration) that trashing a topic WITHOUT replies leads to my WP: Not Found page. So the handling could be improved there (or a bug entered the code).
When trashing a topic with replies BBPress jumps to what looks my first topic (BBPress) entries.
All and all, very nice upgrade, I can’t say the BBPress runs real faster (yet).
Can anyone help with correct code? I want complete user click edit profile will direct 100% go to custom page like normal without any issue
Issue 1:
First load edit page complete, after that 2 second, reload custom page
add_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
function pb_custom_bbpress_edit_profile(){
echo ‘<meta http-equiv=”Refresh” content=”0;url=http://example.com” />’;
}
Issue 2:
No work
add_filter( ‘bbp_pre_get_user_profile_url’, function() {
return get_bloginfo(‘example.com’).’/profile’;
});
Issue 3:
Still load edit profile link without load custom like. But given blank page, no error no warning, just empty link page
add_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
function pb_custom_bbpress_edit_profile(){
echo ‘‘;
}
==============
Also change the default url for favorites and subscriptions by doing this:
How can i correct it?
// Replace the default link for the favorites
add_filter( ‘bbp_get_favorites_permalink’, function() {
return get_bloginfo(‘example.com’).’/profile/forum-favorites’;
});
// Replace the default link for subscriptions
add_filter( ‘bbp_get_subscriptions_permalink’, function() {
return get_bloginfo(‘example.com’).’/profile/forum-subscriptions’;
});
=============
Thanks
It seems that the shortcode: [bbp-topic-index] (which I use as the landing page on my forum and in a few navigation tabs) isnโt working in my 2 test environment installs. Could this be confirmed?
Confirming the Permalinks (settings) solves the issue in both env.
We use that short code here, too, so it’s working OK for us. I’ll need to look into the links. Possible they moved to an action, or a different template part at some point.
@senatorman โ do your database backup first, then swap from alpha to beta, then run the bottom three upgrade tools, for favorites and subscriptions (I forgot about forum subscriptions.)
@johnjamesjacoby
@netweb
He Guys,
It seems that the shortcode: [bbp-topic-index] (which I use as the landing page on my forum and in a few navigation tabs) isn’t working in my 2 test environment installs. Could this be confirmed?
Best regards,
Marc
@johnjamesjacoby
After hours of adjusting my bbpress child theme templates, and troubleshooting I found that the favourites and subscription items where still missing … after some more digging I found that:
<?php bbp_topic_subscription_link(); ?>
<?php bbp_user_favorites_link(); ?>
is missing in the loop-replies.php template file. I think this is a oversight? Adding the above two function calls to loop-replies.php make both options appear.
Notifications would normally be dispatched when the bbp_new_topic action fires.
In this case, you’d either have to trigger that manually or else call bbp_notify_forum_subscribers() directly (or else craft a manual solution of your own).
Hi my website used bbpress like this box writting here. When i hover the icon appear mixed black+green, i tried to firebug here but i cannot find the correct code hover this website used for this icon.
Do you have any idea?
Thanks. I used border instead of shadow for now.
Can you help with button when hover?
I tried this code. But no work
#wp-bbp_topic_content-editor-container .mce-container-body .mce-toolbar-grp .mce-container .mce-container-body .mce-container div .mce-widget button:hover
{color: red !important;}
On the box-shadow front, you might find a specifier like:
#wp-bbp_topic_content-editor-container .wp-editor-area
Provides the specificity you need to apply a box shadow from a custom stylesheet (or custom CSS plugin).
Hi Thank all of you.
Robin. Code work at middle load, then complete load, it dont work. I leaved it, I used border for simple.
As Barry said, there is deal with box-shadow in wp-includes/css/editor.css which is not good to direct core change.
—————-
I would like to change color icon when hover. Current when hover and none hover icon. fontownsome have black color, but i would like hover change blue color example. Can you please help?
@reedy I’m here if you need help. Can also use the #bbpress channel in WordPress’s Slack instance.
The WP Codex is a great starting point for learning how to do things like register a custom taxonomy … it comes to mind you might also want to explore plugins like Posts 2 Posts (which would offer an alternative way to go about this task).
Something like this ought to do the trick:
function bbp_add_recent_activity_view() {
bbp_register_view(
'active',
'Active topics',
array(
'meta_key' => '_bbp_last_active_time',
'meta_type' => 'DATETIME',
'meta_compare' => '>=',
'meta_value' => date_i18n( 'Y-m-d H:i:s', strtotime( '-1 day' ) ),
'max_num_pages' => 1,
'orderby' => 'meta_value_num',
'show_stickies' => false
)
);
}
add_action( 'bbp_register_views', 'bbp_add_recent_activity_view' );
With this in place you should then be able to access a list of ‘active’ topics at:
example.com/forums/view/active
In terms of where to add this sort of code, there are a few options. One would be to create a new PHP file (starting with a <?php opening tag) at:
wp-content/mu-plugins/bbpress-tweaks.php
Just to add to Robin’s note, the textarea’s box-shadow is set to none by wp-includes/css/editor.css (which uses the same selector as you were using), so getting more specific with your rule is a good way to go here.
it seems from this trac ticket that even if you have the correct code, it doesn’t work, and won’t until 2.6 is released.
Well, if you’re building on my example code you could make a few changes in order to get the information flowing back to the success message:
# Find this line
bbp_insert_topic( /* ... */ );
# Change it: let's catch the post ID
$topic_id = bbp_insert_topic( /* ... */ );
# Find this line
post_to_bbp_status( 'success' );
# Change it: let's pass the post ID instead of 'success'
post_to_bbp_status( $topic_id );
# Find this condition
if ( 'success' === post_to_bbp_status() )
# Change it: test to see if it contains a post ID
if ( is_numeric( post_to_bbp_status() ) )
# Find the line
return 'Thank you for your submission.';
# Change it: display the new topic's permalink
return 'Check your post: ' . get_permalink( post_to_bbp_status() );
Note that these changes are untested, they don’t do any safety checks etc etc. However, I hope it gives you some ideas you can use to further develop your own solution ๐
Hello,
thx for the reply.
@Robin
I corrected the code on Line 1, but as Participant i still cannot Trash own Posts / Topics. Role has only Edit / Reply available…
@Pascal
Is there already an estimated date, when the Version 2.6 will be released?
Thx
Regards
Sally
I’ve now gotten my forum to work by commenting the entire thing and putting
function bbp_pre_get_posts_normalize_forum_visibility( $posts_query = null ) {
return;
}
would this have fatal influences on other aspects?