A Gmail Trick To Test Drupal Roles

When testing different user roles in Drupal, there is a handy trick that leverages Gmail's ability to pass information in via your email address. For example, if your Gmail email address is "fakeemail@gmail.com" you can pass additional information by adding a plus sign before the "@" and the additional information after the plus sign. For example, "fakeemail+extrainfo@gmail.com". When creating test users with different roles, the role can be specified in the email address using this technique. This allows you to create the roles without having to register new email accounts and allows you to see what email a role's user receives.

7 comments on A Gmail Trick To Test Drupal Roles

  1. صور (not verified)
    Thu, 2010-07-08 18:17

    what a nice a helpy trick good work bro

  2. mens pyjamas (not verified)
    Sun, 2010-04-25 06:59

    hey this is a very usfull tip concerning gmail and i will deffinatly implament this strategy in the near future thank.

  3. web consultant Adelaide (not verified)
    Sat, 2010-01-30 07:14
  4. Anonymous (not verified)
    Tue, 2009-10-13 22:35

    This beautiful and informative article, thank you very much. Use this page to your friend told you. I am constantly followed. To receive more information about this topic the following internet sites can follow.
    canlı tv, canlı tv izle, canlı tv seyret, canlı tv izleme, tv izle, kanal d izle, TJK TV, canlı atyarışı, Show TV izle, TRT 1 izle, TRT 2 izle, TRT 3 izle, TRT 4 izle, TRT 6 izle, Star TV izle, ATV izle, Samanyolu TV izle, KANAL 7 izle, NTV izle, Cine 5 izle, Kanal 1 izle, Yumurcak TV, tv8 izle, Samanyolu Haber,

  5. Anonymous (not verified)
    Tue, 2009-10-13 22:34

    Descargar programas Gratis, Download de programas e jogos, Téléchargement gratuit de logiciels, Free software downloads and reviews, Free Driver Downloads, Kostenlose Software-Downloads, Download gratis di programmi, yeni programlar, canlı tv, isim anlamları, şarkı sözleri, yemek tarifleri, magazin, rüya tabirleri, fıkra, yeni oyunlar, video izle, fragman, New releases, Most popular, Free software, All Software, Audio & Video, Drivers Update, Most Popular, All Drivers, Displays, Bios, TrafMeter 8.4, iPod Winamp Support Plugin 3.05, QuickRun 3.12 build 944, Musaic Box, NetVideoHunter 0.4.2, Luminous Wallpapers, Novelty 0.7.13, Shoutcast Server DNAS 1.9.5, SoundBase 2008.3.28, PECompact 2.82, BigJig 8.07, All Converter 6.0.2, ObjectDock 1.9, AppRemover RC1, PicaLoader 1.62, Money Manager, Bytessence Registry Cleaner, Task Coach Portable, Winverif, WMV to AVI MPEG WMV VCD SVCD DVD Converter, Process Monitor, Google Earth, Opera, Yahoo Messenger, Mario Forever, CleanMyPC Popup Blocker, Gelen - Giden Evrak Takibi, Wave To Text, Türkiyem, Nova Dental 2007 3D, Kanal D, Klas TV, TJK TV, Kanal A, TRT 2, Kralların Adası, Hot shots, Stil Kız 2, Hacker Kız, Jenga, Hadise İnanılmaz Frikikler, Amasya - Suluova Görüntüleri, Kurtlar Vadisi'nin Cenderesi ROCK oldu , Asi&Demir-Bir Nefes, Adana Aladağ Kapuzbaşı Şelaleri, GÜLSE BİRSEL’DEN SİNEMA FİLMİ, POPSTAR MEHTAP'IN İDDİASI!, YENİ AVRUPA YAKASI GELİYOR!, GAMZE ÖZÇELİK'İN TECAVÜZ DAVASI, MİRKELAM'I SİNİRLENDİREN OLAY NE?, Oobermind (2010), Ölümcül Tuzak (The Hurt Locker) (2009), The Boy in the Striped Pyjamas (2008), Yaprak Dökümü 125. Bölüm Fragmanı, Der Baader Meinhof Komplex (2008),

  6. adel_ava (not verified)
    Mon, 2009-10-12 06:57

    Importing Users from one Drupal site to another Drupal site seems like it should be a lot easer than it is. After all, a basic drupal user account is really just a row in the `users` table, and you could theoretically just copy that row from the old database to the new one. Well, on our site, we had implemented some actions that take place when a new user registers. URL aliases got created for the user account page, as well as a separate alias for the user edit page. Roles were automatically assigned (roles that did not exist on the old site). 70-642 In short, we needed everything to happen on the new site just as if that user had just registered.
    So we looped through each user row in the old site's database, and called the Drupal user_save() function on it to create the new users. This atomatically triggered every event that was supposed to take place when a new user registered. There was just one hitch... 1Y0-A05 all the users were assigned new user id's (UID) when they were saved! User ID's had to be kept from the old site to the new one. Not only does it make importing comments and nodes much easier, but it can be important for SEO and bookmarks. If your user knows his profile is like that link to still work on the new site. So how did we manage to create brand new users, EX0-101 but keep the user id the same? We fool Drupal's sequences table into automatically assigning the same uid to the new user. Just before the call to user_save(), we execute this query:

  7. Ximo (not verified)
    Mon, 2008-05-19 13:27

    Damn nice tip! I had no idea Gmail allows this. Very handy - thanks :)