Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • skillfulken Friend
    #191428

    Hello!

    I have just turned off the K2 User Profile via “component>K2>Parameters>Enable K2 User Profile>No” since I don’t want anyone who signs up my website filling somethings like sex, avatar, descriptions …

    However, after switching off the user profile, the RECAPTURE is missing and those titles are bold with weird descriptions when the mouse is hover over them.

    How can I hide out those extra fields but not the RECAPTURE functions and making the titles looking normal again? Thanks for your attentions!


    1. screen_cap_2
    2. screen_cap_1
    Saguaros Moderator
    #509457

    Hi there,

    You can try to remove code for these fields by opening file: templates/ja_smashboard/html/com_k2/register.php

    Find and remove these codes:

    [PHP]
    <tr>
    <th colspan=”2″ class=”k2ProfileHeading”>
    <?php echo JText::_(‘K2_PERSONAL_DETAILS’); ?>
    </th>
    </tr>
    <!– K2 attached fields –>
    <tr>
    <td class=”key”>
    <label id=”gendermsg” for=”gender”><?php echo JText::_(‘K2_GENDER’); ?></label>
    </td>
    <td>
    <?php echo $this->lists[‘gender’]; ?>
    </td>
    </tr>
    <tr>
    <td class=”key”>
    <label id=”descriptionmsg” for=”description”><?php echo JText::_(‘K2_DESCRIPTION’); ?></label>
    </td>
    <td>
    <?php echo $this->editor; ?>
    </td>
    </tr>
    <tr>
    <td class=”key”>
    <label id=”imagemsg” for=”image”><?php echo JText::_( ‘K2_USER_IMAGE_AVATAR’ ); ?></label>
    </td>
    <td>
    <input type=”file” id=”image” name=”image”/>
    <?php if ($this->K2User->image): ?>
    <img class=”k2AdminImage” src=”<?php echo JURI::root().’media/k2/users/’.$this->K2User->image; ?>” alt=”<?php echo $this->user->name; ?>” />
    <input type=”checkbox” name=”del_image” id=”del_image” />
    <label for=”del_image”><?php echo JText::_(‘K2_CHECK_THIS_BOX_TO_DELETE_CURRENT_IMAGE_OR_JUST_UPLOAD_A_NEW_IMAGE_TO_REPLACE_THE_EXISTING_ONE’); ?></label>
    <?php endif; ?>
    </td>
    </tr>
    [/PHP]

    Backup your site first before changing.

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum