Hi guys I need your assistance
I got a code online that’s allows users to set up featured image for a topic and I was able to do that now in my latest topic widget area I want to display the featured images beside there respective topics
And also is there a way to allow users to able to add featured images on front end
@nayanboost – what url do they take you to ?
this (changed) code from my plugin may help you create a link
`$text=__(‘Profile’, ‘bbp-style-pack’) ;
$class=’bsp_button1′ ;
$current_user = wp_get_current_user();
$user=$current_user->ID ;
echo ‘<a class=”‘.$class.'” href=”‘ . esc_url( bbp_get_user_profile_url( $user) ) . ‘”>’ . $text . ‘</a>’;`
@momomoko
bbp_get_template_part( ‘user’, ‘topics-created’ )
will use the template ‘user-topics-created.php’ – basically you put all the words together to make the file (that just how wordpress does it!)
These templates all sit in the same directory as the content-single-user.php file.
I am trying to create a custom user page template in bbpress. I have created a file single-user.php in my child theme. And placed the code from bbpress single-user.php there.
But the urls of the profile and other things are not working. Any idea of what is happening here?
I am looking to put announcements/notices above the listing of forums.
sorry, I’m confused – so exactly where? – can you mock up please
Preferably, I would like these to be Super Sticky posts instead of just notices but could work with that.
now you’ve confused me – if you make them super sticky posts, then they will appear as the top post in each forum – if that satisfies, then you don’t need anything further.
<p>
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe">
<label for="bbp_topic_subscription">Notify me of follow-up replies via email</label>
</p>
my code in that area is
<p class="bsp_topic_subscription_reply">
<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" tabindex="102">
<label for="bbp_topic_subscription">Notify me of follow-up replies via email</label>
</p>
Thank you, Robin.
To be clear, if this code adds throttle to the participant role, does it allow moderators to have less posting restrictions on the site?
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Display enable item 6 forum description.
Then in
dashboard>forums>edit forum in each forum you can put in the content part whatever you want to appear. in your case the same description for each forum, but you can have a different.
Finally to get this on the main forums list, create a page called ‘forums’, and put your description at the top of this. Then add the shortcode [bbp-forum-index]
to this. bbpress will then use this as the main forums page.
looks like bbp_title is not working for users.
the code is called by a filter in
\bbpress\includes\core\filters.php
which is
Line 43: add_filter( 'wp_title', 'bbp_title', 10, 3 );
the function bbp_title is held in
\bbpress\includes\common\template.php
and the function starts at line 2578.
I may get a chance to look further tomorrow (or maybe not!), but if you fancy having a look. The function has a filter at the end, so if you can work out what’s wrong, should be easy to add a fix
Yes, I am designing my own theme. But basic WordPress templates work the same way.
There is no longer a <title></title>
tag in header.php. Instead, functions.php has an add_theme_support ('title-tag');
.
If I remove this and write the title tag back to header.php, it will display the user’s name in the title bar.
View post on imgur.com
View post on imgur.com
make forums private to make them visible to users only
use shortcode
[bbp-register]
or anything in WordPress that does registration – bbpress just uses WordPress registration
I believe this is it
https://bbpress.org/feed/?post_type=topic/
but come back and confirm
thanks,
this will add throttle to the participant role
Put this in your child theme’s function file – or use
Code Snippets
add_filter( 'bbp_get_caps_for_role', 'brandi_role_caps_filter', 10, 2 );
function brandi_role_caps_filter( $caps, $role )
{
/* Only filter for roles we are interested in! */
if( $role == 'bbp_participant' )
$caps['throttle'] = true ;
return $caps;
}
Hey!
I’ve been trying several codes but I can’t get what I want.
I just simply need a rss URL that shows recent topics in all forums but not their replies. Is that possible?
Thanks
I used to take part in the European Tall Ships races in the 1980’s – so recognise the logo! many happy memories.
start by reading
Step by step guide to setting up a bbPress forum – Part 1
Section 8 is the bit to read
Hello,
I use add_theme_support ('title-tag');
and the <title></title>
does not show the user’s name if I am on their profile.
Has anyone ever experienced this?
change
$forum = bbp_forum_id() ;
to
$forum = bbp_get_forum_id() ;
Thank you dear for your quick reply ; i copy/past the loop single forum file into my child theme root (what i did is the good way to do that ?) , then i added your script like this :
<a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>">
<?php $forum = bbp_forum_id();
$parent = wp_get_post_parent_id($forum);
if (!empty($parent)) {
echo esc_html( get_the_title($parent) ) ;
}
?> : <?php bbp_forum_title(); ?></a>
The result is that i got the id forum behind each forum title (on the main parents forums list) and on the subforum list (when i click on a forum on the forums list), i got the subforum id attached to parent title : subforum title
untested but try
$forum = bbp_forum_id() ;
$parent = wp_get_post_parent_id($forum) ;
if (!empty($parent)) {
echo esc_html( get_the_title($parent) ) ;
}
How can I fix the dubbing of responses and topics in the activity filter in some templates in bbpress 2.6.4?
<select id="activity-filter-by">
<option value="-1">— Everything —</option>
<option value="new_member">New Members</option>
<option value="updated_profile">Profile Updates</option>
<option value="activity_update">Updates</option>
<option value="bbp_topic_create">Topics</option>
<option value="bbp_reply_create">Replies</option>
<option value="bbp_topic_create">Topics</option>
<option value="bbp_reply_create">Replies</option>
</select>
I am using the bbPress forum on my Android Blog (Droidfeats forum) but unable to get the breadcrumbs as I don’t use the Yoast Breadcrumbs feature.
I tried to search in this forum several times but unable to get any custom breadcrumbs plugin specific to bbPress forum pages.
Why I don’t use Yoast breadcrumbs is because it’s for the entire site. I don’t want breadcrumbs over the whole site’s post because it destroys my site layout and ad positioning. But I only want them on my forum pages and topics.
Is there any way to get it? Or any code to implement on Snippets?