Latest posts

Browse topics

Istanbul Sabiha Gokcen Airport

Istanbul Sabiha Gökçen International Airport  is located some 32 km southeast of the city center, airport serves as the hub for AnadoluJet and Pegasus Airlines.

The facility is named after Sabiha Gökçen, the adoptive daughter of Mustafa Kemal Atatürk and the first female fighter pilot in the world. Although Istanbul Airport, located 63 km (39 mi) west of the European side of Istanbul, is larger, Sabiha Gökçen is still one of the largest airports in the country.

I have been traveling via Sabiha Gokcen Airport several times flying in and out routes like Tbilisi, Trabzon, Izmir, Barcelona, and more. Most of the time flying Pegasus Airlines.

The airport was built because Atatürk International Airport (located on the European side) was not large enough to meet the booming passenger demands (both domestic and international).

When traveling to or from Sabiha Gocken airport see How to Get around Istanbul for cheap with this ride-sharing Taxi app

 

Drupal module: User Picture Field - A Brilliant Solution for Styling forms With Display Suite

Working with complex Drupal projects I'm always trying to escape many rewrites of existing Drupal built-in functionality.

This time I got a client's request to have a user edit form with two-level admin: One for username and password information - the second for custom user profile fields, like occupation, location, gender, etc.

At the start I said - well, let's use the Profile2 module, to handle this task, but soon I found there are bugs, and we all hate bugs, so I found a brilliant solution how to get rid of the Profile2 module, but to keep existing functionality.

Now arrived another problem - how to display the default Drupal user picture ($picture) using the Display suite module on two columns. Thing is, there are no problems to display a custom user image field with help of the Display suite, but there are problems to display the default picture field:

Found this little nice module after a couple of hours of investigating how to show the user picture next to comments. 

You might wonder - hell, what's wrong with you dude - Drupal has a built-in picture field for user profiles and it works on comment forms great.

Yes, you are right, Drupal does have a picture field for user profiles.

But it doesn't play nice in scenarios when you are using Display Suite to style your form - this field just doesn't exist in Display suite. So you cannot put this field in column "two" for example:

Take a look at this post to understand what I'm talking about: Drupal Display Suite Two Columns on User Edit Forms + Image Widget Default Image 

What I actually needed is to have a default user picture field enabled but with the option to style its display with help of the Display Suite module, and here comes the User Picture Field module:

This module allows you to add an image field to a user, and show it on the user registration form after the user registers an account, this module will use the fid that uploads by image field as the user picture's fid.

Usage:

1. Add an image field to a user, for example, "field_user_avatar"

2. config this field, and make it show on the user register form.

3. install this module, and navigate to "admin/config/people/user_picture_field", here you can config the "Machine name of source field that used as user picture"

When a user registers an account, he/she uploads an image through the image field "field_user_avatar", this image will be used as the user's picture(avatar).

profile2:

Now this module support Profile2, You must config 'Machine name of source bundle' and 'Machine name of source field that used as user picture'.

Author:

Howard Ge

The author can be contacted for paid customizations of this module as well as Drupal consulting and development.

Now - once you have this module installed configure it according to description, keep using Display Suite and everything should work as needed.

P.S. This little nice module solved another problem I'm facing by using Simple FB connect module to allow Facebook users to login in Drupal site.

Simple FB Connect uses default picture field as well for importing a Facebook users picture.

So by having default profile picture field, but with a little bit of extended functionality.

I can only confirm - avoid of rewriting Drupal default behaviour - in most cases you will struck to extend functionality. Look for simple "bridge" connectors.

In case you are looking for Drupal website developer for your project, look no more - hire me. 

Shota Rustaveli Tbilisi International Airport

Shota Rustaveli Tbilisi International Airport is the busiest international airport in Georgia, located 17 km (11 mi) southeast of capital Tbilisi. 

Tbilisi Airport is home to Georgian flag carrier Georgian Airways and MyWay Airlines. The airport is served by approximately 30 airlines, mainly from Europe, the Middle East, and Central Asia serving roughly 30 destinations out of Tbilisi. 

Due to the increasing popularity of Georgia and the city of Tbilisi as a tourist destination, the number of travelers grew since 2010 from 1 million to almost 4 million until the outbreak of the coronavirus pandemic. 

Tbilisi International Airport is operated by TAV Urban Georgia since October 2005 which concession has been extended until at least 2027.

 In Georgia, the company also operates Batumi Airport for a 20-year term since May 2007. TAV Airports Holding, which owns 76% shares in Tbilisi airport operator TAV Urban Georgia, agreed with the Georgian state-owned United Airports of Georgia to reconstruct and extend the unused runway, one of the two runways at the Tbilisi airport, in line with ICAO standards to accept all type of aircraft, including the Boeing 747-8, Airbus A380-800, Antonov An-225 and Antonov An-124. A new F Code taxiway was also planned.

Dunkin Donuts and Wendys at Tbilisi airport

There are a few wine shops, restaurants and souvenir shops available at Tbilisi airport. 

Tbilisi airport mainly serves destinations in Europe and the Middle East.

Tbilisi airport

The George W. Bush Avenue (Kakheti Highway) leads from the airport to the center of Tbilisi. Taxi, Public bus and even a train is available to travel to and from Tbilisi internation airpport. A train service is available as well opposite the exit of the airport building. 

Planing a Trip to Spain: How to Get a Prepaid SIM Card in Spain

This weekend I'm going to my first ever trip to Spain. One of the essential things I'll need there is an internet connection. To get a internet I have few options  - to chase for some FREE WiFi spots, to connect to internet at hotel.. well that's nice - but I need an internet connection all the time. I must be covered!

Do I really must be covered?

Yes, I really must be covered even on my holiday trips. Why? I'm blogging every day - actually it's already second year for me doing such a lame thing as blogging each and every day.

So I cannot to lay on luck - that I will get some free internet even in Spain. 

So I started to look for my options to get a pre-paid SIM card with internet on it in Spain.

For a starter - I found an article on Wikipedia with mobile operators in Spain:

  • Movistar
  • Vodafone
  • Orange
  • Yoigo

Now I started to investigate some option on websites of those companies:

Movistar:

Movistar is the major Spanish mobile phone operator owned by Telefónica S.A. operating in Spain and in many Latin American countries. It is the largest carrier in Spain with 22 million customers (cellphone services only) and 41.58% of market share. Its principal competitor in Latin America is America Movil. It offers GSM 900/1800 MHz (Spain) 850/1900 MHz (America) (2G), UMTS 900/2100 MHz (Spain) 850/900/1900/2100 MHz (America) (3G) HSDPA (3.5G) and LTE 2600 MHz (Spain) 1700/2600 MHz (America) (4G) services.

Couldn't open their website

Vodafone

Vodafone España, S.A.U. is a mobile telecommunications operator in Spain headquartered in Madrid, Madrid. The company was founded in 2000, as a result of the merger of the shares held by Vodafone Group and British Telecommunications plc in Airtel Móviles, S.A.
Vodafone (Vodafone ES) offers GSM900/1800 MHz (2G), UMTS (3G), HSDPA (3.5G) and (4G) LTE services in Spain, with a good coverage.

Well, Vodafone is a brand I'm familiar with. So headed to their website and started to look for some options - The website is in Spanish only, but with help of Google Translate find what I was looking for.

Best they have a separate page: Tourist in Spain - explaining everything in English:

With Vodafone in Spain, communicate easily while you are in Spain; thanks to our set of Prepaid Solutions ready to use, to talk and browse, without commitments

We always inform you:

  • When you have used up the 90% and 100% of your minutes and Megas
  • And before your tariff is renewed, in case that you need to top up.

If you used up your 900 MB and 60 minutes before the 30 days expiration, you can continue using your Smartphone with the following prices:

  • National calls 7,26 cent/min
  • International calls from 1,20 cent/min
  • National and international set up 30,25 cent
  • MB: You can carry on browsing with a slower speed

Orange

France Telecom España S.A.U., more commonly known by its trade name of Orange España, is a mobile network operator in Spain. It was previously known as Amena (pleasant in an amusing way in Spanish) until 2005, when it was bought by France Télécom (now Orange S.A.). 

Haves information in English - but didn't find such a cool offer like Vodafone does

http://en.orange.es/mobile-service-plans/?pst=1

Yoigo

Yoigo is the fourth mobile phone operator with a network of its own in Spain. They operate a UMTS/3G and 1800 band network, which at their launch in December 2006 had very limited UMTS (3G) coverage even in some of the largest cities. In places where there is no UMTS coverage, Yoigo users switch to national roaming using movistar's both GSM and 3G networks.

They offer some SIM cards - but didn't find any juicy offer

https://tienda.yoigo.com/selforder/solo-sim/micro-sim

 

In conclusion:

Seems Vodafone's Tourist in Spain offer, has cached me - I will definitely try to have this option before trying other options.

Now I just make sure there is a Vodafone stand at Barcelona Airport :)

P.S.

I while ago I created a post on how to get a prepaid Sim Card in Armenia, in case you are looking for SIM Card options in Armenia - read that post.

Drupal Simple FB connect + User Form Theming

Lately I have been busy with a project involving a lot of custom coding and programming (mainly because of existing complex web-design)

So at the finish line - there are still few things we must to finish - And one of them involves Facebook Login button to Drupal site.

See: Simple FB connect Drupal 8 Mapping custom fields from Facebook

There are plenty of modules offering such kind of behavior - but problem with those modules  - not always they are updated to the latest Facebook API versions. Speaking of what - ahhh - Facebook sets the rules, when to update and how to update their API - leaving developers to be forced to upgrade for newer versions of their API.

So a while ago I compared 3 Drupal modules offering Facebook connect - in that article I found following:

Simple FB connect seems the easiest one to install and setup:

Sounds like a great module - i actually installed and used it - didn't like  that couldn't find an easy way to implement Facebook connect button on Ajax Popup form, don't like the path for user linking - /user/simple-fb-connect
 
Damned, what a fool I was - you see my comments of that I couldn't find an easy way to implement Facebook connect button on Ajax Popup forms - well...
a few days latter working with other Drupal Modules I found they sucks even more - so I came back to this little great module - Simple FB connect - what does - what it says it does - it allows simple connect to Drupal site using Facebook account - nothing more, nothing less. I just works!
 
I will not dig in details of how to create a Facebook APP and how to connect it with Simple FB connect (Just read modules Readme.txt file) - but I'm going to show how you can add a self styled Facebook connect icon on Ajax Popup user login:
 
Facebook Connect on Popup form
Facebook Connect on Popup form
 
To get an image on form I needed:
  • Create a image and upload it to server
  • Theme user-login.tpl.php and user-register-form.tpl.php
To theme a user-login and user-register-form you will need to create a template.php file and add following code to it
<?php
function YOUR-THEME_theme() {
  $items = array();
  $items['user-login'] = array(
    'render element' => 'form',
    'path' => drupal_get_path('theme', 'YOUR-THEME') . '/templates',
    'template' => 'user_login',
    'preprocess functions' => array(
    'YOUR-THEME_preprocess_user_login'
    ),
  );
  $items['user_register_form'] = array(
    'render element' => 'form',
    'path' => drupal_get_path('theme', 'YOUR-THEME') . '/templates',
    'template' => 'user-register-form',
    'preprocess functions' => array(
    'YOUR-THEME_preprocess_user_register_form'
    ),
  );
  $items['user_pass'] = array(
    'render element' => 'form',
    'path' => drupal_get_path('theme', 'YOUR-THEME') . '/templates',
    'template' => 'user-pass',
    'preprocess functions' => array(
    'YOUR-THEME_preprocess_user_pass'
    ),
  );
  return $items;
}
?>
<?php
function YOUR-THEME_preprocess_user_login(&$vars) {
  $vars['intro_text'] = t('This is my awesome login form');
}
function YOUR-THEME_preprocess_user_register_form(&$vars) {
  $vars['intro_text'] = t('This is my super awesome reg form');
}
function YOUR-THEME_preprocess_user_pass(&$vars) {
  $vars['intro_text'] = t('This is my super awesome request new password form');
}
?>

Now, what this code does - it provides a custom tpl.php files where you can theme your login/register pages (works for popups as well).

Here are three functions - user-login, user-register-form and user-pass, so for each of them you must create a new files - user-login.tpl.php user-register-form.tpl.php and user-pass.tpl.php.

I'm actually interested just in two of them - login and register forms, so I'm not creating any user-pass.tpl.php page (for now)

Now the tricky part comes here - I found no problem to render user-login.tpl.php, but for some reason I haven't yet found to get this work on user-register-form.tpl.php

So for user-login.tpl.php add this code

<p><?php print $intro_text; ?></p>

<div class="fb_user-login-button-wrapper"><a href="/user/simple-fb-connect"><img src="source-to-image-file"/></a></div>

<div class="yourtheme-user-login-form-wrapper">
  <?php print drupal_render_children($form) ?>
</div>

Now it's just a matter of CSS to style your form! Enjoy!