Tutorials

My latest tutorials can be found @ http://drupalsn.com/learn-drupal/drupal-tutorials. DrupalSN.com is another site that I run, please feel free to check them out, I add new tutorials on a regular basic!

If there are any particular tutorials you would like to see on here, please leave a comment below or drop me an email to tom@tomswebstuff.com.
Thanks

Hello, I ram across yoru

Hello,

I ram across yoru social networking site adrenalinehub.com and am very impressed with your implemtnation. It looks like you solved a few problems I'm trying to work on for our new development for wearechange.org, may i ask how you accomplished the profile image albums? http://adrenalinehub.com/user/5/images/

And the profile stats?
Profile views
Views today: 8
Total views: 5026
History
Member since: Nov 16th 2006
Last login: 1 week 22 hours ago

Thanks,

Matthew Lepacek
pursuitofliberty@gmail.com
www.wearechange.org
347-280-7979

Hi Matthew, sorry for my

Hi Matthew,

sorry for my lack of response, only just found your comment!
both items of functionality you refer to are custom modules.
the images one was built from the ground up specifically for AdreanalineHub.com.

as for the stats that is a hacked version of the statistics module and i'm planning to release that as a module as soon as i can find the time. when i do i'll post here.

the history is done at theme and is quite simple, just add this code to your user_profile.tpl.php file, assuming you can overriding the default profile:

Member since: <?php print format_date($account->created, 'custom', 'M jS Y'); ?>
Last login:
<?php
$login = time() - $account->login;
print $account->login != '0' ? format_interval($login)." ago" : 'Never';
?>

*note that is for drupal 4.7.

hope that helps
Tom

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.