Skip to main content

Posts

Showing posts with the label Drupal Tips

YouTube Monetization disabled and re-enabled!

L ike many small time YouTube creators, I also got an email in January 2018 about changes to the YouTube Partner Program (YPP)  regarding changes new threshold of 4,000 hours of watchtime within the past 12 months and 1,000 subscribers. The revenue wasn't much but it was good to get some revenue from the little effort made in creating some videos. Unfortunately, my channel did not meet the subscriber threshold though watch time was alright. So, as per the new rules, monetization was set to be disabled. Read more »

How to reset Drupal 8 administrator password using phpMyAdmin?

This post describes in brief the steps to reset the Drupal 8  administrator password in case you forget them. Writing down passwords are a big no no, and no matter how hard we try to remember passwords, sometimes, we may miss it, especially if you have various different password for different systems. And forgetting passwords also usually happens on development systems when you set some dummy or random passwords, phuff!, you no longer remember them. In this post, we shall see how to reset Drupal admin user password easily from phpMyAdmin.  Read more »

How to create Taxonomy term jump menu using Views in Drupal 7?

We all know Drupal uses Taxonomies - which consists of Vocabularies and Terms. Each taxonomy terms have taxonomy pages which lists all the articles tagged with that taxonomy term. Drupal Views has "Jump Menu" as Display Format, using which we can built "Jump Menu" consisting of taxonomy terms which when clicked will take use to the taxonomy term page. There is no need of installing additional modules to create Jump Lists or Jump Menu. In this example, we shall see how to build Jump Menu of Taxonomy Terms using Views as show below: Read more »

How to resolve Drupal unable to send email - contact the site administrator?

In earlier versions of Drupal or for that matter even WordPress, the site could send email notifications easily using the PHP mail function. However, most hosts have disabled the default mail function due to security and vulnerability reasons. Therefore, emails will not go. This is not a Drupal issue as the same  issue we see on WordPress as well. In this post, we shall discuss how to let Drupal site send out emails using a third party module. Read more »

Drupal 8 Tips: Display only one image from multifield image on teaser

On Drupal 8, there is a useful feature in Views Module (now in Core) settings called " Multiple field settings " with which we can  display only one image from multifield image on teaser. As seen in the image above, each of the content has multiple images but only one is displayed in the teasers. Read more »

How to receive emails from website using contact forms?

Contact Forms are great to let website visitors contact you for any queries or for specific purpose. Contact Forms are found on most websites nowadays. When we build a website, we usually include a “Contact form" on the website for users to contact us. Once we buy a domain and hosting services from a service provider to host the website, we also usually get email address along with it. And it looks professional to have emails with the website domain name instead of using internet email such as gmail or Yahoo mail. In this post, we shall see how to setup Contact Form and how to receive emails sent from the website. Read more »

How to download a website from live server to development local server?

I n this post, we shall see how to download a website from live server to development local computer. I will be using a Drupal website as an example. On the local machine, I am running XAMPP stack on Windows. But the process would generally be the same for any other CMS or website for that matter. If you are looking for how to move or upload a website from local development computer to a live production server, following the steps here. Read more »

How to add a site hit/visit counter to Drupal website?

Looking for site hit counters to add to your Drupal website? Have you tired out some modules already? Some feel that there is no need to add site hit counters while some feel they should add. It's all up to you. Many websites still do. And though there are other ways to monitor site visits such as via Google Analytics. But placing a site visit counter could let us know if there has been any hits right from the page instead of using another service. In this post, we shall see how to add site hit counters to Drupal website easily. Read more »

How to add AddThis Social Media sharing tools to Drupal site?

I f you own a blog or website, Social Media sharing tools are must-have these days as one cannot ignore tons of users on Social Media. Most internet users nowadays have Social Media account be it Facebook, Google Plus, Twitter or any other social media platforms. And as a blogger or owners of websites, we cannot ignore the fact that our visitors may be willing to share content from our website and blog to Social Media platforms. So, if we place Social Media sharing tools on our blogs or websites for users to use, it is free promotion for publishers. There are tons of potential for traffic through Social Media platforms. So it is very important that Social Media tools are added to websites and blogs. Read more »

How To Disable Drupal "Create New Account" Link or Tab If Using Profile2 Registration Path ?

T he default Drupal login page at /user/login shows three tabs - Login, Create New Account and Request Password. Using the tabs, a visitor can either login, create a new account or request password. If visitors cannot create accounts on the Drupal website themselves, then the "Create new account" link or tab can be disabled easily from Drupal administration. But when using Profile2 and Profile2 Registration path, the Drupal default "user/register" path lies redundant. In this post, we shall see how to disable the "Create new account" tab from the default user login page. Read more »

Drupal Tips - How to redirect user to Drupal frontpage after login

Drupal usually redirects a user after login to the account information page. But if you would like users to redirect to the Drupal Frontpage after login, the this post is just about that. In this Drupal Tips , we shall discuss how to redirect user to Drupal Frontpage after login.   Read more »

How to create sliders in Drupal 7 using Views Slideshow?

S liders 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 »

Drupal: How To Redirect Users to Front Page Based on Different User Role?

T here 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 »

How to fix Drupal issue: “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 »

How to reset Drupal admin user password easily from phpMyAdmin?

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 th...

How to install and uninstall a module in Drupal CMS?

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 »