Anon posting for bridge.
This commit is contained in:
parent
e79347248a
commit
5e5f1bd886
@ -5,6 +5,9 @@ fn conf_enable_comments {
|
|||||||
allow_new_user_comments=yes
|
allow_new_user_comments=yes
|
||||||
shift
|
shift
|
||||||
}
|
}
|
||||||
|
if not if(~ $1 -a) {
|
||||||
|
bridge_anon_comments=yes
|
||||||
|
}
|
||||||
enable_comments=yes
|
enable_comments=yes
|
||||||
groups_allowed_comments=$*
|
groups_allowed_comments=$*
|
||||||
conf_enable_app bridge
|
conf_enable_app bridge
|
||||||
@ -67,6 +70,12 @@ fn mk_new_comment {
|
|||||||
if not
|
if not
|
||||||
_status=$status
|
_status=$status
|
||||||
}
|
}
|
||||||
|
if not if(! ~ $#bridge_anon_comments 0) {
|
||||||
|
if(~ $"post_arg_ima_robot 'not')
|
||||||
|
u='Glenda' # Anonymous
|
||||||
|
if not
|
||||||
|
_status='You are a robot!'
|
||||||
|
}
|
||||||
if not
|
if not
|
||||||
_status='You need to log in to comment.'
|
_status='You need to log in to comment.'
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
<br>
|
<br>
|
||||||
<input type="submit" name="bridge_post" value="Post a comment">
|
<input type="submit" name="bridge_post" value="Post a comment">
|
||||||
|
|
||||||
% if(~ $#logged_user 0 && ! ~ $#allow_new_user_comments 0) {
|
% if(~ $#logged_user 0) {
|
||||||
|
% if(~ $#allow_new_user_comments 1) {
|
||||||
<label>New user name:
|
<label>New user name:
|
||||||
<input type="text" name="comment_user" value="%($"post_arg_comment_user%)">
|
<input type="text" name="comment_user" value="%($"post_arg_comment_user%)">
|
||||||
</label>
|
</label>
|
||||||
@ -21,5 +22,14 @@
|
|||||||
<div style="font-size: 70%">
|
<div style="font-size: 70%">
|
||||||
Enter your desired user name/password and after your comment has been reviewed by an admin it will be posted and your account will be enabled. If you are already registered please <a href="/_users/login" rel="nofollow">login</a> before posting.
|
Enter your desired user name/password and after your comment has been reviewed by an admin it will be posted and your account will be enabled. If you are already registered please <a href="/_users/login" rel="nofollow">login</a> before posting.
|
||||||
</div>
|
</div>
|
||||||
|
% }
|
||||||
|
% if not if(~ $#bridge_anon_comments 1) {
|
||||||
|
<label>Are you a robot?
|
||||||
|
<select>
|
||||||
|
<option value="yes">Yes</option>
|
||||||
|
<option value="no">No</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
% }
|
||||||
% }
|
% }
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user