No. There is an email option, however. See the README.txt.
I need some help. Im trying to get the profile nagger in my header_contents file. I cut and paste teh code from the widgets view page and it keeps saying 0% although the widget works perfectly. I just cut and paste the code as i did not see anything special in start.php
Can u help me please. Code below
if (isloggedin()) {
$isPgOwner = (page_owner() == $_SESSION['user']->getGUID());
$img_src = $vars['url'] . "mod/profile_nagger/graphics/nagger.gif";
if ($vars['full'] == true)
{
if (is_array($vars['config']->profile) && sizeof($vars['config']->profile) > 0) {
$profile = $vars['config']->profile;
$field_count = count($profile); //total fields
$fields_completed = 0; //completed fields
foreach($profile as $shortname => $valtype) {
//check that each profile field has a value,
//add to the number completed when they do.
$value = $vars['user']->$shortname;
if (!empty($value)) {
$fields_completed += 1;
}
}
//arrive at percentage complete
$percent_complete = round(100 / ($field_count / $fields_completed));
}
}
?>
<div id="progress_indicator">
<?php
if ($isPgOwner)
{
echo "Your profile is " . $percent_complete . "% complete.";
} else {
echo $vars['entity']->name . "'s profile is " . $percent_complete . "% complete.";
}
?>
<div id="progressBarContainer">
<img src="<?php echo $img_src; ?>" width="<?php echo $percent_complete; ?>%" height="11px">
</div>
<?php
if (($isPgOwner) && ($percent_complete < 100)) {
echo "<p>Please complete your profile.</p>";
}
?>
</div>
<?
}
M.C.Sajiv,
This group is about the form and related plugins. Your issue seems to be completely unrelated. Can I suggest respectfully that you post this question in some more relevant place rather than hijacking an unrelated thread?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.