Forum Replies Created
-
In reply to: Opening Subscriber’s profile editor from toolbar
lets you add an ‘edit profile’ to the menu see
dashboard>settings>bbp style pack>login
and also has a shortcode that you can put into a text widget in the sidebar
[bsp-profile’ label=’Edit Profile’ edit=’y’]
see
dashboard>settings>bbp style pack>shortcodes
In reply to: NewbieIn reply to: Can you make a role to subscribe a forum?I think this has what you need
In reply to: User role for forum users onlyforum= participant
worpdress – no role for this siteIn reply to: Locked topics🙂
In reply to: Search only topics not forum / repliesyou’re welcome
In reply to: Locked topics‘nicer’ is always subjective, and I don’t understand what the difference between the papercip and the lock is if you take away the strikethough
In reply to: Locked topicsso essentially the question is how to replace your locked icon with a paperclip – yes ?
In reply to: Locked topicsa topic can be closed, just as a forum can be closed.
If you close a topic, then it is exactly as you describe. It is read only.
In reply to: Search only topics not forum / repliesthen yes the code I sent is fine and works and is enough !!
In reply to: Search only topics not forum / repliesnot quite sure what you are trying to achieve – where are you putting this code ?
In reply to: Search only topics not forum / repliesok, a better filter might be – try adding this to your functions file
add_filter ('bbp_before_has_search_results_parse_args', 'rew_amend_search') ; function rew_amend_search ($args) { $args['post_type'] = bbp_get_topic_post_type() ; return $args ; }
In reply to: Search only topics not forum / repliessorry, I’d missed that you were looking at function templates not output templates – sorry it has been a long day.
what function in that template are you changing ?
In reply to: Search only topics not forum / repliesno, you just put the templates in your child theme
You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.
so if you wanted to amend loop-single-forum you would do the following
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
bbPress will now use this template instead of the original
and you can amend thisIn reply to: Search only topics not forum / replieshmmm. can’t say why, but if you have the template solution, not worth me working out why
In reply to: Search only topics not forum / repliesthe function should still work – it just searches topic.
when you say ‘The above solution does not work in 2019’ – what exactly do you mean, it errors, it display what ?
to get rid of that bit, put this in your custom css part fo your theme
div.bbp-template-notice.info { border : none !important ; display: none; }
you might also want
.bbp-pagination { display: none; }
In reply to: Replace bbP Manage SubscriptionsIt is not being maintained, but I presume it still works?
Wordpress removes plugins that are not maintained, but most continue to work and are based on stable code.
or is this one now not working ?
In reply to: Replace bbP Manage SubscriptionsI’m not sure what bbP Manage Subscriptions did, so hard to say what will replace
try
that has some subscription management stuff
In reply to: Customized Translation filesgreat – not an issue that WordPress seems to have considered – I did try and see if there was an easy way to bypass, but could not find one 🙂
In reply to: Customized Translation fileshmmm… quite a puzzle
so you could try putting your customised file here
wp-content/languages/plugins/bbpress-fr_FR.mo
plugins load code from only two places, but no idea which loads first, but looks like that location loads last, so it might work. but again might be overwritten by WordPress updates
In reply to: Custom Topic Sortingdepends on how you define complicated – solutions are frequently only a few lines of code, but getting there takes the time 🙂
In reply to: Remove in first forum onlyyou need to pick up the forum id
so
$forum_id = bbp_get_forum_id(); if (( $forum_id == 123) or ( $forum_id == 456)){
etc…
and then you would add the
Custom action hook to add in the template file where the div shall be displayed: <?php do_action( 'different_div' ); ?>
in the appropriate forum template
In reply to: Remove in first forum onlygiven the speed of most servers, I doubt that you would notice any time delay in processing the code in is a few lines of many thousand that get processed on each page load and one DB call.
best solution would be to time with and without and see if you can spot anything – but run it many times to get an average
In reply to: Changing order of forum displays.it would not be done in a template, in essence you would need to filter
add_filter(‘bbp_before_has_topics_parse_args’
but this runs before the template loads, so would be a large coding task.