free porn videos porno izle virgin porn videos anal porn videos anal porn videos anal porn videos sikis
Profile is completed. module still visible.
porno izle mom sex sex porno izle online porn porno izle
Welcome, Guest
Username Password: Remember me

Profile is completed. module still visible.
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: Profile is completed. module still visible.

Profile is completed. module still visible. 2 years, 2 months ago #19

  • fdkid
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi there, thanks for a great and useful extension. i have installed and configured and it works flawless. however, it is still visible after the profile is completed. I believe this module works perfect as a reminder, but it should not be visible once the profile is completed after there is nothing to remind the user. Is there any possibility that the module is not visible after the profile is completed? does it make any sense to you? thanks in advance. fdkid

Re:Profile is completed. module still visible. 2 years ago #45

  • rucha_d@tekdi.net
Hello,


Thank you for your appreciation. We will look forward on your suggestion.


Thanks

Techjoomla Support

Re:Profile is completed. module still visible. 2 years ago #61

  • oleg1986
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Very good advice for Developers, and please update that for new JomSocial version.

Re:Profile is completed. module still visible. 1 year, 11 months ago #105

  • fdkid
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi, is there any estimate, or quick solution for hiding the module once the Profile is completed? thanks a million for a very useful extension. cheers

Re:Profile is completed. module still visible. 1 year, 2 months ago #436

  • hauben
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi!

I changed the mod_procomplete.php with just one if case to get the requested result:

<?php


/**
* @package Profile Completeness
* @copyright Copyright (C) 2009 -2010 Techjoomla, Tekdi Web Solutions . All rights reserved.
* @license GNU GPLv2 <www.gnu.org/licenses/old-licenses/gpl-2.0.html>
* @link www.techjoomla.com
**/


global $Itemid;

$database = &JFactory::getDBO();
$my = &JFactory::getUser();

include(JPATH_SITE . '/administrator/components/com_comprofiler/ue_config.php');
include(JPATH_SITE . '/modules/mod_procomplete/english.php');

$document =& JFactory::getDocument();
$css = JURI::base().'modules/mod_procomplete/assets/mod_procomplete.css';
$document->addStyleSheet($css);

//Get Params
$param_fields = $params->get('fields');
$count_field = count($param_fields);

$usersname = intval( $params->get( 'name', 1 ) );
$bar = intval( $params->get( 'bars', 2 ) );

$image = intval( $params->get( 'image', 1 ) );
$img_path = JURI::base() . "/images/comprofiler";

// Login if registered user

if(!$my->id) {
echo JText::_( 'TWS_PLZ_LOGIN' );
return;
}

if (is_array($param_fields))
{
$param_fields = implode(',', $param_fields);
}

$sql1 = "SELECT ".$param_fields." FROM #__comprofiler,#__users WHERE user_id = $my->id";
$database->setQuery($sql1);
$user_field = $database->loadRow();

if( !$user_field ) return true;

$flag=0;
foreach($user_field as $uf ){
if($uf != " " && $uf != NULL){
$flag = $flag + 1;
}
}
$perc = round(($flag/$count_field)* 100);

//Get Item id
$database->setQuery("SELECT id FROM #__menu WHERE link LIKE '%com_comprofiler%'");
$itemid = $database->loadResult();
$_Itemid = $itemid ? $itemid : $Itemid;

//Get login user information

$query1 = "SELECT * FROM #__comprofiler WHERE user_id = $my->id AND approved =1 ";
$database->setQuery( $query1 );
$users = $database->loadObjectList();

$link1 = JRoute::_('index.php?option=com_comprofiler&task=userDetails&Itemid=' . $_Itemid);

if ($perc<100)
{

if( $bar == 2 || $bar == 0 ) {
?>
<div id="pro-comp-container">
<table id="profile_completeness_table" width="25%" border="0">
<tr>
<td class="percentage"><?php echo $perc.'%';?></td>
<td>
<ul>
<li class="profile_completeness_text"><?php echo JText::_( 'TWS_PROFILE_TEXT' );?></li>
<li class="profile_completeness_text"><?php echo JText::_( 'TWS_COMPLETENESS_TEXT' );?></li>
</ul>
</td>
</tr>
</table>

<div id="box">
<div id="bar" style="width:<?php echo $perc.'%'; ?>;" >&nbsp;</div>
</div>
<?php
}
if( $bar == 2 || $bar == 1 ) {
echo '<div class="pro-comp-ness">';
echo '<ul id="profile_completeness_footer_list">';
echo '<li><span class="profile_completeness_reason">'.JText::_( 'TWS_COMPLETENESS_REASON' ).'</span></li>';
echo '<li><a class="complete_your_profile_link" href="'.$link1.'">'.JText::_( 'TWS_COMPLETE_PROFILE' ).'</a></li>';
echo '</ul></div></div>';
?>

<?php }
}

Cheers
Frank

Re:Profile is completed. module still visible. 1 year, 1 month ago #689

  • dotcom22
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
hello hauben

many thank for your code...I made some modification in to it (because I don't want display some link) and it work very well.

Please just a question: I see inside mod_procomplete.php the follow basic security code

defined('_JEXEC') or die ('Restricted access');

..is not present...It is necessary to put this inside or not ?
  • Page:
  • 1
  • 2
Moderators: arjun_s@tekdi.net
Time to create page: 0.37 seconds

Newsletter Signup

Jump on to our Newsletter & stay updated on News on our Extensions, New Releases & Offers !