Recent Topics

1 Jan 30, 2007 00:22    

Currently we require registration in order to comment. No unregistered folks who try and comment get this message at the bottom of the comments page "Comment are closed for this post." I would like to change this to "Registration required for commenting." I've searched, I think, all the php files but kind find it anywhere.

Can anyone help?

2 Jan 30, 2007 01:01

#: ..\..\..\inc\MODEL\items\_item.class.php:858
msgid "Comments are closed for this post."
msgstr ""


I found this in the pot (language) file, line 4376, located in the locales dir. I'm not sure, but I think changing this line does the trick for you. If not: now you know where to find it.

Good luck

PS. this is for version 1.9.2

3 Jan 30, 2007 02:06

Man I thought for sure that would do it!... but... it didn't.

4 Jan 30, 2007 02:37

Man I thought for sure that would do it!... but... it didn't.

What version of b2 are you using?

6 Jan 30, 2007 09:04

You can make a translation with only this line 'translated'. Go through http://manual.b2evolution.net/Localization these steps. If I'm correct you'll end up with this strings:

#: ..\..\..\inc\MODEL\items\_item.class.php:858
msgid "Comments are closed for this post."
msgstr "Registration required for commenting." 


Now create a locale map like en_UK or en_US or your flavor, put the po file in there and it will translate the string whenever it occurs.
Please read the manual, I'm doing this from memory, which I know is not always 100% accurate :oops:

Good luck.

7 Jan 30, 2007 10:36

_feedback.php, find this bit of code :-

	// Comment form:
	if( $disp_comment_form && $Item->can_comment() )
	{ // We want to display the comments form and the item can be commented on:

And change it to :-

	// Comment form:
	if( $disp_comment_form && !$Item->can_comment( NULL ) )
	{ // We want to display the comments form and the item cannot be commented on:
		echo '<p>Sorry, you need to be a registered member to comment</p>';
	}
	elseif( $disp_comment_form )
	{ // We want to display the comments form and the item can be commented on:

¥


Form is loading...