Recent Topics

1 Apr 04, 2007 01:25    

Hi,

I encountered an error when using PHP5.x.x as shown below:


   Notice: Indirect modification of overloaded property am_extra_comment_plugin::$locales has no effect in /home/gamenws/public_html/plugins/am_extra_comment_plugin/_am_extra_comment.plugin.php on line 196

Notice: Indirect modification of overloaded property am_extra_comment_plugin::$locales has no effect in /home/gamenws/public_html/plugins/am_extra_comment_plugin/_am_extra_comment.plugin.php on line 196

Warning: Cannot modify header information - headers already sent by (output started at /home/gamenws/public_html/plugins/am_extra_comment_plugin/_am_extra_comment.plugin.php:196) in /home/gamenws/public_html/inc/VIEW/_menutop.php on line 39
   

This is under PHP5, if under PHP4, it works fine. I uninstalled the plugin temporarily.

Regards

2 Apr 04, 2007 08:59

I'll be updating all our plugins that have this problem the moment I get a chance.

In the meantime, to cure it delete this section of code from the plugin ( lines 176 -> 202 )

	// Attempt to translate strings - experimental
	function T_( $string, $req_locale = '' )
	{
	
		if( $string == parent::T_( $string, $req_locale ) )
		{	// Plugin translations still not coded in, lets do the best we can
			global $current_locale, $locales;
			$my_locale = ( empty( $locales[ $current_locale ]['messages'] ) ? $current_locale : str_replace( '_', '-', $locales[ $current_locale ]['messages'] ) );
	
			if( empty( $this->locales[ $my_locale ] ) )
			{
				$the_file = dirname(__FILE__).'/locales/'.str_replace( '-', '_', $my_locale).'/_global.php';
				if( is_file( $the_file ) )
				{
					include $the_file;
					$this->locales[ $my_locale ] = $trans[ $my_locale ];
				}
				else
				{
					// stops file being checked for every time
					$this->locales[ $my_locale ] = array( 'no translations for this locale' );
				}
			}
			$string = ( ( empty( $this->locales[ $my_locale ][ $string ] ) or $this->locales[ $my_locale ][ $string ] == '<translation required>' ) ? $string : $this->locales[ $my_locale ][ $string ] );
		}
		return $string;
	}

¥

3 Apr 04, 2007 09:19

Ok got it, thanks!!

4 Apr 12, 2007 16:54

Hi,

Have a suggestion... Maybe a field can be added for the text we want to appear when (example) a user must login/register to post a comment. ^^

While at it, can't find where to edit that text "Comments are closed", I'd like to change it to "Please register or login to post comments."

Thanks again.

6 Apr 14, 2007 12:37

Hi again,

The "Comments are closed for this post" doesn't get replaced, but instead, my new message is added on top of it or before it.

Thanks!

7 Apr 14, 2007 12:54

This works for me :-

	if( $disp_comment_form && $Item->can_comment( '<p><em>', '</em></p>', '#', 'these are closed' ) )

¥

8 Apr 14, 2007 13:27

Works fine now. Wasn't reading the boolean statement correctly :/ Silly me... and the cost of multi-tasking fast..

Thanks!


Form is loading...

Secure CMS – This forum is powered by b2evolution CMS, a complete engine for your website.