Showing posts with label Drupal Tips. Show all posts
Showing posts with label Drupal Tips. Show all posts

Sunday, January 22, 2017

How to create sliders in Drupal 7 using Views Slideshow?

How to create sliders in Drupal 7 using Views Slideshow
Sliders or Slideshows are dynamic elements usually displayed in home page of websites. Usually with a catchy background image and phrases, they grab attention. They are great additions to any websites to add more aesthetics to websites. Since they are dynamic, websites look more grand and alive. They can also be used to display important content and graphics to engage with visitors. And though sliders are not so good in terms of making websites easily accessible on mobiles over data network due to higher load times, it has still become a standard web design layout.

In this post we shall discuss how to create testimonial sliders in Drupal 7 using Views Slideshow. Though the usual sliders we see are catchy background images with catchy phrases, sliders are not only meant for images. They can be any thing, almost. We can also display text such as testimonials, images, quotes etc.

Read more �
Share:

Friday, January 13, 2017

Drupal: How To Set Different Front Page or Home Page For User Based on Different User Role?

Drupal How To Set Different Front Page or Home Page For User Based on Different User Role main

There may be times when we may want to direct users based on their Drupal Roles to different Front Page. For instance, we want users with administrator and content admin roles to see a dashboard, and regular users with "Authenticated User" roles to another dashboard specially designed for those users. In such cases, we want to redirect users based on their roles to different dashboard.

In this post, we shall see how to set different Front Page for users based on their user roles. Page redirection can be easily achieved by using Rules. If you don't want to do it with rules, there are modules available for setting front page for different user roles. We shall be check out two methods to set front page for different user roles - by using Rules Module and another by using "Front Page Module" from Drupal Projects.
Read more �
Share:

Thursday, December 1, 2016

How to fix Drupal issue: �This field has been disabled because you do not have sufficient permissions to edit it�.

This field has been disabled because you do not have sufficient permissions to edit it

In this post we'll see how to fix Drupal issue:
�This field has been disabled because you do not have sufficient permissions to edit it�.

While I was trying to edit a content, I noticed that Drupal was not allowing me to edit the content saying �This field has been disabled because you do not have sufficient permissions to edit it�.
Read more �
Share:

Friday, November 18, 2016

How to reset Drupal admin user password easily from phpMyAdmin?

How to reset dupla 7 admin user password easily
How to reset Drupal admin user password easily?
In this post, we shall see how to reset Drupal admin user password easily from phpMyAdmin. If it is on a production site, we can do "forgot password" to let Drupal send us a password reset link. But on local development server, we might not have a provision to do it. So we may need to do it some other ways. We can reset passwords for user from phpMyAdmin by running some scripts. But as you might already know that passwords in Drupal are hashed. So we need to know the hash code of a password before running such sql command. I have included a SQL code for password reset in Drupal 7 at the end of this post.

This example is on local Drupal 7 running on XAMPP (Windows). In this example, we generate a hash code of a password we desire and replace the existing hash code in PHPMYADMIN with the new one to change the password. Admin can then login in with the new password and may change the password as usually done in Drupal by editing the user.
Read more �
Share:

Monday, October 3, 2016

How to install and uninstall a module in Drupal CMS?

install uninstall drupal module
Drupal Modules are great way to extend your Drupal website. A Drupal module is a collection of files containing some functionality and is written in PHP. It can be installed and uninstalled. In this post, we will see how to install Drupal modules the standard way and to uninstall Drupal Modules.

How to install modules in Drupal?
There are basically three common ways to install Drupal modules which is popular, besides using "drush". One can install Drupal Modules by either of the following ways:
Read more �
Share:

Sunday, August 21, 2016

404 Error While Accessing Drupal Site After Migration

404 Error While Accessing Drupal Site After Migration
If you have migrated a Drupal site from local development server to a live server or from one host to another host, you will generally encounter a 404 error when accessing the pages after migration. Do not freak out, this is pretty normal and can be resolved easily. Let's go through what I did so far to migrate from one host to another.

Process of migrating a Drupal Site from one host to another host:

On the old server:

Read more �
Share:

Drupal unable to send emails using the contact forms [a host issue]

Like many of us, I am also facing an issue with sending emails from Drupal website hosted on Linux Host. From my tests I found that -
1) I can send and receive emails by accessing webmail of the domain's email account.

2) But when sending email using the contact from on the website, Drupal says email is sent successfully but emails are not received. Nor are the emails visible in the "Sent" box in webmail. The same email was configured on the site as well as contact form settings.

The error thrown by Drupal is as shown above:
"Unable to send email. Contact the site administrator if the problem persists..

Incidentally, I also tested on a WordPress site and even emails are not getting sent from WordPress's Contact Form 7 plugin.

So I ruled out Drupal as the issue or WordPress for that matter. It seems to me that it could be the host that is not allowing the emails to be sent. So I contacted my service provider.

And, here is the reply from my hosting service provider:
Read more �
Share:

Tuesday, June 28, 2016

Drupal error : DrupalTemporaryStreamWrapper temporary directory not found

Most web developers prefer to develop sites on a local development machine and then upload to a live server as it speed up the development process. In my previous post, I discussed about migrating a site on local development server to a live server which you can refer this post. This post is about an error which we usually face when migrating a Drupal site from local development server to a live server. After migrating a Drupal site from local development server to a live server or simply put, from one server to another, we will usually encounter this error.

Error: Warning: file_put_contents(temporary://): failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_s


Watch this short video about the error above and how to fix this error.



Read more �
Share:

How to migrate site from local development machine to live site?

How to migrate site from local development machine to live site?
Most web developers like to develop websites on local development machines and on completion migrate it to a live site. In this post, we will see how to migrate a site developed locally to a live site. In this tutorial, the local site is build using Drupal CMS (PHP, MySql) on Windows using XAMPP suite.

Check out these previous post how to install XAMPP on Windows for development purposes:
How to install and run XAMPP on Windows? (Guide)
How to install and run WordPress using XAMPP on Windows?

How to migrate site from local development machine to live site?
Read more �
Share:

Thursday, March 24, 2016

Drupal Commerce Tips: How to display Drupal Commerce products using views module?

Drupal Commerce is used to build eCommerce websites and applications of all sizes. Drupal Commerce is probably one of the most popular eCommerce module available for the Drupal CMS these days. In this post, we will see how to display Drupal Commerce products.

Drupal Commerce Tips: How to display Drupal Commerce products using views module?

Prerequisites:
Read more �
Share:

Drupal Commerce: How to add custom fields to collect extra information in a Drupal Commerce checkout process?

Drupal Commerce Tips
Drupal Commerce is used to build eCommerce websites and applications of all sizes. Drupal Commerce is probably one of the most popular eCommerce module available for the Drupal CMS these days. In this post, we will see how to add custom fields in a Drupal Commerce checkout process. The benefit is that it will allow us to collect extra information from customers pertaining to an order.

How to add custom fields to collect extra information in a Drupal Commerce checkout process? Let's discuss this step by step. This example is based on Drupal 7.

Prerequisites:
Read more �
Share: