How to the user email in theme.php ? How to the user email in theme.php ?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

How to the user email in theme.php ?

Started by afg89, March 08, 2008, 04:42:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

afg89

Hey

I want to use Gravatar as avatar system and i wanted to know i could get the user email from mysql and echo in theme.php, which will in template.html.
EX:

theme.php

Welcome $useremail

avatar >>> http://www.gravatar.com/avatar.php?gravatar_id=$useremail


and in template.html

Welcome example@some.com

and avatar  http://www.gravatar.com/avatar.php?gravatar_id=example@some.com

Please Help me