How to automatically add watermarks to uploaded images in Drupal
Drupal is a powerful content management system (CMS) that allows users to create and manage websites with ease. One of the features that make Drupal popular among users is its flexibility and extensibility. Drupal's module system allows users to add functionalities to their websites, including automatic watermarking of uploaded images.
If you are making photos and publicizing them to the internet - sooner or later you will find that you want to protect them somehow.
Protect yourself from people stealing your artwork and re-publishing pictures in other places. One way to protect images is to add watermarks. Well, it doesn't mean someone still won't steal your pictures, but at least your…
Image hover effects - how to change background on mouse over
Today I faced again some interesting thing to create - on hover image to change the background and display text over itHere is how it looks:On the left side, you can see the default image, while on the right side with mouse over. To achieve such behavior in Drupal is pretty simple, a little bit CSS and you are done.Here is my view with div tags and Drupal fields:<div class="image-hover">
[field_images]
<span class="image-overlay ">Read Full Article</span>
</div>
And here is CSS:.image-hover {
display: inline-block;
position: relative;
background: #000;
line-height: 0px;
}
#image-hover:hover img {
opacity:0.3;
filter:alpha(opacity=30);
}
.image-hover span.image-…
Drupal pathauto + transliteration
Are you writing in different language than English, languages like Russian, Greek, Georgian, Hebrew or maybe Latvian? You find it's not attractive URL generated? In this article you will learn how to fix this using Drupal CMS and a neat module - Transliteration.
Take a look at these screenshots:
Here is Latvian URL in Chrome:
Chrome handles special characters nicely.
The same URL in Mozilla Firefox:
First problems detected - special characters have been converted to %C%4 - not nice.
And here is IE:
Yes, IE cannot handle them either,
The good news are - the URL will be shown nice in Google search in all browsers: Take a look at this screen made on IE.
In case you are …
Drupal: Sending Confirmation Emails from Your Webform
Today, I encountered a problem that at first seemed like a pain, but in the end, turned out to be simpler than I thought. I needed to send a confirmation email to the submitter of a webform, letting them know that their email had been received, along with some plain text instructions.
A while back, I wrote about how to add a contact form to Drupal, and today I want to share with you how to send a confirmation email to the submitter.
This is the screenshot for webform I have on my site. As you can see, I have a field called - Your email. Now if we go to E-mails tab, we can add some componet to send confirmation mesagge to value of email field:
Click next to Component value, and choose…
How To Upgrade Drupal 6 to Drupal 7: Step by Step
Before proceeding with the upgrade, it's important to make a backup of your Drupal 6 site. This includes both the database and the files. This will ensure that you have a restore point in case anything goes wrong during the upgrade process.
Once you have made a backup, it's time to put your Drupal 6 site into maintenance mode. This will ensure that no users can access the site while you are upgrading. To do this, go to the site maintenance page (admin/settings/site-maintenance), select "Off-line" and save the configuration. If you have defined a custom maintenance theme in your settings.php file, it is recommended to comment it out before proceeding.
Next, disable all non-core modules.…
Configuring Nginx to Display 404 Page for Unconfigured Domains and Server IP Address
In today's digital age, it is crucial for website owners to have a properly configured web server.This not only ensures a smooth and seamless user experience but also protects the website from potential security threats.One common issue that website owners face is incorrectly indexed links in search engines like Google. In this article, we will provide a simple guide on how to configure Nginx to display a 404 page for unconfigured domains and your server's IP address.The first step in this process is to create a dummy or default domain folder. This folder will serve as a redirect for all incorrect requests made to the website. To create this folder, open the terminal and enter the following…
Improve User Experience with Image Hover Effects for Drupal Thumbnail Images
Drupal is a powerful and flexible content management system that enables you to create visually appealing and engaging websites. One way to enhance the visual impact of your Drupal site is to add image hover effects to your thumbnails.
In this article, we'll explore how to use Drupal to create image hover effects for thumbnails.
Step 1: Install and Configure the Image Hover Effects Module
To create image hover effects for your Drupal thumbnails, you'll need to install and configure the Image Hover Effects module. This module allows you to apply a variety of hover effects to your images, including zoom, rotate, flip, and more.
Once you've installed the module, you can configure it by…
Dauphinoise potatoes
Time by time, I like to experiment with food preparation, this time I decided to make a Dauphinoise potato, inspired by BBC Good Food recipe.
As it might happen, it happened this time as well - I didn't stick to BBC food preparation methodology.
What did I do?
I sliced potatoes, made a bechamel sauce. Took a pan, made the first layer with bechamel sauce, few rows with sliced potatoes, again bechamel sauce, salt, and pepper, again sliced potatoes. Actually kinda a lasagna from potatoes, right?
Baked for about 1 hour at 200° C... at the end added cheese for toppings.
I liked it. Good with some meatballs.
Display YouTube videos on Drupal site with YouTube field module
Recently I started a new topic series - documentaries, where I publish documentaries I have watched and recommend to watch others. I write a brief description of what each documentary is, and then I embed a YouTube link to show a video on my blog.
How To Embed YouTube video in Drupal 8 (CKEDITOR)
But lately I started to think of creating my own Screen-casts, and the idea of embedding a video on content didn't satisfy me anymore.
What I wanted - to populate a video in the field, so later by using views I can display video on top of content, not in the content:
To achieve this, I just needed to add one small module and create a new view.
Download YouTube module…
Upgrading Your Drupal 7 Site: Tips and Tricks for a Smooth Transition (Minor Upgrade)
Upgrading a website can be a daunting task, especially if you're not familiar with the process. But upgrading your Drupal site is necessary for security, bug fixes, and new features. In this article, I'll be discussing the process of upgrading a Drupal 7.10 site to the newest version of Drupal, a minor upgrade.
Before you start, it's important to understand the difference between a major and a minor upgrade. A major upgrade, such as upgrading from Drupal 6 to Drupal 7, involves significant changes in the codebase and can result in breaking your site. A minor upgrade, on the other hand, is a more straightforward process that brings small updates and bug fixes to your site. In this article,…
Georgian Fishing tours: Jandari lake
I first met Giorgi from Georgian fishing tours back at the end of 2013, when we did a fishing tour at Jandari lake organized by his company. I noticed a free fishing tour offer on their Facebook page. I claimed that offer and I was the lucky to actually get a free fishing tour. Make sure you follow their Facebook page as well - who knows, maybe more such offers will follow. If not - price for such tours are not very expensive and is worth of every tetri spent.So, that's how I get familiar with Girogi and his friend Temo from Georgian Fishing tours. Couple of days later a fishing tour to Jandari lake near border of Azerbaijan was organized.Girogi …
Filtering Popular Posts on Drupal: How to Filter by Time Frame with Views
In a previous tutorial, I showed how to use Views to filter popular posts on a Drupal site. Today, I will demonstrate how to filter popular posts within a specific time frame, such as a week or a month.
Note that this tutorial will only apply filters to the most viewed nodes based on their publishing date, not to all nodes within a certain time frame.
If you haven't already set up a popular blog post View, please refer to the link above and follow the steps to create your View.
To begin, open your popular blog post View and add a new filter under the "Filter" section. Select "Content: Post date" and choose "Operator: is between" in the filter settings.
In the "Min" field, enter the time…
Improve User Experience with AJAX-Powered 'Load More' Pagination for Drupal Views
In Drupal, pagination is a common feature that allows website visitors to browse through a long list of content, such as blog posts or products, by breaking them up into smaller, more manageable pages. By default, Drupal offers a built-in pagination system that works well for most use cases. However, as your website grows, you may find that your visitors are spending a lot of time waiting for pages to load, which can negatively impact user experience.
To solve this problem, you can use AJAX (Asynchronous JavaScript and XML) to implement a "Load More" button that loads additional content without having to refresh the page.
In this article, we'll explore how to implement an AJAX-powered "…
How to upgrade Drupal 6 to Drupal 7
Drupal 6 was released in 2008 and Drupal 7 was released in 2011. While Drupal 6 is still used by some websites, it is important to upgrade to Drupal 7 as it provides improved performance, security updates, and new features.
This article will guide you through the preparation process for upgrading Drupal 6 to Drupal 7.
Backup your website
Before making any changes, it is important to create a backup of your website. This will ensure that you can restore your website if something goes wrong during the upgrade process. You can create a backup by using a backup module or by manually copying your website files and database.
Check the system requirements
Drupal 7 has higher…
Few shots from Tbilisi Cheese Festival
In these days the second Cheese Festival was held in Tbilisi Open Air Museum. My mom was visiting me in Georgia, and today her plane back home was. We decided to spend last hours together. The weather was not so great. We didn't found much cheese, but we spent a lovely time.Here are few shots I captured with my old Sony DSC camera and three years later post-processed using Adobe Lightroom. European and Georgian cowI find a lot of symbolism in picture above.The Fall has comeCheese promoters and girl with a basketSecond Tbilisi Cheese FestivalTbilisi Open Air Museum
Few shots from Samgori, Tbilisi
Samgori is a district in Tbilisi, which is connected to the city center by the metro. Seems that the Samgori neighborhood is rarely visited by tourists
I first visited this part of Tbilisi back in August/September 2013. A lot has changed ever since, and now I considering investing in Samgori real estate market, as the property prices stile are among the lowest in the city
A place to grow
Georgia's Parliament: Moving Back to Tbilisi?
In 2012, the Parliament of Georgia was relocated from Tbilisi to Kutaisi by then-president Mikheil Saakashvili.
The move was meant to give a boost to the city of Kutaisi. However, after the Parliament elections in 2012, which were won by the Georgian Dream coalition, plans were made to move the Parliament back to Tbilisi due to communication issues with other government institutions and high travel expenses.
As an impartial observer, I have always seen the potential benefits of moving the Parliament to Kutaisi. The city has also gained a new Parliament building and an international airport, which seemed like positive developments.
The Georgian Parliament building now is located in…
Drupal 7: How to Show a Custom Image When No Image is Provided
In Drupal 7, managing images can be quite challenging, especially when the default image is not provided. The platform provides an option to display a default image under "manage fields," but this approach can be limiting as the same default image will be displayed wherever the image field is used.
To overcome this limitation, you can follow these steps:
Disable the default image option under the image field settings.
Create a view that contains the image and filter the results you want to display.
Under the image settings, open the "No result behavior" section and add the path to your custom image.
With these steps, you can have complete control over the image display, and the…
Autumn in Borjomi
Borjomi altogether with Samtskhe - Javakheti region are among my Top destinations in Republic of Georgia. I have spent here countless days and nights. One of the best times to head here definitely is Summer, when temperature in nations capital Tbilisi rises above +40 Celsius, a lazy rest on the rocks in Borjomula river is like a safe haven. See Borjomi trip.
You can explore Borjomi either doing rafting on Mtkvari river (See: Rafting in Georgia - Khertvisi - Aspindza - Borjomi) or just by heading here by local transport called - marshrutka. See Tbilisi - Borjomi Transfer by Marshrutka (Minibus).
Borjomi is a paradise for hikers, there are many cool hiking…
How to Automatically Publish Future Posts in Drupal with Views Module
Drupal is a popular content management system that allows users to easily create and manage their websites. One of the features that Drupal offers is the ability to schedule posts for future publication.
This can be especially useful for bloggers and content creators who want to plan and publish their content in a systematic way. However, if you are using Drupal, you may find that scheduling posts can be a time-consuming process.
In this article, we will explain how you can use the Views module to automate the process of scheduling posts in Drupal.
One of the reasons why someone may want to schedule posts in advance is to plan their content publishing schedule. For example, if you write…