Forum Replies Created
-
In reply to: Widget Problem – not showing up on main forum page.
can you say which widgets, and are they not appearing at all? Are any widgets appearing on that page – is the sidebar appearing?
Great, I’m glad you are fixed !
Interesting that without the private groups it didn’t work as expected, and with the private groups it also doesn’t work as expected.
Maybe be worth investigating the theme and other plugins to see if they are causing an issue.
so with private groups deactivated
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
Thanks, Stephen ! 🙂
As you describe you should have
Private forums – readable only by logged in users with participant role (ie members)
Hidden forums – readable only by moderators/keymastersYour issue is that logged in user cannot see the private forums.
At a quick guess I’d suggest that your users need roles assigned – having re-read my documentation this isn’t at all clear – I’m off to tidy that bit!
In dashboard>users>edit user you’ll find forum roles at the bottom of each user’s details
Anyway that’s my guess, come back if I guessed wrong !
You could also use
https://wordpress.org/support/plugin/bbp-private-groups if you don’t want to give your ‘officers’ back end access
In reply to: Moderators Disappearinggreat – glad you’re fixed !
In reply to: How to remove the freshness LinkTry
https://wordpress.org/support/plugin/bbp-private-groups
This has lots of options, including changing the freshness link so that it does not give a back door
In reply to: Moderators Disappearingsuspect this is a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, switch to a default theme such as twentytwelve, and see if this fixes.
In reply to: Hide role in the forumGreat – glad you’re fixed !
In reply to: Links not showing in ForumGreat, glad you’re fixed !
‘a big pet peeve of my mine’
and also of mine for exactly the opposite reason !!
Where I want the user to go down a route and not have to backtrack through 10 pages they have subsequently looked at, then your logic is fine, they will go that way.
Where clearly you want them to be able to take a look, but not lose where they are, then a new window is logical.
Finally I dislike the ‘thought police’ making up a standard and then trying to tell us what we should do. I thought the internet was about freedom of expression !
So taking the last sentence I wrote, then I have absolutely no issue with bbpress not coding for new window, but I would 🙂
In reply to: Links not showing in Forumyes the links are set as white in the display
try adding this to your style.css
#bbpress-forums .reply a { color : blue !important ; } #bbpress-forums .reply a:hover { color : green !important ; }
I haven’t tested, but should work, come back if you need more help !
Great, and yes I think it should be a link – it bugs me to have to copy/paste into a browser – but maybe as a new window?
In reply to: Hide role in the forumTry this – it should work
Function hide_author_url () { $retval='' ; return $retval ; } add_filter( 'bbp_get_topic_author_url', 'hide_author_url' ); add_filter( 'bbp_get_reply_author_url', 'hide_author_url' );
Ok, this is what you wanted
function user_profile_bbp_website_information() //this function adds the website to the profile display menu { $label1 = $rpi_options['item1_label'] ; echo "<p>" ; printf ( __( 'website : ', 'bbpress' )); $url=bbp_get_displayed_user_field( 'user_url' ) ; $url='<a href="'.$url.'">'.$url.'</a>'; echo $url; echo"</p>" ; } add_action ('bbp_template_after_user_profile', 'user_profile_bbp_website_information') ;
sorry that will add it after the avatar on topics and replies, just re-read you want it in profile !
will take another look tomorrow !
The following should do it – put this in your functions file
function bbp_website_information () //This function adds the website to the avatar display of topics/replies { echo '<li>' ; $user_id = bbp_get_reply_author_id( $reply_id ); global $wpdb; $url = get_userdata($user_id) ; $url=$url->user_url ; $url='<a href="'.$url.'">'.$url.'</a>'; echo $url ; echo '</li>' ; } add_action ('bbp_theme_after_reply_author_details', 'bbp_website_information') ;
In reply to: Show pagination in single topicI can’t see any forums in these pages
In reply to: Template hierarchy not respectedI’m not quite sure what you are saying.
For template file, you only need to copy files that you want to change to your theme, not all of them. If you haven’t done any changes then you don’t need to copy any files.
Any TEMPLATE files you copy should be in a folder called bbpress ie
wp-content/themes/twentyeleven/bbpressso if for instance you wanted to modify loop-single-fourm.php, you would copy it to that bbpress folder and modify it there – it would then be
wp-content/themes/twentyeleven/bbpress/loop-single-forum.php
The page template that bbpress will sue will be in the root of your theme ie
wp-content/themes/twentyeleven
and bbpress will look for file in the following order
plugin-bbpress.php
bbpress.php
forums.php
forum.php
generic.php
page.php
single.php
index.phpso if you have copied and renamed page.php to forum.php, then bbpress should be using that file.
so you file should be
wp-content/themes/twentyeleven/forum.php
In reply to: Newby a little lostgreat – glad you’re fixed !
quite probably – it’s a computer so unfathomable !
I’ve put the code that is working for me on my site
Download it, unzip and then ftp it to overwrite the plugins rating.php – I’d take a copy of that first !
It would be good to get this working, and if when we get it going I’ll wrap a version as an official plugin if the original author doesn’t want to add the functionality to his plugin !
I’ll continue to play, as it’s annoying me now !
might be worth you copying some of that across to your question on the plugins support page, as it might speed up him looking at it, and quicker understand what’s happening?
getting it to display is easy !
bbpress deosn’t use ‘the content’ function in its loops, so we need to hook to the bbpress content function which is bbp_get_reply_content
So you just add a second filter after line 15, this then puts the ratings in the display
{ add_filter('the_content', 'spr_filter', 15); add_filter ('bbp_get_reply_content', 'spr_filter') ; }
Then the next bit of the plugins code looks at whether we have an individual post/page or are in a loop – a list of pages/posts.
If just one (is_singular) then it will display the rating, and let you add one.
If in a loop then it simply displays, and doesn’t let you alter, or that’s what I think it’s doingso to get it to understand that we’re in a list of replies (ie loop-single-reply) we test that we’re in bbpress
so we add a test for bbpress into the first function viz
foreach ($list as $list_) { if (is_bbpress() ) { if ($options['position']=='before') { $content=spr_rating().$content; } elseif ($options['position']=='after') { $content .= spr_rating(); } break; } if (is_singular($list_)&&$options['where_to_show'][$list_]&&$disable_rating!='1')
Ok so that does the display (at the moment for both topics and replies, but that’s easily fixed later)
What I can’t work out quite is why the amend doesn’t work. I think it is because the javascript/ajax is using spr_rate, but expects that to be part of $_post, but that’s may be failing as we are sort of in a bbpress loop at that stage, not in an individual post, so I dontl know what’s it looking for as post_id.
Anyway I’m rubbish at ajax/js etc. so am just poking code in the hope of finding a fix.
So that’s as far as I’ve got for now !!
ok, I’ve had a very quick look, the plugin is fine – it copes with custom post types, I think the problem is that it hooks to wordpress ‘the content’, and I think it needs to hook to bbpress – I’ll have a further play later.