Blog Archive: December 2013
How to automatically add watermarks to uploaded images in Drupal
| Drupal Development | 66 seen
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 watermark will be on.
I have found one solution in Drupal 7, using the ImageCache action module:
As you can see on picture above - I have added simple watermark on bottom right corner. And it's done with Drupal Image Cache actions module.
- Download ImageCache actions module
- Extract to sites/all/modules
- Enable Imagecache Canvas Actions
Now go to your image style settings (admin/config/media/image-…
Facebook advertising: How to promote your page and reach a wider audience
| Blogging | 3 seen
Facebook advertising is a powerful tool for promoting your Facebook page and reaching a wider audience. With more than 2 billion monthly active users, Facebook provides businesses and organizations with an unparalleled opportunity to connect with potential customers and promote their brand. In this article, we'll explore the basics of Facebook advertising and provide tips for how to use it to promote your page and reach a wider audience.
The first step in promoting your Facebook page is to define your target audience. This involves identifying the demographics, interests, and behaviors of the people you want to reach. Facebook offers a range of targeting options, including age, gender, location, interests, and more. By targeting your ads to a specific audience, you can increase the chances that your message will be seen by people who are likely to be interested in your brand.
Facebook offers a variety of ad formats, including image, video, carousel, and more. The type of ad you choose will depend on your goals and the content you want to promote. For…
Tbilisi First Snow
| Living in Georgia | 9 seen
First snow appeared today on Tbilisi streets. Made some random photography of it.
Update: I have created much better quality Tbilisi winter photos. Read more: Tbilisi - Fairyland in Winter
Snow in Tbilisi
Its snowing on Tamar Mephe street
Police patrol in Tbilisi streets
Tbilisi Railway Station
How to configure postmarkapp to work with Drupal webform
| Drupal Development | 15 seen
If you are running your site under Apache then most probably your server will be auto configured with mail send module.
But if you are running, lets say Ngnix without mail send function enabled, then you might consider some options to send e-mails from your site. And one of this options is to use Postmarkapp.com service.
Today I'll show how to configure your Drupal powered site to deliver e-mails using postmarkapp and few handy modules.
At first - go to the postmarkapp.com and sign up for a new user (if you haven't done that already)
N.B. Postmarkapp.com wont allow to use major public domain names like gmail.com, so use your custom domain name instead.
Once you have been registered, you'll see screen like this:
Click on the blue button, suggesting to Setup a New Server
Enter the name of your new server and click on Next Step
Screen with deployment actions will appear, and at the result you should see congratulations, that your new server has been created. Now you should add some sender signatures (without sender…
Most visited Georgian websites (2013)
| Living in Georgia | 127 seen
After living in Georgia for almost 2 and a half years I still haven't found any reliable website traffic analyzer, except Alexa and local top.ge statistics.
Today I'll try to put both of them in one pot, and make some analysis.
According to Alexa:
Rank Name Alexa rank 1 forum.ge 9 2 ambebi.ge 12 3 myvideo.ge 14 4 myauto.ge 18 5 adjarabet.com 20 6 myhit.ge 23 7 intermedia.ge 24 8 top.ge 26 9 palitratv.ge 29 10 interpressnews.ge 30According to top.ge
Rank Name top.ge rank 1 myvideo.ge 1 2 ambebi.ge 2 3 saitebi.ge 3 4 amindi.ge 4 5 adjarabet.com 5 6 myauto.ge 6 7 myhit.ge 7 8 interpressnews.ge 8 9 forum.ge 9 19 magtifun.ge 10Now let's take those websites, we see on both tables and put on one, just those who overlap:…
The Mentalist
| Worth to Watch | 15 seen
The Mentalist is an American drama television series that ran from September 23, 2008, until February 18, 2015, broadcasting 151 episodes over seven seasons, on CBS.
The show was created by Bruno Heller, who is also its executive producer. The show follows former "psychic" Patrick Jane (Simon Baker), who is a consultant to the California Bureau of Investigation (CBI), using the highly developed observational skills he previously employed to "read" people's minds.
The series follows Patrick Jane, an independent consultant for the California Bureau of Investigation (CBI) based in Sacramento, California. Although not an officer of the law, he uses his skills from his former career as a successful, yet admittedly fraudulent, psychic medium to help a team of CBI agents solve murders. The real reason for Jane's involvement with law enforcement is to track down the serial killer known as Red John, who was responsible for the brutal murders of his wife, Angela Ruskin Jane, and his daughter, Charlotte Anne Jane.
Found these TV-series on IMDB. Since the rating was 8.0, decided to…
Image hover effects - how to change background on mouse over
| Drupal Development | 41 seen
Today I faced again some interesting thing to create - on hover image to change the background and display text over it
Here 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-overlay { display: table-cell; position: absolute; z-index: 3; background: transparent; width: 100%; top: 50%; left: 0px; color: transparent; text-align: center; vertical-align: center; margin-top: -23px; line-height: 20px; } .image-hover:hover span.image-overlay { color:#fff; text-shadow: 0px 0px 1px black; }Easy, right?
Drupal pathauto + transliteration
| Drupal Development | 59 seen
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 concerned taht your URL looks ugly on Google, don't - everything is fine. But if you still find it unattractive how your language is outputted in Drupal install Drupal Transliteration module.
- Download Transliteration module
- Extract to sites/all/modules
- Enable
After you have enabled transliteration module…
Building a Drupal site from scratch - Complete series
| Drupal Development | 10 seen
<p>Some time has passed away, since I started my tutorial how to build a Drupal site from scratch. I'm making this post to list all series</p><ul><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-1-planin… a Drupal site from scratch - part 1 - planing</a> </li><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-2-applyi… a Drupal site from scratch - part 2 - Applying a subtheme</a> </li><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-3-better… a Drupal site from scratch - part 3 - Better administration</a> </li><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-4-creati… a Drupal site from scratch - part 4 - Creating views</a> </li><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-5-custom… a Drupal site from scratch - part 5 - Custom fronpage</a> </li><li><a href="http://www.reinisfischer.com/building-drupal-site-scratch-part-6-workin… a…
Blog statistics November 2013
| Blogging | 6 seen
Second month, since I started this blog has passed away. As started on November, I'm sharing results of my blog statistics in month of November.
Top 10 posts according to Google Analytics:
- Estonia to catch up Scandinavia in next 10-15 years
- Armenia, then, now - future
- CIS, Baltics and Georgia GDP 2018
- Ukraine vs Poland by GDP 1990-2012
- Views lode more pager with Ajax for Drupal
- Will Ukraine sign Association agreement? Doubt that!
- Baltic's vs Caucasus by GDP 2012
- Blog statistics October 2013
- Drupal 7 override page.tpl.php for specific content type
- Drupal views archive page