Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,526 through 12,550 (of 14,129 total)
  • @robin-w

    Moderator

    Sorry, but Chrome look fine on my PC as well.

    I cannot replicate your issue !

    @robin-w

    Moderator

    looks fine on IE and Firefox on my PC viz

    snip photo snip_zpscbd115eb.jpg

    @robin-w

    Moderator

    ok 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.

    @robin-w

    Moderator

    what 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 Injection

    @robin-w

    Moderator

    @robin-w

    Moderator

    Have 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 edits

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    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 🙂

    @robin-w

    Moderator

    The 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

    @robin-w

    Moderator

    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 ?

    @robin-w

    Moderator

    so how are you displaying that sidebar – ie what makes it conditional?

    @robin-w

    Moderator

    I’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 edits

    @robin-w

    Moderator

    Ok, 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 edits

    @robin-w

    Moderator

    try 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 edits

    @robin-w

    Moderator

    yes, 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

    @robin-w

    Moderator

    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?

    @robin-w

    Moderator

    🙂

    In reply to: Remove Private Tag

    @robin-w

    Moderator

    You’re welcome !

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    hey no problem, just post the details when you get back

    @robin-w

    Moderator

    no problems, just want to see what you’ve done and if I can help further

    @robin-w

    Moderator

    ok, 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 !

    @robin-w

    Moderator

    can you post the exact error please ?

    @robin-w

    Moderator

    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 author

    At 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 names

    @robin-w

    Moderator

    are you using automatic registration?

    If so wordpress should prevent duplicate usernames.

    or maybe you using a membership plugin that overrides this?

Viewing 25 replies - 12,526 through 12,550 (of 14,129 total)