Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 11,001 through 11,025 (of 14,313 total)
  • @robin-w

    Moderator

    The first basketball is given by a div class of ‘page-title’
    The second basketball is given by a div class of ‘entry-title’

    so you could try

    #bbpress-forums .entry-title {
    display : none !important ;
    }

    in your child theme css

    Functions files and child themes – explained !

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    ok, glad you’re fixed !

    @robin-w

    Moderator

    Just trying to have recent forum activity listed in that sidebar.

    try the ‘latest activity widget’ in my plugin

    https://wordpress.org/plugins/bbp-style-pack/

    one other thing – how can we fix the forum header

    This is a theme issue – who’s theme are you using?

    In reply to: Forums/forum

    @robin-w

    Moderator

    dashboard>appearance>menu’s and just add it as a link

    @robin-w

    Moderator

    The [bbp-topic-index] is not designed to run in a sidebar, or indeed in any panel of such a small width.

    There are plenty of widgets you can use to put in there.

    What are you trying to achieve in the sidebar?

    @robin-w

    Moderator

    great, putting it in the template is equally fine, BUT make sure you put that template into a child theme, else plugin and theme updates will destroy it.

    Functions files and child themes – explained !

    In reply to: Error opening forums

    @robin-w

    Moderator

    ok, the function that is being called is ‘suffusion_bbpress_content_class’ which tells us that this is a function created by the theme suffusion. bbpress functions start ‘bbp_’.

    You have put (intentionally or not) a file into your child them called

    ‘wp-content/themes/suffusionchild/single-forum.php’

    which is an amendment of bbpress’s single-forum.php.

    After googling I found this post which seems to describe your issue and the resolution, which is to remove the bbpress files from your child theme.

    http://aquoid.com/forum/viewtopic.php?f=4&t=31657

    @robin-w

    Moderator

    url has a ‘under dev’ banner !

    @robin-w

    Moderator

    Last, I don’t think I understand your last section. There isn’t a way to make all post(ers) anonymous?

    sorry I thought you didn’t want that !! viz

    I was just told we need to also make it so that the posters are anonymous. I don’t want to have people to post anonymously, I want them to sign up.

    my previous comments related to wordpress comments rather forum topics/replies – sorry I was working my way though many questions at the time !

    In FORUMS

    you can have anonymous posting

    Dashboard>settings>forums>forum user settings and tick anonymous posting.

    BUT it will only be anonymous if the user ISN’T logged in, if they log in it will post under their name.

    Come back if anything not clear – I’ll happily help further !

    @robin-w

    Moderator

    ok assuming it works it just needs wrapping into a function, and then adding to the action so :

    <?php
    Function andrew55_insert_field () {
    require_once '/home/site/public_html/amember/library/Am/Lite.php';
    if (Am_Lite::getInstance()->haveSubscriptions(2))
    {
    ?>
    <p>custom text 1</p>
    <?php
    }
    else {
    if (Am_Lite::getInstance()->isLoggedIn())
    {
    ?>
    <p>custom text 2</p>
    <?php
    }
    else {
    ?>
    <p>custom text 3</p>
    <?php
    }
    }
    }
    

    which could be shortened to

    Function andrew55_insert_field () {
    require_once '/home/site/public_html/amember/library/Am/Lite.php';
    if (Am_Lite::getInstance()->haveSubscriptions(2)) echo '<p>custom text 1</p>' ;
    elseif (Am_Lite::getInstance()->isLoggedIn() ) echo '<p>custom text 2</p>' ;
    else echo '<p>custom text 3</p>' ;
    }
    
    add_action (‘bbp_theme_after_reply_author_details’, ‘andrew55_insert_field ’) ;

    that might upset the purists who seem to love have php statements all over their code, but makes it more readable – apologies if you’re in the purist camp 🙂

    You need to put this code into your functions file, so that it is automatically called when the action is executed

    Functions files and child themes – explained !

    In reply to: Forums/forum

    @robin-w

    Moderator

    Dashboard>settings>forums and near the bottom turn off forum prefix

    @robin-w

    Moderator

    glad you like the plugin – I wrote it, and also

    https://wordpress.org/plugins/bbp-profile-information/

    which just does bbpress if you don’t have buddypress, and might be the better one to crib from.

    if you download it and look at

    includes/display.php you’ll see it hooks to an action in bbpress

    add_action (‘bbp_theme_after_reply_author_details’, ‘bbp_profile_information’) ;

    so you just (!) need to create a function that echos the output of your snippet and use that in the hook.

    Not sure of your php knowledge level, so do come back if you need further help

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @robin-w

    Moderator

    yes for a private forum with visibility that is the expected behaviour.

    If the forum is private then it is not seen by non-logged in users, so the logic is that as you don’t expect non-logged in users to know that the forum exists, you wouldn’t want them to know that a topic exists, and login would tell them that they url existed, so they get a 404 in all cases.

    Set the forum to public, and the logon screen will appear.

    @robin-w

    Moderator

    Can you post here what you have put into the setting?

    @robin-w

    Moderator

    check that you have put the url in correctly – copy from the setting into your browser and check that it works it needs to be the full url

    @robin-w

    Moderator

    no problem, I was posting for others searching later on and coming across this thread.

    Have fun !

    @robin-w

    Moderator

    Donlt worry we all had to start at some stage !!

    1.

    Now, because I did that, anyone that registers registers for a WordPress account. I’m not sure if that’s correct.

    yes that is how bbpress works it uses a worpress account. As long as you set Dashbiard>settings>general default to subscriber, your user won’t be able to do anything in wordpress

    2. set the admins to hidden as per docs

    Forum visibility:

    Public – Anyone can see these forums
    Private – Only logged in registered users with a forum role can see these forums
    Hidden: Only Moderators/keymasters can see these forums

    If you want more granular access, then use

    https://wordpress.org/plugins/bbp-private-groups/

    3. no sorry not a ‘diary’ way- wordpress not bbpress so try their forum, but

    4.

    I am pretty sure I can do it via the forum, I just don’t know how to do it. I know it’s a permissions thing and I can make certain posts hidden.

    https://wordpress.org/plugins/bbp-private-groups/

    and set a forum per user, but you’ll need to do this manually as part of user set-up, so if only say one as day signing up that would be fine, but if hundreds !!

    4.

    ‘I was just told we need to also make it so that the posters are anonymous’

    No idea why, it is entirely up to you how you set you site up
    – if you want no-one to comment then set comments off in settings>discussion>default article settings.
    – if you want just registered – then also set ‘users must be registerd…’ in other comment settings

    Come back if you need further help 🙂

    @robin-w

    Moderator

    It is almost certainly a theme issue – post a url

    @robin-w

    Moderator
    In reply to: Login fails for Chrome

    @robin-w

    Moderator

    That’s a new one on me – glad you worked it out !

    In reply to: Login fails for Chrome

    @robin-w

    Moderator

    hoped you’d spot this Rob ! your territory not mine !

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @robin-w

    Moderator

    ok, undo that previous change by deleting that file, it was rubbish !

    Then in your function file add

    function default_reply_subscribed() {
    
    		// Get _POST data  IE is this a first post of a topic?
    		if ( bbp_is_post_request() && isset( $_POST['bbp_topic_subscription'] ) ) {
    			$topic_subscribed = (bool) $_POST['bbp_topic_subscription'];
    
    		// Get edit data  IE either the author or someone else is editing a topic or reply
    		} elseif ( bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    
    			// Get current posts author
    			$post_author = bbp_get_global_post_field( 'post_author', 'raw' );
    
    			// Post author is not the current user EG a moderator is altering this. In this case we'll leave the default to blank, 
    			//as much of the time mods are correcting or moderating, their not interested in the topic itself !
    			if ( bbp_get_current_user_id() !== $post_author ) {
    				$topic_subscribed = bbp_is_user_subscribed_to_topic( $post_author );
    
    			// Post author is the current user  IE you're editing your own post, so default should be to see any replies
    			} else {
    				$topic_subscribed = true ;
    				//the next line is what it used to say instead of true
    				//bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() );
    			}
    
    		// Get current status
    		} elseif ( bbp_is_single_topic() ) {
    			//the user is writing a new reply ?
    			$topic_subscribed = true ;
    			//the next line is what it used to say instead of true
    			//bbp_is_user_subscribed_to_topic( bbp_get_current_user_id() );
    
    		// No data
    		} else {
    			$topic_subscribed = true;
    			//used to say false !
    		}
    
    		// Get checked output
    		$checked = checked( $topic_subscribed, true, false );
    
    		return apply_filters( 'default_reply_subscribed', $checked, $topic_subscribed );
    	}
    	
    add_filter ('bbp_get_form_topic_subscribed', 'default_reply_subscribed') ;
    
    function default_log_edit_false() {
    
    		// Get _POST data
    		if ( bbp_is_post_request() && isset( $_POST['bbp_log_reply_edit'] ) ) {
    			$reply_revision = $_POST['bbp_log_reply_edit'];
    
    		// No data
    		} else {
    			$reply_revision = 0;
    		}
    
    		return apply_filters( 'default_log_edit_false', checked( $reply_revision, true, false ) );
    	}
    
    add_filter ('bbp_get_form_reply_log_edit', 'default_log_edit_false' ) ;

    Functions files and child themes – explained !

    that should do both topic edit and reply subscribed.

Viewing 25 replies - 11,001 through 11,025 (of 14,313 total)