1
Feedback & Suggestions / Modification need in next version of 4images(concerning comment_form.html)
« on: August 18, 2009, 10:21:48 PM »
Hi everyone!
I was thinking about uselessness of showing the user name while adding comments, if user is already logged in.
In comment_form.html
If users are not logged in, let's them insert wanted name as an author of a comment.
But if users are already logged in, there is no need for even show them the username input area, am I right?
There enough to show them only Subject area and textinput area.
So, I myself tried make not visible that area for logged in users using {ifnot lang_loggedin_msg} like this in comment_form.html:
But then I recieve an error, as if I did not insert username and as a result, posting of a comment fails.
As I did not know how to make it work with {ifnot lang_loggedin_msg} tags I remove them.
It was unsuccessfull trying )))
But you will agree with me - it is a good idea, and it would be very nice, if this little thing would be solved in next version of 4images.
I was thinking about uselessness of showing the user name while adding comments, if user is already logged in.
In comment_form.html
If users are not logged in, let's them insert wanted name as an author of a comment.
But if users are already logged in, there is no need for even show them the username input area, am I right?
There enough to show them only Subject area and textinput area.
So, I myself tried make not visible that area for logged in users using {ifnot lang_loggedin_msg} like this in comment_form.html:
Code: [Select]
{ifnot lang_loggedin_msg}
<tr>
<td width="90"><b>{lang_name}</b></td>
<td><input type="text" name="user_name" size="30" value="{user_name}" class="commentinput" /></td>
</tr>
{endifnot lang_loggedin_msg}
But then I recieve an error, as if I did not insert username and as a result, posting of a comment fails.
As I did not know how to make it work with {ifnot lang_loggedin_msg} tags I remove them.
It was unsuccessfull trying )))
But you will agree with me - it is a good idea, and it would be very nice, if this little thing would be solved in next version of 4images.