Keyword

K2 User Extended Info Plugin

  • Andrea Vigato
  • Andrea Vigato's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 months ago #96984 by Andrea Vigato
K2 User Extended Info Plugin was created by Andrea Vigato
Hi, i'm using this wonderful plugin for K2 but need a little help.

 

There is telephone and mobile field in this plugin, how can i extract onyl those data?

 

I've tried:

 

$pluginParams = new K2Parameter($user->plugins,'',$this->pluginName);

$variable = $pluginParams->get('userExtendedFieldstelephone');

 

echo $variable;

 

But it doesn't display the field...if i use K2UserDisplay event i can show all the info, but i just need a single field.

 

Can someone help me?

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #96985 by Alan Sparkes
Replied by Alan Sparkes on topic K2 User Extended Info Plugin
$profile = new JParameter( $this->user->profile->plugins );

<?php if ($profile->get('userExtendedFieldstelephone')): ?>   

  <li>

           <div class="userElementLabel">Telephone</div>

          <div class="userElementValue"><?php echo $profile->get('userExtendedFieldstelephone');?></div>       </li>

<?php endif ?>

 

thats for user.php

Please Log in or Create an account to join the conversation.

  • Andrea Vigato
  • Andrea Vigato's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 4 months ago #96986 by Andrea Vigato
Replied by Andrea Vigato on topic K2 User Extended Info Plugin
thanks a lot Alan, now it's solved :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum