Forum Replies Created
-
In reply to: overwrite functions with theme's functions.php
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.phpbbp_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.
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 countGreat, I am presuming that you’re all working now !
In reply to: LABELSsorry 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: LABELSOk, try adding this to your functions file.
And come back and let me know if it worked !
In reply to: Topic & Reply countIn reply to: admin barOk, 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.
In reply to: 404 Error when navigating to topicGlad you’re fixed !
In reply to: admin baroops, sorry thought I’d posted the link
https://wordpress.org/support/topic/using-in-navigation-menu
In reply to: Forums Page Not Workingso is the forum page and actual page, or just a link?
In reply to: admin barOk, 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: LABELSThat 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
In reply to: Strange background colors behind avatarIt’s picking up
some background from
.reply a {
background-color: #8A8A8A;
border-color: #FFFFFF;from what looks
http://armada.sjebbe.nl/Discussion/topic/test-2/#3 line 57 possibly jscript related?, but something I think your theme is doing.In reply to: Experiencing an installation problemOk, Glad you at least know what the problem is !
In reply to: admin barYes that is really quite good looking, I’d like to copy that also !
The inloggen is in the menu, so it is a call from menu item.
The site is using wordpress twentytwelve, but I don’t know whether it’s a plugin or they have coded it for themselves.
I have contacted the site to see if they’d tell us how they did it. If I get a reply I’ll let you know !
Maybe another support person on here knows how to code this – it’s actually a wordpress rather than bbPress solution.
In reply to: Forums Page Not WorkingI presume this is a private forum, in which case as I’m not logged in, I can’t see the forums, so can’t help 🙂
In reply to: Experiencing an installation problemWhich version of bbPress are you one, whilst I have your lines of code, my line 1766 of this file is in a different place than yours, and your line 1723 is my line 1700, suggesting you have extra stuff.
Might be worth you downloading a fresh version of the plugin to your pc, and cracking open this file to see if it’s the same.
In reply to: Experiencing an installation problemPresume you are getting the fatal error as you activate the plugin.
Try copying that file to your PC (so it’s safe), and then deleting it from the plugin, and re-activate. That’ll confirm if it’s that file that has the problem, or whether the real problem is elsewhere. If it’s in that file, the plugin should activate without it, or produce an “unknown function” error rather than repeat the one you’re now getting.
Come back with the result !
In reply to: Experiencing an installation problemCould be you have a problem on your functions file – have you amended it in any way?
viz
http://johnlamansky.com/tech/php-fatal-flex-scanner-internal-error/
if not, can you post back the lines 10 either side of the line it is quoting as the problem
In reply to: Experiencing an installation problempossible conflict with other plugins or your theme
Try deactivating all plugins except bbPress and then add buddypress back and restest. if ok, the add other plugins back one at a time to see which is causing the conflict.
If no joy, then switch to default theme (eg twentytwelve) and see if it still is still there
Come back and let us know how you got on
In reply to: How do you put the "My Profile" link on the menu?OK FINAL ANSWER
Have finally got it working in the menu (and corrected the error in the post above!) !
so for menu have
// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $current_user = wp_get_current_user(); $user=$current_user->user_login ; $profilelink = '<li><a href="http://www.mysite.com/forums/users/' . $user . '/edit">My Profile/Edit Profile</a></li>'; $menu = $menu . $profilelink; return $menu; }
For on the forum page have
//action to add "amend profile" to top of forums pages function rw_edit_profile () { if (is_user_logged_in()) { $current_user = wp_get_current_user(); $user=$current_user->user_login ; $user_link = '<br><a href="http://www.mysite.com/forums/users/' . $user . '/edit">My Profile/Edit Profile</a>'; echo $user_link ; } } add_action('bbp_template_before_forums_loop','rw_edit_profile') ;
In reply to: Is it worth it?I’m sure there are plenty of highly active bbPress sites, with 20% of the world’s websites being wordpress they’re bound to be. That these people don’t come to the attention of a support site – and that this site only gets 20 queries a day – is surely testimony to how good the software is !!!
In reply to: Is it worth it?This seems to be more a general question about the state of the internet.
It depend on what you want from a forum and your site.
If your site is all about generating money from say advertising rather than providing information, entertainment and/or a service, then unless you generate interest and content, the answer is no.
If you want to add value for your users, then a forum does require effort from moderators, and effort to set up, but is worth it.
Only you can really answer that question.
In reply to: Notice report with bbpressWe could do with a bit more information than just the error!
Have you just installed, or is this an existing bbpress site that has gone wrong?
What were you doing at the time?
Have you added any plugins or done any upgrades recently?
Does it work at all?
Does you site work but bbpress not?
What versions of bbpress and WordPress are you on?
what theme?
what plugins are you using?In reply to: How do you put the "My Profile" link on the menu?OK, so if we move outside the menu bar, you could have it after the breadcrumbs on the forum page
Add this to your functions file
//action to add "amend profile" to top of forums pages function rw_edit_profile () { if (is_user_logged_in()) { $user = get_userdata( $user_id ); $name = esc_attr( $user_name ); $user_link = '<br><a href="http://gos.rewweb.co.uk/forums/users/' . $user . '/edit">My Profile/Edit Profile</a>'; echo $user_link ; } } add_action('bbp_template_before_forums_loop','rw_edit_profile') ;
But if you want to go the admin bar route, then the admin bar doesn’t show to not logged in users,
just change each of your users to “show toolbar” in dashboard>user>edit