user785179
  • Member for 10 years
  • Last seen more than 8 years ago
Redirect /user/login to HTTPS, all other requests to HTTP
4 votes

I think the Secure Login module will also do what you want without requiring you to hack the core. Secure Login module enables the user login and other forms to be submitted securely via HTTPS, ...

View answer
Users in Database
2 votes

will I lose all the user accounts in Production? Depends. If you replace the 'users' table, then yes, you will lose the accounts. You can use the Feeds module to easily import your users. That way ...

View answer
How do I check if a single on/off checkbox is checked?
Accepted answer
2 votes

After many hours of trial and error, I ended up solving the problem. Do not ask me to explain this because it makes no sense to me. If anyone can explain, then that would be greatly appreciated! I ...

View answer
Adding multiple nodes at once
1 votes

It won't do exactly what you want, but there is a node copy module that allows a user to copy contents from one node to another, edit it, and submit it as a new one. It would certainly save time for ...

View answer
drupal 7: new field with dynamically generated select list from PHP code
Accepted answer
1 votes

I went with the CCK module out of desperation. All seems to be working well since I have my PHP snippets back.

View answer
How to copy field value into another field by its node ID?
Accepted answer
1 votes

I could not find a solution to my problem, but I found a workaround. Instead of 3 phases with each their own content types, I instead was able to make one content type and use the vertical tabs to ...

View answer
Add comments on user profile
1 votes

I believe that the user profile is not a type of "node" so it is invisible to Panels. Therefore, you will most likely need to write a custom module that will inject the comment form into the user's ...

View answer
Webform module - Contact form will not send webform emails to users with the same domain, but will send to all other email accounts I set
Accepted answer
1 votes

You using a shared hosting? Could be that the recipients mail server is thinking your mails are junk if the originating mail is not coming from the resolved hostname. This problem is common with ...

View answer
Is there a way to quickly copy the same ordering and layout from manage fields to manage displays?
Accepted answer
0 votes

Since this has been posted for more than a week and nobody has responded, then I am going to assume that there is no quick and easy way. I just ended up recreating the display by hand. Oh well.

View answer
How do I add a new content status?
Accepted answer
0 votes

I was able to solve my own problem by creating a field that sets the status (e.g. "draft", "to be reviewed"). I then used jQuery to hide this field. Also in jQuery, I made it so that when the user ...

View answer
Tabulation order in Display Suite
0 votes

You could probably do this if you use something like javascript or jQuery and using the tabindex attribute. Take a look at the below link at Stackoverflow as an example: https://stackoverflow.com/...

View answer
Show news articles only by the year selected
Accepted answer
0 votes

You could create a view using Views and allowing an exposed filter on the year to the user to select the year or dates. That would then submit the request to the server and reload the page with only ...

View answer
How to display custom content when viewing node?
Accepted answer
0 votes

I resolved it by using hook_node_view() to append to the $node->content object.

View answer
Document has expired
Accepted answer
0 votes

I didn't really solve the issue technically, but I used a workaround and made my links use "target=_blank" to force open in a new tab/window. This prevents the user from hitting the BACK button. It'...

View answer
How to restrict creation of content based on unique field values?
0 votes

This is probably not ideal and the lazy and ugly way, but you could look at the unique field module http://drupal.org/project/unique_field I say it's ugly because the user will still be able to fill ...

View answer
Views and sorting by label
Accepted answer
0 votes

Drupal is not powerful enough for this. Had to write my own module and my own SQL query to get it ordered the way I want. Maybe in Drupal 8 this feature will be available.

View answer
Custom field permissions based on workflow or rule/action
Accepted answer
0 votes

I used the Rules module and custom fields to create triggers that changed when being passed from role to role.

View answer
Conditional fields module, "OR"-like operator
Accepted answer
0 votes

The new version of the conditional fields module is taking care of this.

View answer
Looking for a workflow module that can control content access
Accepted answer
0 votes

Update and solution: Turns out that I was not using the Workflow module correctly and Drupal's permissions correctly. I was assuming that the Workflow module could remove permissions. Instead I had to ...

View answer
Uploading files to two separate locations
0 votes

I would imagine that if the 2 storage servers are accessible from the web server through a share or mount, then you can make some system calls in your custom module to copy the file to the 2 locations....

View answer