Forum Replies Created
-
In reply to: Topic text first paragraph has smaller font size
Sorry, but Chrome look fine on my PC as well.
I cannot replicate your issue !
In reply to: Topic text first paragraph has smaller font sizeIn reply to: Categories returning 404sok lets start by seeing if this is a plugin or theme 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: Favorites and subscription countwhat are you planning to count, topics, forums or both?
and if you count a forum as subscribed, do you want to count all the topics within that forum as subscribed?
the list of forums/topics subscribed to is held in usermeta under WP__bbp_subscriptions and an example would look like
5682,13255,13098,13394,13456,13497,13550,13575,13636,13652,13669,13705,13750,13769,13620,14017,14222,14375,14469
so it would count a forum and a topic each as 1.
you could add a check to see which were topics and which forums and display separately.
You’d access it using a function like
$user_id = wp_get_current_user()->ID; $check=get_user_meta( $user_id, 'WP__bbp_subscriptions' ,false); some if statement here in case it's blank then set a counter to zero foreach ( $check as $count ) { increment the counter in here maybe one count if it's a topic and another if its a reply? } then carry on to a display
Favorites are held in ‘WP__bbp_favorites’
If you want some code to display the results, look at my topic count plugin
https://wordpress.org/plugins/bbp-topic-count/
Hope that’s sufficient to get you going to a solution, come back if you need more help
In reply to: bbpress SQL InjectionYou need to start working your way through these resources:
https://codex.wordpress.org/FAQ_My_site_was_hacked
https://wordpress.org/support/topic/268083#post-1065779
http://ottopress.com/2009/hacked-wordpress-backdoors/Anything less will probably result in the hacker walking straight back into your site again.
Additional Resources:
Hardening WordPress
http://sitecheck.sucuri.net/scanner/
http://www.unmaskparasites.com/
http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.htmlIn reply to: Topic text first paragraph has smaller font sizeHave you fixed yourself? I cannot see anything wrong, the text in both topics and replies is all the same size.
In reply to: Deleting Log of editsgreat – glad you’re fixed !
can you come back and post your code for 2
that’s why I need your to post your code, so that I can work out where it’s wrong 🙂
In reply to: WordPress and bbpress searchThe issue is getting wordpress search to display the results in a meaningful way (ie bpress style)
This plugin which is old claims to do this, but there is a warning that it shows private forum results, is unless all your forums are open I wouldn’t use it.
https://wordpress.org/plugins/search-bbpress/
Try it and see if it works
In reply to: bbPress redirects users when logged in?ok, thanks for that, so if I understand correctly, you were using the buddypress login widget in the sidebar and that wasn’t working and are now using the bbpress login widget in the sidebar, and it now works.
Is that correct and you are now fixed ?
In reply to: bbPress redirects users when logged in?so how are you displaying that sidebar – ie what makes it conditional?
In reply to: customizing bbpress admin linksI’ve loaded all that, my display is slightly different, but that will be styling.
When I click any ‘topic tools’ it’s just the first topic that displays, and this does so in a stacked fashion, so I can only see the first tool.
However, I played a bit with the loop single reply, and would the following help?
<div class="dropdown" id="dropdown"> <input type="checkbox" id="drop1" /> <label for="drop1" class="dropdown_button">Topic Tools</label> <?php if (bbp_is_topic(bbp_get_reply_id()) ) { ?> <ul class="dropdown_content"> <li class="active"></li> <li> <?php echo bbp_get_reply_edit_link(); ?></li> <li><?php echo bbp_get_reply_spam_link(); ?></li> <li><?php echo bbp_get_reply_move_link(); ?></li> </ul> <?php } ?> <?php if (bbp_is_reply(bbp_get_reply_id()) ) { ?> <ul class="dropdown_content"> <li class="active"></li> <li><?php echo bbp_get_reply_spam_link(); ?></li> <li><?php echo bbp_get_reply_move_link(); ?></li> </ul> <?php } ?> </div>
basically it adds if-topic and if reply choices
In reply to: Deleting Log of editsOk, the code works (just retested it on my site), but the link you supplied is not using it.
are you sure you put
/* =Revisions ————————————————————– */ #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log, #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log, #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log { Display : none !important ; }
in
wp-content/themes/divi/style.css
Do you have caching software running?
In reply to: Deleting Log of editstry this in your style.css
`/* =Revisions
————————————————————– */#bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log,
#bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log,
#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log {
Display : none !important ;
}In reply to: Deleting Log of editsyes, you have a choice
1. You could put it in your style.css – that is a file called style.css that you will find in your theme
wp-content/themes/%yourthemename%/stle.css
where %yourthemename% is the name of your theme
Just drop it at the end.
This will then override the code in bbpress.css, and is the easiest way
2. Otherwise you can create a directory called css in your theme
/wp-content/themes/%yourthemename%/css
and copy the existing bbpress.css across to get
/wp-content/themes/%yourthemename%/css/bbpress.css
but here’s the thing, you then need to find and edit the existing display lines, just adding code will give two sets, and your maybe won’t take preference
the lines you are looking start at line 904 and say
/* =Revisions -------------------------------------------------------------- */ #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log, #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log, #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log { border-top: 1px dotted #ddd; width: 100%; margin: 0; padding: 8px 0 0 0; font-size: 11px; color: #aaa; } #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log li, #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log li, #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log li { list-style-type: none; }
you just need to edit that to
`/* =Revisions
————————————————————– */#bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log,
#bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log,
#bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log {
Display : none ;
}come back if we can help further
In reply to: bbPress redirects users when logged in?not quite sure what is going on in your site, but you are logged in, and the login session has not expired !
So go to forums and login, then go back to fourums. Yes the right hand side says ‘login’ but you are still logged in, and can post topics etc. IF you then click any forum, you’ll see the correct logged in on the right hand side.
So how are your sidebars set up?
In reply to: Syntax Error in admin/functions.php🙂
In reply to: Remove Private TagYou’re welcome !
In reply to: 404 for logged in users (not admin)great – glad you’re fixed !
hey no problem, just post the details when you get back
In reply to: customizing bbpress admin linksno problems, just want to see what you’ve done and if I can help further
In reply to: customizing bbpress admin linksok, my brain is now mush, but I am still hooked.
Can you post you solution so far, then I’ll put it in my test site
So I need to know
what code you put in your functions file
what code you have in loop single reply (and starting where!)
any other code you have, and where you’ve put it
I’ll then have a play !
can you post the exact error please ?
you’ll need to have some logic in here
eg
if there are replies find latest reply, and then find that replies author and insert that.
if there are no replies, then put in topic authorAt the moment you looking up the reply author for a topic, and that won’t work.
just had a play and this seems to work, but only tested quickly, so you’d need to set up a few topics with and without single and multiple replies and check that it worksin all circumstances
// Maybe get the topic author if ( ! empty( $settings['show_user'] ) ) { //see if there has been replies, and if so set to latest $replycheck = get_post_meta( $topic_id, '_bbp_last_reply_id',true); //if we have replies ie replycheck holds the latest reply number if (!empty ($replycheck)) $author_link = bbp_get_reply_author_link( array( 'post_id' => $replycheck, 'type' => 'both', 'size' => 14 ) ); else $author_link = bbp_get_topic_author_link( array( 'post_id' => $topic_id, 'type' => 'both', 'size' => 14 ) ); } ?>
In reply to: Unique member namesare you using automatic registration?
If so wordpress should prevent duplicate usernames.
or maybe you using a membership plugin that overrides this?