Re: Getting uid of current profile page

Jørn Fauske <[email protected]>
Newsgroups gmane.comp.php.drupal.devel
Message-ID <CAK95nYbdpE9DH37P2Yw0UZeG1GGkqvEERDGDwfdMdt1sfeiAzw@mail.gmail.com>
http://api.drupal.org/api/drupal/modules!user!user-profile.tpl.php/7
suggests you could check the content of $user_profile

--Jørn

On Fri, Mar 9, 2012 at 1:46 PM, Andreas Laesser
<[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi @all
>
> Lets assume, that i want to something like:
>
>  <?php
>  $currentProfileUser="Here happens some magic"
>
>  print("<H3> $currentProfileUser is Member of ...</H3>");
>  ?>
>
> in the file: /drupal/modules/user/user-profile.tpl.php
>
> Can someone provide my some ideas how to get the uid from the current
> user profile page? I do not need the uid from the logged in viewing
> user, i need the uid from the user displayed at the current profile page.
>
>
> Thanks a lot for help!
> regards Andreas
>
> - --
> =========================================================================
>        _____________
>       / ___________/    Andreas Laesser
>      / //_// /____/     Signal Proc.& Speech Communication Lab.
>   __/ /___/ / __        Graz University of Technology
>  /___//____//___/        Inffeldgasse 16c/EG | A-8010 Graz | Austria
>
> http://www.spsc.tugraz.at Tel: +43 (0)316 873 -4443 Fax: DW 104439
> =========================================================================
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAk9Z+7QACgkQ1nmbrmNF2lN2bQCfa5kiat9cXkmiSbs1KEcX7NEi
> 4KYAoIRQm8l2z7lepHoCbs+FisMmK/zp
> =xAq1
> -----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.