Skip directly to content

Display user email on the user profile view page to administrator users

on Thu, 05/09/2013 - 05:49

 

Recently working with administrator account i encountered a problem. When i visit the profile of other user, i was not able to see the email id of the registered user.
 
To view the user email id either i have to goto the user profile and then click "Edit" tab for that account that will show the account for the user.
 
Now i wanted to show the email id of the register user to be displayed when administrator views the profile.
 
After little bit googling  i found a hook that can alter the view of the user profile
As we can see the description of  hook_user_view() this hook is called
Tags: 

Cool trivia about chrome extension ids

on Mon, 04/15/2013 - 06:02

Have you ever wondered that a Chrome Extension ID is basically something like "pjkljhegncpnkpknbcohdijeoejaedia", a 32 long alphabetic characters identifier that uniquely identify a Chrome Extension.

At the very beginning of Chrome though, this identifier could also contain some numbers. And in some certain cases, it could contain only numbers. Ok... what's the issue here?
As a matter of fact, it turned out that Chrome would consider the full-numeric Chrome Extension ID as an IP address.
Instead of tweaking the net stack, Google Chrome Team decided to use [a-p] encoding instead of [0-9a-f].

Pi's Lullaby

on Sun, 04/14/2013 - 05:31

 

Lullaby of PI from the Movie Life of Pi

Oh my love
Oh the delight of my eyes


would you not sleep my love?


are you the peacock or the plumage of the peacock?
are you the cuckoo or the cry of the cuckoo?
are you the moon or the light of the moon?
are you the eyelashes, or the dream?

are you the flower or the nectar?

are you the fruit or the sweetness?

Tags: 

Transform drupal search result page to infinite scroller

on Tue, 04/09/2013 - 08:58

 

Hello,
If you want to transform pager of any page to infinite scroller you can do it using infinite scroll javascript.
To set it on any page, you will need a couple of steps:
I have transformed the search result page to infinite scroller.
For detail instructions you can follow this guide on drupal.org(http://drupal.org/node/1473558)
 
1) Download https://github.com/desandro/imagesloaded (jquery.imagesloaded.min.js) place it in your theme folder YOURTHEME/js
This will make sure all images are loaded before activate the infinite scroll.
 
2) Download
Tags: 

Pages