Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Blog Module

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Blog comments - Name = login data


Reply

2 Posts   668 Views

Avatar
Mackodlak

9 June 2011 at 8:04pm (Last edited: 9 June 2011 8:44pm), Community Member, 95 Posts

The next thing I have to figure out is how to change comments in Blog Module:

The thing is now they allow entering custom Name.
I wish them to be so that a person has to login and that Name field is filled with persons login data (name, surname, e-mail, whatever).
I will play with it myself, but if som1 here has done the same thing and knows an easy way to change it I would be thankful!

Come to think of it I want it to be so all over the web site so basically it means overriding the built-in page comments

Avatar
Mackodlak

9 June 2011 at 9:03pm Community Member, 95 Posts

Found built-in function to do that. Solved!

For those that might need the same thing:

put:

PageCommentInterface::$comments_require_login = true;

in /mysite/_config.php

Sry for spamming the forum!