Fix post reputation button for guest
Clean up detail templates
Use username instead of user ID in logs
Fix undefined forum_id error

Also remove unused var and comment