Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,826 through 13,850 (of 14,219 total)
  • In reply to: Forum display

    @robin-w

    Moderator

    REPEAT : It would take a long time to go through what you would need to do – Basically it is all to do with styling and functions.

    The problem is that in answering this question I’d need to explain firefox and firebug, css, php bbpress structure and lots more.

    But to get you started – THIS IS NOT THE SOLUTION – but a couple of lines that will see you get further forward. you’ll need to look at “inline” as well to get the is horizontal.

    You could do a bar several ways, but the easiest is create a copy of your page template for bbpress to use

    see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 8

    and then play with the following

    in css add

    #subnav {
    background: none repeat scroll 0 0 #2020ff;
    border-bottom: 1px solid #BBBBBB;
    font-size: 12px;
    margin-top: 81px;

    }
    and in you bbpress page template put under the header

    <div id=”subnav”>
    <ul id=”nav-user” class=”menu”>

  • Register
  • Lost Password
  • </div>

In reply to: bbPress Not Showing Up

@robin-w

Moderator

Just had a look, and it all worked fine for me.

Can you check with some other users to see if it is just you, and try it with you logged out to see if being admin is affecting it.

@robin-w

Moderator

If you only have yourself and your client as registered wp users, the go into Dashboard>forums> and select the forum name, and change it’s visibility to hidden. Then only logged on users will see it.

If you have lots of users, and want to restrict this forum to just you and him, then you’ll need to add a filter – come back if this is the case, and I’ll take a further look when I get a moment

@robin-w

Moderator

If you’re looking at the main forum list, then the sub forums use

.bbp-forums-list li for font size

@robin-w

Moderator

It’s do-able undoubtably, but not sure how much code you’d need to change.

Why are you wishing to do this?

@robin-w

Moderator

Once you have imported the forums, do a forum repair

Dashboard>tools>forums>repair forums.

This will join it all up again.

Only run one at a time, and I’d run each one to ensure it all links up again

@robin-w

Moderator

Really a wordpress not a bbPress question, and quite a techy area

This is the code that I use to add a location to user details, which should help get you started.

//this function adds the updated town and county info to the database
function bbp_edit_user_tc( $user_id ) {
	$town = ( $_POST['town'] ) ;
	$county = ($_POST['county'] ) ;

	// Update town user meta
	if ( !empty( $town ) )
		update_user_meta( $user_id, 'town', $town);

	// Delete town user meta
	else
		delete_user_meta( $user_id, 'town' );
		
	//Update county user meta
	if ( !empty( $county ) )
		update_user_meta( $user_id, 'county', $county);

	// Delete county user meta
	else
		delete_user_meta( $user_id, 'county' );
}
add_action( 'personal_options_update',         'bbp_edit_user_tc' );
add_action( 'edit_user_profile_update',        'bbp_edit_user_tc' );

}
In reply to: Forum display

@robin-w

Moderator

If you want someone to do it for you, go to

http://jobs.wordpress.net/

where someone will do anything from a minor change through to a full time job !

In reply to: Forum display

@robin-w

Moderator

It would take a long time to go through what you would need to do – Basically it is all to do with styling and functions.

The basics are covered in the documentation in the codex https://codex.bbpress.org/ and some of the step by step stuff and layout will help you.

In reply to: LABELS

@robin-w

Moderator

umm, Now I’m a bit confused.

The filter only affects the bbp breadcrumb, so that fact that your theme doesn’t have breadcrumbs is irrelevant.

If you just add that code to your themes functions, it will be used by bbPress as it loads and not display.

I presume that’s where you put the previous code to change to blogs? If not try that code again!

Whilst you can add it to a default theme such as twenty eleven, keep a note of it, as any theme upgrade will overwrite it. you should consider a child theme to let you make changes without affecting the core code and themes see https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/ for some info on child themes

In reply to: LABELS

@robin-w

Moderator

In your functions file in your theme (as with the last filter)

Wp-content/%yourtehemename%/functions.php

where %yourthemename% is the name of your theme 🙂

@robin-w

Moderator

hmmm…my version works perfectly, one email per topic or reply.

bbPress uses WordPress to email, and the line in bbress notify is
`@wp_mail($email, $subject, $body, $headers);
`
Maybe that something within your wordpress/host setup is causing the issue (I suspect from yoru comments you already think this might be the case).

I’d suggest you do a test. in Dashboard>settings>discussion enable “email me whenever anyone posts a comment” and then post a comment to a blog (not bbPress). If you get more than one email, then it is not a bbPress problem, and try posting it to https://wordpress.org/support/ for help.

In reply to: LABELS

@robin-w

Moderator

code to remove it is

function bm_bbp_no_breadcrumb ($param) { return true;
 }
add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');

@robin-w

Moderator

Functions in bbpress are held in the template-tag files

so for instance
bbp_reply_admin_links is held in bbpress/includes/replies/template-tags.php

bbp_topic_admin_links is held in bbpress/includes/topics/template-tags.php

bbp_list_forums is held in bbpress/includes/forums/template-tags.php

open these up and you’ll see what argumens they use, and how to filter – from your post I am presuming you know how to create filters.

@robin-w

Moderator

you could try the following plugin that I use

bbpress notify

It lets you set who receives

once installed go to dashboard>settings>forums and you’ll see options.

These are set at WP-roles, so you would probably have your moderators as editors. If you a code person, I’m sure you could mod the plugin to look for bbpress moderators.

In reply to: Topic & Reply count

@robin-w

Moderator

Great, I am presuming that you’re all working now !

In reply to: LABELS

@robin-w

Moderator

sorry should have put the actual code in the post !

//function to change name forums in breadcrumb to Blogs 
function mycustom_breadcrumb_options() {
    $args['root_text']    = 'Blogs';
	return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options') ;

In reply to: LABELS

@robin-w

Moderator

Ok, try adding this to your functions file.

And come back and let me know if it worked !

In reply to: Topic & Reply count

@robin-w

Moderator

No problem !

Item 2 on the attached

Layout and functionality – Examples you can use

In reply to: admin bar

@robin-w

Moderator

Ok, I had misunderstood.

The site you link to has these in their nav menu, they’ve just moved the nav menu to the top of the screen.

Most WP sites only give admin toolbar visibility to authors and above, as the backend is clearly different from their theme.

They then use sidebars to handle register, profile and login or use nav menus for these.

If you wanted to use the standard admin toolbar, then you’d not get a login, as the toolbar doesn’t show unless you are logged in, so it becomes self defeating !

If you want a login at the top right of your screen, you can use the php code in your theme’s header.php (or indeed anywhere you want to show it). You could add a background to make it look like a button

ie

<?php add_modal_login_button( $login_text = 'Login', $logout_text = 'Logout', $logout_url = '', $show_admin = false ) ; ?>

“in the code i pasted to the function.php, there is a note on the top saying it uses a plugin named “WordPress menu admin” i didnt seem to find it do you know what plugin he is using i dont want to download somthin wrong and mess this up.” – I didn’t see this, can you point me to which bit of code you are talking about.

@robin-w

Moderator

Glad you’re fixed !

In reply to: admin bar

@robin-w

Moderator

oops, sorry thought I’d posted the link

https://wordpress.org/support/topic/using-in-navigation-menu

@robin-w

Moderator

so is the forum page and actual page, or just a link?

In reply to: admin bar

@robin-w

Moderator

Ok, I’ve worked out an easy(-ish) way to do this.

a) Install the plugin WP Modal Login.
Dashboard>plugins>add new>search “wp modal login” install and activate
b) Settings
Dashboard>settings>wp modal login
you can play with the settings, but primarily you need to select a theme (later on you can play with the css to get it looking nice!)
c) Then follow the post a couple up from the last in this link which has all the steps to add it to the menu
NOTES:
On step 4 – Whilst you can check all the options as he suggests, what you actually need to ensure are checked are “links” on the first line and Description under the “show advanced menu options”
On step 5 – what you are creating is a new link, sop click “links” on the left hand side, and a dropdown with the url and link text will appear. Populate these two as he suggests and then add to the menu. Then look at the bottom right, and you’ll see this added as a custom item. Open this, and you’ll see the Description box, which is where you drop the shortcode.

As I said, you can play with the css to get this looking how you want.

Give it a go ! (I’m about to!)

In reply to: LABELS

@robin-w

Moderator

That should have worked.

Try resetting your permalinks

go into

Dashboard>settings>permalinks and just click save

If that doesn’t do it, can you come back and tell me what you breadcrumb for forums comes out as

eg

home>forums>forum

Viewing 25 replies - 13,826 through 13,850 (of 14,219 total)