Forum Replies Created
-
In reply to: URGENT – Freshness Name doesn’t update
It’s the…
bbp username (Robin Wilson)
I got it from a post on here, i can’t seem to find it!
In reply to: URGENT – Freshness Name doesn’t updateHi, yes, the forum index is using a shortcode.
I have also done a full reset using the Forum Tools.
I think I have found the issue. Everything works fine, and everything updates fine, but as soon as I activate the bbP username Plugin, the Forum index doesn’t update with the latest Username (the avatar still updates fine).
The Username that it gets replaced by is the Admins. But what’s strange is that, the Admins username still links to the new usernames profile. So basically, it’s just the text that’s not updating.
It’s only when a user creates a New Topic. If a user Replies to a Topic, the Username and Avatar update fine.
[bbp-topic-index] shortcode also updates fine with Username and Avatar
Do you have any idea of what could be causing this?
Thanks again!
KamIn reply to: Show First Name OnlyAny help with this would be really appreciated guys?
In reply to: Change Sticky and Super Sticky TextHi, sorry, I mean on the actual Forum itself.
I’m finding a lot of my Users don’t understand what “Super Sticky” means, so would love to change it to something a little more generic, e.g Hot Topic.
Any help would be great! 🙂
In reply to: Forum to sit inside WordPress pagesHey, they was part of the Title Header in my Theme. I’m using Bridge Theme. I went around in circles for many days trying to work it out, then realised it was a simple on/off switch to make the Theme header appear. Hope that helps?
In reply to: Add/Change User rolesit worked! thank you so much! for all your help!!!!!
In reply to: Add/Change User rolesAhh, that’s brilliant. It works! Thanks so much! You’re a god!
My last question is about changing the background colours. I’m using your code:
function rk_show_role_classes($classes) { $replyid = bbp_get_reply_author_id(); $bbp_get_role = bbp_get_user_display_role($replyid); $bbp_display_role = strtolower($bbp_get_role); $classes[] = $bbp_display_role; return $classes; } add_filter( 'bbp_get_topic_class','rk_show_role_classes' ); add_filter( 'bbp_get_reply_class','rk_show_role_classes' );
and added in some css, like you said:
.communitymember .bbp-author-role { background-color: blue; }
This may seem like a basic question, but am I suppose to amend your code in any way? If so, I have tried multiple variations of it (logic guess work), and a few variations of css, with no luck.
Please could you guide me as to what I need to change on your code to get it to work?
Thanks again,
KamIn reply to: Add/Change User rolesHi Robkk, I’d like to change the capabilities for the roles, so I think adding the new roles would be better.
When I move my code to my Child Theme, my website goes blank.
Do you know if theres something that I’m missing?
This is my Child Theme with the 3 new role and new capabilities in it… (when I add this code to the core bbpress files, it works, but now that I moved it to my Child Theme, my site goes blank).
<?php // enqueue the child theme stylesheet Function wp_schools_enqueue_scripts() { wp_register_style( 'childstyle', get_stylesheet_directory_uri() . '/style.css' ); wp_enqueue_style( 'childstyle' ); } add_action( 'wp_enqueue_scripts', 'wp_schools_enqueue_scripts', 11); //code to add roles function add_new_roles( $bbp_roles ) { /* Add a role called team member */ $bbp_roles['bbp_teammember'] = array( 'name' => 'Team Member', 'capabilities' => custom_capabilities( 'bbp_teammember' ) ); /* Add a role called teammember */ $bbp_roles['bbp_communitymember'] = array( 'name' => 'Community Member', 'capabilities' => custom_capabilities( 'bbp_communitymember' ) ); /* Add a role called ambassador */ $bbp_roles['bbp_ambassador'] = array( 'name' => 'Ambassador', 'capabilities' => custom_capabilities( 'bbp_ambassador' ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 ); function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_teammember' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_communitymember' ) $caps = custom_capabilities( $role ); if( $role == 'bbp_ambassador' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'teammember' role */ case 'bbp_teammember': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => true, 'throttle' => true, 'view_trash' => true, // Forum caps 'publish_forums' => true, 'edit_forums' => true, 'edit_others_forums' => true, 'delete_forums' => true, 'delete_others_forums' => true, 'read_private_forums' => true, 'read_hidden_forums' => true, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => true, 'delete_topics' => true, 'delete_others_topics' => true, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => true, 'delete_replies' => true, 'delete_others_replies' => true, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => true, 'edit_topic_tags' => true, 'delete_topic_tags' => true, 'assign_topic_tags' => true, ); /* Capabilities for 'communitymember' role */ case 'bbp_communitymember': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => false, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => false, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); /* Capabilities for 'ambassador' role */ case 'bbp_ambassador': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => false, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => false, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; }
In reply to: Add/Change User rolesThanks for this Robkk – I’ll give it a go.
(Oh and I’m going to re-design the whole look and feel (that even goes for the role names, going to change them :p), I just want to get it all set up. I’m a designer by trade (hence the dev questions), but I find I get lost in the design when the functionality is not there, so just trying to get it all setup first, that way i can design/css with ease) 🙂
thanks again, will give it a go!
In reply to: Add/Change User rolesOkay so I put the above code in here and it seems to work:
plugins > bbpress > includes > users
Again, just checking if that is correct?
Now to change the background colours, god that’s gonna take me another 2 days! :p
In reply to: Add/Change User rolesI added it here: wp-content/plugins/bbpress/templates/default/bbpress
Just checking if that is correct?
In reply to: Add/Change User rolesthis is great. thanks Robkk. Just one question… Do I put this into the bbpress.php file in the bbpress folder?
In reply to: Change Archive page titleGreat. I will send that note to my theme support too.
Thanks Robkk!
In reply to: Change Archive page titleI tried SEO Yoast but it didn’t change the actual page title on the blue bar at the top of the page.
I’ve opened a ticket on my theme: Bridge to see if it has something to do with them.
thanks again!
In reply to: Create new topic form widthahh man! that worked perfectly. thanks for all your help! I tried for hours to work it out and was so close 🙂
In reply to: Create new topic form widthThanks for the CSS.
I have addded it in, but as you can now see, it’s a little wider that the rest of the form?
http://sincebeingsingle.com/forums/topic/drink/
Also if you make it responsive, you will see that it doesn’t go smaller.
Any suggestions?
Thanks!
In reply to: Create new topic form widthOh, you have to be a logged in user to see the tags box.
But, it’s the same as the Topics Title box – it’s just a bit wider than the rest of the boxes.
See image below…
http://sincebeingsingle.com/wp-content/uploads/2015/07/Screen-Shot-2015-07-28-at-21.49.40.png
Thank you!!
In reply to: Page titles not appearinghaha… it’s taken me a while, but it’s getting there. thank you! p.s not bad for a newbie 😉
In reply to: Forum to sit inside WordPress pagesThanks for your help.
I have managed to fix most of the issues listed previously.
But I’m still having trouble with adding a banner at the top of each page with the forum title, topic title and reply title.
This is essentially what I’m looking for: https://ultimatemember.com/forums/
As you can see, each page has a blue banner at the top, with the forum title, topic title, and reply title in white. This information is being pulled in from somewhere.
I would like to do this.
So my question is: How do i get a banner at the top of each forum page?
Thanks!