Forum Replies Created
-
In reply to: no title in content-single-reply.php
ha! now problem 1 solved! thank you! i just copied it from form-reply and pasted in content-single-reply. now the topic title appears below the breadcrumbs. the only thing left: the <title> tag.
In reply to: no title in content-single-reply.phpaah. forget the title “support”. this is the main title. you will find it everywhere! even on forum homepage:
http://www.dashcamtest.de/support/the topic title is missing!
to show you the difference: i am talkin about single replies NOT topics. it is the same with your reply as single page:
as you can see there is a nice title with prefix “Reply to:…”
and THIS is what i miss in my page. do you understand now? 🙂In reply to: no title in content-single-reply.phpso this is what users see when they come from google. now it would be more than good to display them the title and a link to the topic.
In reply to: no title in content-single-reply.phpthe url is fine. it shows just the id of the reply. no problem with that. but i was just wonding why there isn’t a topic title on this page. just found the reply urls by visiting the sitemap.xml: http://www.dashcamtest.de/reply-sitemap.xml
In reply to: no title in content-single-reply.phpis it possible that you are assuming the link in my first post shows a thread? that isnt the case! it is a link to a single reply!!! the full thread / post is here: http://www.dashcamtest.de/support/thema/im-test-a-rival-carcam-guenstige-mini-dashcam-mit-akku/ and the link above shows ONE reply out of it.
In reply to: no title in content-single-reply.phphaha. no problem. this is my custom structure in permalink’s settings:
/%year%/%monthnum%/%postname%/so postname is already in permalinks.
In reply to: no title in content-single-reply.phpmhh. as i already said i still talking about <title>! the one in the browser bar 😀
current sourcecode is:<title>| dashcamtest.de</title>
as you can see the topic title is missing!In reply to: no title in content-single-reply.phpi was talking about the <title>. sorry for confusion. problem still exists 🙁
In reply to: Show User Profile Informationsure. just add the following code to your theme’s functions.php:
function add_extra_contactmethod( $contactmethods ) { // Add new ones $contactmethods['twitter'] = 'Twitter'; $contactmethods['facebook'] = 'Facebook'; $contactmethods['googleplus'] = 'Google Plus'; $contactmethods['youtube'] = 'Youtube Kanal'; // remove unwanted unset($contactmethods['aim']); unset($contactmethods['jabber']); unset($contactmethods['yim']); return $contactmethods; } add_filter('user_contactmethods', 'add_extra_contactmethod');
this removes “aim, jabber and yim” but adds twitter, facebook, yt and googleplus
In reply to: overwrite functions with theme's functions.phpyea. finally! thank you guys for making that clear.
In reply to: overwrite functions with theme's functions.phpyea. such a solution would be awesome and keeps updates of bbpress more save!
because the separator value was annoying to me, i had to create such a big function just to overwrite this simple argument.In reply to: overwrite functions with theme's functions.phpYes. So this is my code which works:
add_filter('bbp_list_forums','custom_bbp_list_forums',10); function custom_bbp_list_forums( $args = '' ) { // Define used variables $output = $sub_forums = $topic_count = $reply_count = $counts = ''; $i = 0; $count = array(); // Parse arguments against default values $r = bbp_parse_args( $args, array( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '', 'link_after' => '', 'count_before' => '<span>', 'count_after' => '</span>', 'count_sep' => '</span><span>', 'separator' => '', 'forum_id' => '', 'show_topic_count' => true, 'show_reply_count' => true, ), 'list_forums' ); // Loop through forums and create a list $sub_forums = bbp_forum_get_subforums( $r['forum_id'] ); if ( !empty( $sub_forums ) ) { // Total count (for separator) $total_subs = count( $sub_forums ); foreach ( $sub_forums as $sub_forum ) { $i++; // Separator count // Get forum details $count = array(); $show_sep = $total_subs > $i ? $r['separator'] : ''; $permalink = bbp_get_forum_permalink( $sub_forum->ID ); $title = bbp_get_forum_title( $sub_forum->ID ); // Show topic count if ( !empty( $r['show_topic_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) { $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID ); } // Show reply count if ( !empty( $r['show_reply_count'] ) && !bbp_is_forum_category( $sub_forum->ID ) ) { $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID ); } // Counts to show if ( !empty( $count ) ) { $counts = $r['count_before'] . implode( $r['count_sep'], $count ) . $r['count_after']; } } // Output the list echo apply_filters( 'bbp_list_forumss', $r['before'] . $output . $r['after'], $r ); } }
but maybe there is an easier way to modify arguments array?!
In reply to: New post since last visit/login plugini am also interested in this!
In reply to: My customized sub-sub-forumsawesome “hack”. thank you! i need this.