Forum Replies Created
-
In reply to: bbPress 2.0 – conditional tags?
I use the Widget Logic plugin too to manage forum specific and blog specific widgets.
I find this list useful: http://phpdoc.ftwr.co.uk/bbpress-plugin/bbPress/TemplateTags/_bbp-includes—bbp-general-template.php.html
In reply to: bbPress 2.0 – conditional tags?I use the Widget Logic plugin too to manage forum specific and blog specific widgets.
I find this list useful: http://phpdoc.ftwr.co.uk/bbpress-plugin/bbPress/TemplateTags/_bbp-includes—bbp-general-template.php.html
In reply to: bbp_reply_class() output user role?I’ve had a look at bbp-includebpp-reply-template-php here:
http://etivite.com/api-hooks/bbpress/path/bbp-includesbbp-reply-template-php/
I looked through the following:
bbp_get_reply_author_url
bbp_get_reply_author_link
bbp_get_reply_author_id
bbp_get_reply_author_email
bbp_get_reply_author_display_name
bbp_get_reply_author_avatar
bbp_get_reply_author
It seems like you could use this one as a base for getting the role:
http://etivite.com/api-hooks/bbpress/trigger/apply_filters/bbp_get_reply_author/
There’s also a specific solution suggested here:
https://bbpress.org/forums/topic/display-reply-author-role
function get_the_author_role() {
global $wpdb, $wp_roles, $authordata;
if ( !isset($wp_roles) )
$wp_roles = new WP_Roles();
foreach($wp_roles->role_names as $role => $Role) {
$caps = $wpdb->prefix . 'capabilities';
if (array_key_exists($role, $authordata->$caps))
return $Role;
}
}
function the_author_role() {
echo get_the_author_role();
}There’s another topic here that discusses various ways of styling replies based on the user role:
https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1
Let me know how it goes.
In reply to: Database question and also…Q2: Seems like you got a useful answer here: https://bbpress.org/forums/topic/databases-1#post-93441
Q3: Using a web developer tool like Firebug will allow you to view the styles your admin panel has inherited: http://getfirebug.com/ If your styles are being ignored, Firebug will show you what’s overriding them. It will also tell you what style sheet the inherited CSS is contained in.
This could also be worth a try: http://webdesign.about.com/od/css/f/blcssfaqimportn.htm
In reply to: Why is there a list of pages in my forum???@travishill: Cheers.
In reply to: Database question and also…Regarding Q1: I don’t see the problem. The URL reads like you want it to.
Regarding Q2: I’m not familiar with this though I reccomend asking at these websites purely because the problem seems broader than bbPress:
http://www.phpfreaks.com/forums/index.php?board=3.0
and
Regarding Q3: This can all be done by CSS. Do you have web developer tools for you browser? FireFox has Firebug and Chome has a similar property inspector. Just select the admin bar to find out what styles it’s inheriting. You can then override them in your own style sheet.
In reply to: how to delete tags and usersAre you using a standalone bbPress installation or the WordPress plugin?
Regarding tags, here’s some answers to be found on this website:
https://bbpress.org/forums/topic/how-do-i-delete-tags
https://bbpress.org/forums/topic/remove-tags
https://bbpress.org/forums/topic/completely-remove-tags
Regarding users:
https://bbpress.org/forums/topic/how-do-you-delete-users
https://bbpress.org/forums/topic/delete-users-with-no-posts
https://bbpress.org/forums/topic/delete-user-and-all-users-posts
https://bbpress.org/plugins/topic/mass-delete-users/
From what I understand, both can done from your admin panel.
If you’re using bbPress as a plugin, you’ll find what you’re looking for here:
Users can be managed from: http://www.yourwebsite.com/wp-admin/users.php
Tags can managed from: http://www.yourwebsite.com/wp-admin/edit-tags.php
In reply to: Why is there a list of pages in my forum???First and foremost, have you validated your code?:
http://jigsaw.w3.org/css-validator/
Based on pages source code, the following is appended to the end of your page within the body tags:
<ul>
<li class="page_item page-item-1156">
<a href="http://fruitcity.co.uk/about-2/" title="About">About</a>
</li>
[...]
</ul>I was expecting it to be a misplaced widget but the list does not have a class, id or typical parent div.
I can’t tell you why it’s occurring but I can tell you how to figure out why it’s occurring.
Sequentially disable blocks of code pertinent to that page and theme. e.g. style.css, functions.php and custom templates.
By process of elimination you’ll stumble upon the root of the issue. i.e. when the list no longer appears.
I’m ruling out that it’s a setting in the admin panel because the list doesn’t have an id or class.
It might be wise to run the validation checks I suggested. It could be something rudimentary like an element requiring a closing tag.
I’d tell you more if I could right click the page and use Chrome’s version of Firebug for property inspection.
In reply to: Why is there a list of pages in my forum???I can’t right click the provided page. Is this supposed to be the case?
In reply to: How do I edit bbPress breadcrumbs?I’ve figured out how to change the bread crumb separator:
<br /><br /> // Change bbPress bread crumb separator.
function filter_bbPress_breadcrumb_separator() { //$sep = ' » '; $sep = is_rtl() ? __( ' « ', 'bbpress' ) : __( ' » ', 'bbpress' ); return $sep; } add_filter('bbp_breadcrumb_separator', 'filter_bbPress_breadcrumb_separator');
I have not yet figured out how to add “You are here: ” at the start of the bread crumbs:
I’ve tried this…
<br /><br /> function my_breadcrumb_trail_args( $trail ) {<br /><br /> $args = '<div class="bbp-breadcrumb"><p>You are here: ';<br /><br /> return $args;<br /><br /> };<br /><br /> add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );<br /><br />
…and this…
<br /><br /> function test($defaults) {<br /><br /> $defaults = array(<br /><br /> 'before' => '<div class="bbp-breadcrumb"><p>You are here: ',<br /><br /> );<br /><br /> return $defaults;<br /><br /> }<br /><br /> add_filter('bbp_breadcrumb','test_args');<br /><br />
Neither work.
For now I’ve taken the hacky approach and just edited my bbPress files directly. You can see it in action here: http://www.directsponsor.org/forums/
Any assistance with the filter would be greatly appreciated.
In reply to: How do I edit bbPress breadcrumbs?In bbp-common-template.php I found:
// Allow the separator of the breadcrumb to be easily changed
$sep = apply_filters( 'bbp_breadcrumb_separator', $sep );
I attempted to apply a filter…
$sep = 'x';
add_filter('bbp_breadcrumb_separator', $sep);
…but it resulted in:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'x' was given in
In reply to: How do I edit bbPress breadcrumbs?I’ve found a list of hooks and filters for bbPress at:
/wp-content/plugins/bbpress/bbp-includes/bbp-core-hooks.php
I’ve also found the bbPress bread crumb function(s) at:
/wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php
By combining code from the two, I’ve attempted adding a filter but it’s being ignored:
function test_args($args) {
$args = array(
'sep' => ' x ',
);
return $args;
}
add_filter('bbp_title','test_args');
In reply to: How do I edit bbPress breadcrumbs?I have come across an example of a filter to change the bread crumb separators but I can’t seem to get it to work:
add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );
function my_breadcrumb_trail_args( $args ) {
$args = ‘ → ‘;
return $args;
}
Source: http://themehybrid.com/support/topic/change-separator-breadcrumb#post-22852