Latest posts

Browse topics

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, we'll be focusing on the latter.

The first step in upgrading your Drupal 7.10 site to the newest version is to back up your entire Drupal system, including files and database. This is crucial in case something goes wrong during the upgrade process. You can use a backup module, such as Backup and Migrate, to create a backup of your site. Make sure to store the backup in a secure location, such as an external hard drive or cloud storage.

Once you have a backup of your site, it's time to upgrade. The process of upgrading a Drupal 7.10 site to the newest version of Drupal involves two steps: updating the codebase and updating the database.

To update the codebase, you can use the manual method or the drush method. The manual method involves downloading the latest version of Drupal from the official website and uploading it to your server. Then, you'll need to copy the settings.php file and the files directory from your old site to the new site. Finally, you'll need to run the update.php script to complete the upgrade.

The drush method is a more efficient way to upgrade your site, as it automates the process. If you have drush installed on your server, simply run the following command:

drush up drupal

This command will update your Drupal site to the newest version.

Once the codebase has been updated, it's time to update the database. To do this, you'll need to log into your site as an administrator and run the update.php script. This script will perform any necessary database updates, such as updating the schema and data structures.

It's important to note that the update.php script should only be run once. Running it multiple times can cause issues with your site.

After the update.php script has been completed, you'll need to clear the cache and check your site to make sure everything is working as expected. If you encounter any issues, it's important to address them immediately. You can use the backup you created earlier to restore your site if necessary.

In conclusion, upgrading your Drupal 7.10 site to the newest version of Drupal is a straightforward process that can bring many benefits to your site, including security, bug fixes, and new features. By following the steps outlined in this article, you can ensure a smooth upgrade process and avoid any potential issues. Remember to always back up your site before upgrading and to address any issues as soon as they arise.

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 arrived to our apartment at around 4AM in his 4x4 wheel Nissan car, he had prepared spinnings, nets, bait and all the rest what is necessary for a decent fishing tour, we just took a waterproof clothing, boots and some snacks.

We arrived on site about after an hour drive (which led us through Rustavi town). It was still dark and I had an option to capture sunrise over Jandari lake

Sunrise over Jandari lake

Sunrise over Jandari lake

I was limited to my old Sony DSC camera (bridge camera), which was still able about two years latter post - post - processed in Adobe Lightroom get me a decent exposures from here. See: Digital photography school 

Dozens of cows at Jandari lake

Dozens of cows at Jandari lake

From the left: Giorgi, author of this blog and other fishermen

From the left: Giorgi, author of this blog and other fishermen

I'm not addicted fisherman, so I don't know much about fishing actually, Giorgi was keen to give me a quick lesson on basics, like how to throw spinning correctly in the water and so on...

Fishermen boat in Jandari lake

Fishermen boat in Jandari lake

Author of this blog captured in action

Author of this blog captured in action

4x4 wheels

4x4 wheels 

To get here to Jandari lake, a 4x4 wheel is a must have. Georgian Fishing tours had that Nissan SUV car .

Water reflections on Jandari lake

Water reflections on Jandari lake

Author of this blog captured in action

Author of this blog captured in action

The bottom line

Cows, a lot of fish, homemade vodka (chacha) and plenty of great emotions. Our catch that day - about 8 kilos of fish (most of our catch was actually caught  by Girogi and his friend, we got the cath as a present - that's what passionate fisherman does - they catch the fishes, they don't eat them)

Thank's Giga and Temo for such a wonderful expierence!

Learn more about tours: Georgian Fishing Tours or Facebook

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 frame you want Drupal to filter, for example, if you want to filter posts from the last 10 days, enter "-10 days" as the offset. In the "Max" field, enter the current time to ensure that future posts are not included in the filter.

If you have any questions or issues with this process, please leave a comment below and I will be happy to assist you.

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 "Load More" pagination system in Drupal using the Views module.

Step 1: Install and Configure Views

Before we get started, you'll need to have the Views module installed on your Drupal site. Views is a powerful module that allows you to create custom queries for displaying content on your site. Once you have Views installed, you'll need to create a view that displays the content you want to paginate.

Step 2: Add "Load More" Button

In your view's "Pager" settings, you can choose the "Load more" option to enable the AJAX pager. This will add a "Load More" button to the bottom of the page, which, when clicked, will load the next set of results via AJAX.

Step 3: Customize AJAX Settings

The AJAX pager has a few settings that you can customize, including the text that appears on the "Load More" button and the number of items to load per page. You can also configure the pager to automatically load more content when the user scrolls to the bottom of the page, which is useful for creating a seamless user experience.

Step 4: Style the "Load More" Button

Finally, you can use CSS to style the "Load More" button to match your site's design. By default, the button will be a plain HTML link, but you can use CSS to add a background color, change the text color, and add a hover effect to make it more visually appealing.

Conclusion

By using AJAX to implement a "Load More" pagination system in Drupal, you can improve user experience by reducing page load times and allowing visitors to browse through your content more quickly and easily. With Views, the process is straightforward and customizable, making it a great option for Drupal site owners looking to optimize their site's pagination.

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.

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

  1. Check the system requirements

Drupal 7 has higher system requirements than Drupal 6. Before upgrading, check if your server meets the Drupal 7 system requirements. Make sure your server has the correct version of PHP, MySQL, and other required software.

  1. Update your modules and themes

Before upgrading to Drupal 7, it is important to update all of your modules and themes to their latest versions. This will ensure that your website is compatible with Drupal 7 and that you will not lose any functionality during the upgrade process. You can update your modules and themes by going to the Update Manager in Drupal 6.

  1. Check for customizations

If you have made customizations to your Drupal 6 website, you will need to check if they are compatible with Drupal 7. Customizations include custom modules, themes, and code changes. You may need to modify your customizations to work with Drupal 7 or find alternatives in Drupal 7.

  1. Test the upgrade

Before upgrading your live website, it is important to test the upgrade process on a development or staging environment. This will ensure that the upgrade process works correctly and that your website is compatible with Drupal 7. You can create a test environment by creating a copy of your website files and database and installing Drupal 7.

In conclusion, upgrading from Drupal 6 to Drupal 7 requires proper preparation to ensure a smooth upgrade process. Backup your website, check the system requirements, update your modules and themes, check for customizations, and test the upgrade on a development or staging environment. Following these steps will help you to successfully upgrade to Drupal 7 and take advantage of its improved performance, security, and features.

If you are looking to upgrade your Drupal website, I highly recommend considering DrupalTbilisi.com as your go-to resource. With our combination of technical expertise, community engagement, and commitment to excellence, we are well-positioned to help you take your Drupal website to the next level.