Recent Topics

1 Apr 14, 2009 08:21    

My b2evolution Version: 2.x

I changed a stub file to have a certain unix max timestamp, and now in the header title it says:

Stop at: 1301etc - Puppets in Melbourne

How can I remove the 'stop at etc' bit, and just have the normal header title?

This is the code for my html header for the page

<title><?php
		// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
		request_title( array(
'auto_pilot'      => 'seo_title',
			
				) );
		// ------------------------------ END OF REQUEST TITLE -----------------------------
	?></title>

2 Apr 14, 2009 11:27

Without seeing the "etc" bit :

<title><?php
ob_start();
      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
      request_title( array(
'auto_pilot'      Arrow 'seo_title',
         
            ) );
      // ------------------------------ END OF REQUEST TITLE -----------------------------
echo preg_replace( '~^stop at[^\-]+?\-~i', '', ob_get_clean() );
   ?></title>

¥

3 Apr 14, 2009 11:45

Hmm, I get this error:

Parse error: syntax error, unexpected T_STRING, expecting ')' in /public_html/skins/my skin/_html_header.inc.php on line 31

The 'etc' (sorry about that, it's just the unix timestamp, I have two different ones on two different skins but both showing the same problem) is 1301875200.

4 Apr 14, 2009 11:49

I'm guessing your error is the word "arrow" instead of => ;)

<title><?php
ob_start();
      // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
      request_title( array(
'auto_pilot'      => 'seo_title',
         
            ) );
      // ------------------------------ END OF REQUEST TITLE -----------------------------
echo preg_replace( '~^stop at[^\-]+?\-~i', '', ob_get_clean() );
   ?></title> 

¥

5 Apr 14, 2009 11:53

Damn it... missed that obvious mistake. :) Thanks, it works fine now!


Form is loading...