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.
Showing posts with label Drupal Tips. Show all posts
Showing posts with label Drupal Tips. Show all posts
Monday, August 27, 2018
Sunday, December 10, 2017
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:
Thursday, November 16, 2017
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.
Monday, October 30, 2017
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.
Friday, June 30, 2017
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.
Saturday, June 3, 2017
How to download a website from live server to development local server?
In 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.
Wednesday, April 26, 2017
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.
Sunday, April 23, 2017
How to add AddThis Social Media sharing tools to Drupal site?
If 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.
Tuesday, April 4, 2017
How To Disable Drupal "Create New Account" Link or Tab If Using Profile2 Registration Path ?
The 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.
Monday, March 27, 2017
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.
Sunday, January 22, 2017
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.
Friday, January 13, 2017
Drupal: How To Redirect Users to Front Page Based on Different User Role?
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.
Thursday, December 1, 2016
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”.
Friday, November 18, 2016
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 the user.
Read more »
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.
Subscribe to:
Posts (Atom)
Google Search Consile Error - Submitted URL marked ‘noindex’
Sitemaps are important from SEO perspective. If you have installed the WordPress plugin Google XML Sitemaps , and you have submitted a link ...

-
F or those using Mi phones, you might as well be using Mi PC Suite to manage your phone from a computer using a USB cable. But lately, Mi P...
-
I f you are using OSCLASS CMS to run a classified ad website and you want to modify the published date of an ad listing, there is no option ...
-
Image Courtesy: Osclass Point If you manage Osclass website and are looking for free and useful plugins, then check out "Success Publis...