After the integration of ODude Profile, your component can display user's profile picture.
For this users should install "ODude Profile Picture Plugin" which can be downloded from "Files & Updates".
You can enable profile picture by two way.
You can have 3 sizes of profile picture
All you have to do is include below 2 line php code into the component.
<?php
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('getProfilePic', array('[ username / email ]','[ user name / any_email_address@hotmail.com ]','[ icon / thumb / photo ]' ));
?>
For example:
To display profile picture of username Jenny of Medium size
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('getProfilePic', array('username','Jenny','thumb' ));
To display profile picture of email address someone@yahoo.com
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('getProfilePic', array('email','someone@yahoo.com','photo' ));
If 'ODude profile picture plugin' is not installed than it will normal without picture profile.
It will not generate any error message.
© 2009 ODude Network All Rights Reserved.
Add comment