Search Results for 'code'
-
Search Results
-
Topic: Forum Headers
Hi, I have searched high and low for anything on putting in a header for each forum on my site’s board. For instance, I have different forums for the various groups within my organization. I’d like for when a member of a certain group clicks on the group forum, a header or a banner specifically made for that group will be displayed for their section of the board. Anyone have any ideas? Keep in mind I don’t know a lick of code and not really comfortable with manipulating code so if you have any ideas a step by step would be much appreciated. Thanks!
Hi,
I had this issue since i very first installed BBpress along with the plugin – WP User Avatar.
The avatars are not showing in the forum at all. Its a completely bespoke WordPress theme with nothing in the functions.php to be doing any filtering or stripping out extensions of any type.
Ive also disabled every single plugin except bbpress & the avatars plugin & i still get the problem.
Can anyone please help me overcome this problem?
I did notice that in the bbpress / filters.php the line which says : add_filter( ‘bbp_get_reply_author_link’, ‘stripslashes’ ); had to be commented out because it was removing the backslashes from the avatar URL making things even worse.
I dont like the fact ive had to manipulate core code to do this. Surely there has to be a better was to get avatars working.
Thank you 🙂
I am running Bbpress 4.1.1. If you have the revision log turned on, every saved edit will be displayed under the post. I’m a frequent post editor, so I wind up with 10+ logs if I don’t remember to uncheck the box, and there’s no easy way to delete them.
I am looking for a way to make each topic and post only show the latest edit. There should only ever be one edit note per post. Is this possible, via plugin or code or some option I haven’t found yet?
Topic: sidbar login avatar size
i tryed to change the size of the sindbar login avatar img.
i put in the theme (hueman theme) funcion.php this:
add_filter('sidebar_login_widget_avatar_size','new_login_avatar_size'); function new_login_avatar_size(){ return 80; }i also tryed this code:
add_filter('sidebar_login_widget_avatar_size', 80);but it is still the size of 38 pix and not 80 pix ?
what did i do wrong ?
Topic: Before Posting
If your site is public, please put a url/link to an example page. What is to you an obvious written description is frequently not clear to us, and the ability to see is much better. We are also able to fix many display issues by loading your site and seeing what it is sending the browser in the background, so a link rather than a picture is really useful.
If you are setting up, please see the Getting Started section of the codex first.
Please see this page for any frequently asked questions we may already have an answer for you.
Please also see these pages for help troubleshooting possible issues in bbPress. PLEASE tell us you have done the tests before when posting.
‘Normal’ users get the message “You cannot create new topics.” when you add
echo do_shortcode ('[bbp-topic-form]');This is a similar topic to this message created almost three years ago, has anyone a solution for the current (latest) version of bbpress and wordpress.
Hi,
Im using a bespoke WordPress theme for my site which ive created myself.
Ive fully customized BBpress & put the theme inside my WP theme too.
So far so good, it looks great & works fine too. But one problem is that the Breadcrumbs at the top of my page throughout the website only display:
Home / Forum / HatWorks Forum
If i then go into the GENERAL DISCUSSION SUB FORUM / TOPIC I get the following:
Home / Forum / General Discussion
Instead i should be getting:
Home / Forum / HatWorks Forum / General Discussion
If i then go to click a topic in general discussion I get:
Home / Forum / Hello all forum members, what do you prefer?
instead of
Home / Forum / HatWorks Forum / General Discussion / Hello all forum members, what do you prefer?
The current code I have written in my functions.php for the breadcrumbs is:
<?php function the_breadcrumb() { global $post; $post_type = $post->post_type; echo '<ul id="breadcrumbs">'; if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') { echo '<li><a href="'; echo get_option('home'); echo '">'; echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home'; echo '</a></li><li class="separator"> / </li>'; echo '<a href="https://hub.driveworks.co.uk/forums/forum/">Forum</a>'; echo ' / '; echo the_title(); } elseif (!is_home()) { echo '<li><a href="'; echo get_option('home'); echo '">'; echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home'; echo '</a></li><li class="separator"> / </li>'; if (is_category() || is_single()) { echo '<li>'; the_category(' </li><li class="separator"> / </li><li> '); if (is_single()) { echo '</li><li class="separator"> / </li><li>'; the_title(); echo '</li>'; } } elseif (is_page()) { if($post->post_parent){ $anc = get_post_ancestors( $post->ID ); $title = get_the_title(); foreach ( $anc as $ancestor ) { $output = '<li><a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li> <li class="separator">/</li>'.$output; } echo $output; echo '<span title="'.$title.'"> '.$title.'</span>'; } else { echo '<li><span> '.get_the_title().'</span></li>'; } } } } ?>Any anyone help with the child navigation of this please?
Thank you