Accessing Commenter email in PHP

I'm trying to include gravatar images for anonymous commenters in my site's theme and I need to access commenter's email in my comment.php.tpl file.

I'd expect it to be something like <?php print $email; ?> but it's not. I'm guessing that the commenter email is not made as public as I'd like. Does anyone know if there's an easy way like I just described, or will I need to create a function in a template.php file, or what?

Thanks!

base_url in D7?

I've got a fresh install of 7.0 on an Apache server version1.3.42 (Unix), PHP 5.2.15, MySQL 5.0.91. mod_rewrite and PDO extensions both OK. I've got the following rewrite rule in public.html/.htaccess, the same one that I've been using for all of my D6 sites.

RewriteRule (.*) drupal/$1 [L]

All works fine until I change the $base_url in settings.php to just the top level domain (dropping the /drupal). At this point some odd things happen.

Modules for Drupal 7, when?

Hi,

I started using Drupal on my site a couple of days ago. I've never made websites before but Drupal seemed great and it is! Since Drupal 7 was launched I started using this version. Well now to my question..

Since Drupal 7 was launched not to long ago a lot of modules are still under development. Do you guys/girls know when modules will ready to use for Drupal 7? I mean more or less? Another month? Two month? more..?

Thank you in advance!

Can I use the views module to show a custom field?

I have a form that allows users to submit an address.

I'm new to the Views module and have finally gotten to the stage that I can use its most basic functions. So when I created a new view of these submitted forms, I only have some very limited options as to what I can display in the view.

I know there was at least one module that would let you create custom fields, but it hasn't made it to D7 yet.

I think that I'm just missing something, because it seems like views is very limited in this area.

How to execute custom javascript code after an ajax succes (using the Drupal Ajax framework) ?

Hi,

For example, If i need to call a custom javascript function that is globally available, after a form ajax succes, what would be the best way to do it? The javascript code would be generated in the ajax submit callback.

Theme standard variables - Drupal 7

Hello

I am trying to create a theme from scratch. By that i mean i am copying and pasting bits from other themes. But i am not able to print the standard variables. I can print $logo, $site_name and $site_slogan. The other variables that i have in my page.tpl.php file are not printing. I have my regions declared in the .info file: head, left, right, content, footer. But these variables are not showing up in the page. Everything in my .info file, page.tpl.php and style.css file looks correct. But obviously i am missing something. Does anybody have a clue? Thank you in advance.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x