I created a survey on Google Form and I only want specific people to fill it out and nobody else. Is that possible? And, if not, is there a scripting method I can follow?
Related
I am working on dictionary-like web page and I want to implement adding/changing phrases only by few people (my client - which is some small organisation wants to be able to do this by himself). The page does not have any login/registration mechanism etc. (for regular users at least) so I do not want It to have any login button. I wondered if making admin model ( few admins made in seeds for example) and adding login button that is invisible - I thought of using CSS opacity for this one. Is this a good solution ? Is there any other good practice in these sitations? Please dont be afraid to post suggestions. Additionally this is a serious page (my first job as freelancer), so I wonder if my solution is... acceptable? Thanks in advance for any answers!
This quite a standard thing in the web. Most of the websites consists of two parts, customer facing part (sometimes called frontend) and admin panel (called backend). In your case you don't need any login to access frontend part, but you need one for backend part.
Creating hidden button is not needed at all. There simply should be no button at all. If you want to log in as an admin, you simply navigate to http://my-website-url.com/admin.
I wouldn't bother with roles et unless your client specified clearly that he needs them.
Even though this is simple I would still suggest adding a role to a user model. After all he may want to have some user functionality later on. The simplest way to do this would be to use devise and add a role enum column.
Check out the article below and look under the "Enum" section.
http://railsapps.github.io/rails-authorization.html
I am currently working on a website to manage rental properties. I would like users to be able to go to a page, enter information for a particular property (address, owner, etc.) and "submit" that information. The problem I am having is I cannot find a good way to manage the information, as well as give users the ability to delete that information at will. I would like this all done on the front end as I can't think of a good solution without significant SQL injection concerns. Ideally I would like all the information displayed with a small (x) next to each row.
I apologize that may sound very convoluted and vague.
User submits information about zero to many of his rental properties.
User goes to another page (or same page) and can view and manage his properties
User sells property; Deletes one or more of his properties
If anyone can point me in the right direction I would be thankful!
You can use custom post types for properties (you'd have a custom post type called Property) and meta data for storing any arbitrary info related to each property. That's a rough outline of how I would structure things for a project like this.
You'll need to do a fair bit of coding for the front-end forms, validation, storing/updating/listing data. The good news is that WordPress will provide lots of nice things for you out of the box, like authentication/authorization, user management, a great mechanism for listing posts (a.k.a. your properties) and categorizing them.
I've been reading about building an intranet site with different frameworks and I've found Open Atrium to be a great alternative since it's naturally oriented to that use.
I'd love to add some custom workflows associated with personnel management, for example, each team member gets a reminder every Friday to fill out a form with the hours of the week dedicated to each project. Once submitted, the role 'administrator' gets notification of all the forms received and of those not received, the details of each one and the sum of hours per
project. Any insight on how to proceed with this implementation would be greatly appreciated.
I've searched but haven't found a module that has this kind of workflow. How would this be implemented with cck, views or fields?
I would use the Rules module to create the first part: emailing users to remind them to fill in their forms. The rules module has a 'Send mail to all users of a role' action which you can use.
I would use the Views module to create a new view of the filled in forms (which I assume will just be nodes of a certain content type) and make that view accessible only to the administrator in the view's 'Access' section. Views are quite powerful, and you'll probably be able to do most all of what you require with them, but it's hard to be more specific without knowing which version of Drupal you're using and any more details about the problem (such as, will this form users are filling out really be just a node or a webform?). As an example of a views feature: if you go to add a field to your view, you should be able to see a ' Global: Math expression' field, where you can do things like add previous fields together, etc.
On the other hand, if you use the Webform module to build the form users have to fill out, that can send an email automatically each time it's submitted and the responses can be downloaded into an excel file by the administrator to manipulate further.
Hope some of those ideas help!
I have a Plone Site where anonymous users create a "Subscription" object for a conference.
Fact is: a malicious user can call this screen a lot of times and crash my site. I can use a captcha to avoid it, but I would like to use it only after "x" attempts of the same user, something like the SO approach when a user tries to post a lot. Is there a module that does this for me? Show a recaptcha after a user tries the same url too many times?
For a start content in not the solution to everything. In your case having a custom content type for handling subscriptions seems like an overkill. Always ask yourself if what you are doing is really content-ish. Does it need to be contained, navigable, searchable whatever else content can be? For a conference subscription definitely not.
In brief you could:
Create a form and save its data in lighter objects than full content or use sql.
Use Products.PloneFormGen, which also has captcha support.
Concerning the captcha if you go the manual way and create everything yourself, you could use cookies to "remember" visits. See How do you get and set cookies in Zope and Plone?
It's obvious that your system is subject for manipulations in form of mass-registrations in every way without further measures like a captcha or additional email validation after submission of the registration form. But this is independent of flow control, DDOS etc.
I want to add some specific General Knowledge question related to users of my targeted area only at the user registration form because of spamming from untargeted users( from across world).
Is there any module I can use to add question/answer in the registration form?
I would suggest using the CAPTCHA/reCAPTCHA and the CAPTCHA Riddler if you are looking for this exact use case. With these modules you can choose which forms to display CAPTCHA on and you can create your own custom questions and answers.
Otherwise, like Rimian says, there's Mollom
Is it necessary for the question to be "General Knowledge"? You only want to determine if the user is human, right? I would use mollom:
http://mollom.com/
http://drupal.org/project/mollom
If I were to do this, I would create a small module using hook_form_alter working on the registration form, which would add fields for the questions, as well as a verification function to check whether the answers were correct.