Recent Topics

1 Dec 14, 2005 19:53    

I'm not sure how to reverse these so they have a space inbetween


last_comments_title( '', 'htmlhead' );
arcdir_title( ' ', 'htmlhead' );
single_post_title( ' ', 'htmlhead' );
single_month_title( ' ', 'htmlhead' );
single_cat_title( ' ', 'htmlhead' );
$Blog->disp('name', 'htmlhead');

can i put the 'htmlhead' then ' ' after it in the function?
such as

[b]last_comments_title( 'htmlhead', ' ' );[/b]

I cant find anything on the functions and if they are required to be a certain way

Example:
last comments : archdirtitle : posttitle : monthtitle : cattitle : my blog's name

I find that to be much user friendly than the blogname - .....

2 Dec 14, 2005 20:40

You do know that only one of those titles displays at a time, right? It detects which page you're looking at and show the title that matches it.

3 Dec 15, 2005 00:05

well in that case I'd like to know how to get it to do

whatevertitle : blogname

	last_comments_title( 'htmlhead', ' : ' );
	arcdir_title( 'htmlhead', ' : ' );
	single_post_title( 'htmlhead', ' : ' );
	single_month_title( 'htmlhead', ' : ' );
	single_cat_title( 'htmlhead', ' : ' );
	$Blog->disp('name', 'htmlhead');

just gave me "output format not supported", but there should be a way to make this work :(

4 Dec 15, 2005 00:11

I just dug up the code for one of these functions in /b2evocore/_functions_comments.php:

function last_comments_title( $prefix = ' ', $display = 'htmlbody' )
{
        global $disp;

        if( $disp == 'comments' )
        {
                $info = $prefix.T_('Last comments');
                if ($display)
                        echo format_to_output( $info, $display );
                else
                        return $info;
        }
}

Prefix is the only thing you can add. There's no param for what to show after the title. I know for a fact that you can do just what you want to do in version 1.6, though.

5 Dec 15, 2005 00:50

thanks, and nice anonymous name there as nice as mine :lol:

guess I'll wait until 1.6 then B)

6 Jan 14, 2007 23:14

well I'm guessing now that 1.8.6 is out this is possible to do reverse titles, I've looked over the function but I still dont get some of these things


Form is loading...