nicmare (@nicmare)

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

  • nicmare
    Participant

    @nicmare

    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.


    nicmare
    Participant

    @nicmare

    aah. 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:

    Reply To: no title in content-single-reply.php


    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? 🙂


    nicmare
    Participant

    @nicmare

    so 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.


    nicmare
    Participant

    @nicmare

    the 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


    nicmare
    Participant

    @nicmare

    is 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.


    nicmare
    Participant

    @nicmare

    haha. no problem. this is my custom structure in permalink’s settings:
    /%year%/%monthnum%/%postname%/

    so postname is already in permalinks.


    nicmare
    Participant

    @nicmare

    mhh. 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!


    nicmare
    Participant

    @nicmare

    i was talking about the <title>. sorry for confusion. problem still exists 🙁


    nicmare
    Participant

    @nicmare

    sure. 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


    nicmare
    Participant

    @nicmare

    yea. finally! thank you guys for making that clear.


    nicmare
    Participant

    @nicmare

    yea. 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.


    nicmare
    Participant

    @nicmare

    Yes. 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?!


    nicmare
    Participant

    @nicmare

    i am also interested in this!


    nicmare
    Participant

    @nicmare

    awesome “hack”. thank you! i need this.

Viewing 14 replies - 1 through 14 (of 14 total)