Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for question about the user entity. Don't use it for a generic question about, for example, what users can do on a site.
8
votes
Accepted
How do I prevent a user from re-using the same password within a certain period of time?
Current constraints include:
History constraint (checks hashed password against a collection of users previous hashed passwords looking for recent duplicates)
Now, all you need is to take this constrain …
7
votes
How to check if this page is user Profile Page
Anywhere in code, you can use code like that:
if ( arg(0) == 'user' // test if you are on user page
and is_numeric(arg(1)) // and if user ID was provided and is possibly valid (a number)
a …
7
votes
5
answers
536
views
How to ask anonymous to confirm their flag by email?
First kind of flag is trivial for logged in users, too.
The point is - I need to make first kind of flag available for anonymous users, too. … For logged in users it defaults to their email, and if they decide to change it, so be it, I have a way to reach them anyway. …
6
votes
reCaptcha has blocked me out of my website
If you can use SSH, or other shell, it's easy:
Install Drush. On Ubuntu, follow this document. Or simply unpack it and add it's directory to system's PATH variable (OS dependant).
Enter your Drupal' …
5
votes
Is there a way to register on my Drupal site with mobile number and password instead of email?
First thing first, you need a way to communicate with your users. Drupal sends quite a lot of data to users, like password restoration mails. …
4
votes
Accepted
control the view access permissions by field.tpl.php in D7
Never put any business logic into tpl files. They can be cached. So unless it's the "if odd, add class odd" type of logic, it may fail you miserably.
If you need more elaborate rules than Field Permis …
4
votes
Accepted
User with uid=0 in database
Omit UIDs lower than 1, or select only users with name, etc. …
3
votes
Control content access based on field value in user profile?
User Relationships module seems to be the answer:
User Relationship Node Access lets users control access to their content based on relationships …
3
votes
Accepted
Block Node Access After A Certain Amount of Views
You can control it using hook_node_access($node, $operation, $account) for Drupal 7. For Drupal 6 one can use hook_nodeapi() for similar result.
When $operation is view, first update usage index for …
3
votes
Is it possible to allow duplicate usernames ?
Username needs to be unique - Drupal needs to know who to log in. Having that said, you can separate login user name from display user name. Simply add non-unique "display name" text field, and in tem …
3
votes
Accepted
give node author ability to position the image when uploading content
Of course it can! Was covered in docs and in even more docs and is supported by Wysiwyg, with helpful modules like Insert to make it even easier.
3
votes
Accepted
One path alias for differents / multiple internal path?
Then both guests and logged in users will see identical menu, but they will actually get different set of menu items. …
3
votes
How to delete/hide "create new account"
Use hook_menu_alter() to remove default registration page from menu system. Simply unset($items['user/register']); and clear menu cache.
3
votes
Accepted
How to show a views count for nodes that ar not available to anonymous users
Go to edit screen of your view. In right column, Advanced section, click Query settings.
Check Disable Query Rewritting. Now Drupal permissions will not affect views results.
3
votes
Accepted
Registration form customization to meet COPPA and similar "under 13" laws?
Simply go to Home > Administration > Configuration > People > Account settings and add fields you need. Use Conditional Fields module to conditionally show a text box.
Now you need to use Rules. See …