Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • waelali Friend
    #176644

    Hello,

    I would like to disable and remove some controls from the K2 Add New Item Popup – front-end.
    Please see attached image for more details….

    How can we do that ??


    1. K2AddNewItem
    khoand Friend
    #450965

    Hi,

    You go to Template manager,choose JA Teline IV template, then change CSS Optomize fieds to NO, so I can check how and where to customize for you.
    Could you give me a link to your page as you said?

    waelali Friend
    #450975

    <em>@khoand 317085 wrote:</em><blockquote>Hi,

    You go to Template manager,choose JA Teline IV template, then change CSS Optomize fieds to NO, so I can check how and where to customize for you.
    Could you give me a link to your page as you said?</blockquote>

    Site: http://www.tkareer.com
    Optimize CSS: NO

    khoand Friend
    #451057

    Could you give me username+password of your website? Because I can’t access the form as you gave.

    waelali Friend
    #451059

    <em>@khoand 317196 wrote:</em><blockquote>Could you give me username+password of your website? Because I can’t access the form as you gave.</blockquote>

    Thank you

    Sent you to your private message area

    khoand Friend
    #451215

    How do I get the form as you gave? I can’t find it because I can’t read your language. Sorry about my inconvenience

    waelali Friend
    #451231

    <em>@khoand 317392 wrote:</em><blockquote>How do I get the form as you gave? I can’t find it because I can’t read your language. Sorry about my inconvenience</blockquote>

    Attached 2 images that will tell you how to do that.

    Please login to front end as in images using:
    username: mjd.salman
    password: mjdsalman1!

    The details I have PMed you are for administrator , and not for real registered user


    1. 1
    2. 2
    khoand Friend
    #451270

    You remove code from /components/com_k2/templates/default/itemform.php

    <tr>
    <td class="adminK2LeftCol">
    <label for="alias"><?php echo JText::_('K2_TITLE_ALIAS'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <input class="text_area k2TitleAliasBox" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
    </td>
    </tr>


    <tr>
    <td class="adminK2LeftCol">
    <label><?php echo JText::_('K2_TAGS'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php if($this->params->get('taggingSystem')): ?>
    <!-- Free tagging -->
    <ul class="tags">
    <?php if(isset($this->row->tags) && count($this->row->tags)): ?>
    <?php foreach($this->row->tags as $tag): ?>
    <li class="tagAdded">
    <?php echo $tag->name; ?>
    <span title="<?php echo JText::_('K2_CLICK_TO_REMOVE_TAG'); ?>" class="tagRemove">x</span>
    <input type="hidden" name="tags[]" value="<?php echo $tag->name; ?>" />
    </li>
    <?php endforeach; ?>
    <?php endif; ?>
    <li class="tagAdd">
    <input type="text" id="search-field" />
    </li>
    <li class="clr"></li>
    </ul>
    <span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_RETURN_OR_COMMA_TO_ADD_IT'); ?> </span>
    <?php else: ?>
    <!-- Selection based tagging -->
    <?php if( !$this->params->get('lockTags') || $this->user->gid>23): ?>
    <div style="float:left;">
    <input type="text" name="tag" id="tag" />
    <input type="button" id="newTagButton" value="<?php echo JText::_('K2_ADD'); ?>" />
    </div>
    <div id="tagsLog"></div>
    <div class="clr"></div>
    <span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_ADD_TO_INSERT_IT_TO_THE_AVAILABLE_TAGS_LISTNEW_TAGS_ARE_APPENDED_AT_THE_BOTTOM_OF_THE_AVAILABLE_TAGS_LIST_LEFT'); ?> </span>
    <?php endif; ?>
    <table cellspacing="0" cellpadding="0" border="0" id="tagLists">
    <tr>
    <td id="tagListsLeft">
    <span><?php echo JText::_('K2_AVAILABLE_TAGS'); ?></span> <?php echo $this->lists['tags']; ?>
    </td>
    <td id="tagListsButtons">
    <input type="button" id="addTagButton" value="<?php echo JText::_('K2_ADD'); ?> »" />
    <br />
    <br />
    <input type="button" id="removeTagButton" value="« <?php echo JText::_('K2_REMOVE'); ?>" />
    </td>
    <td id="tagListsRight">
    <span><?php echo JText::_('K2_SELECTED_TAGS'); ?></span> <?php echo $this->lists['selectedTags']; ?>
    </td>
    </tr>
    </table>
    <?php endif; ?>
    </td>
    </tr>
    <?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish'))): ?>
    <tr>
    <td class="adminK2LeftCol">
    <label for="featured"><?php echo JText::_('K2_IS_IT_FEATURED'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php echo $this->lists['featured']; ?>
    </td>
    </tr>
    <tr>
    <td class="adminK2LeftCol">
    <label><?php echo JText::_('K2_PUBLISHED'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php echo $this->lists['published']; ?>
    </td>
    </tr>
    <?php endif; ?>

    waelali Friend
    #451273

    <em>@khoand 317458 wrote:</em><blockquote>You remove code from /components/com_k2/templates/default/itemform.php

    <tr>
    <td class="adminK2LeftCol">
    <label for="alias"><?php echo JText::_('K2_TITLE_ALIAS'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <input class="text_area k2TitleAliasBox" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
    </td>
    </tr>


    <tr>
    <td class="adminK2LeftCol">
    <label><?php echo JText::_('K2_TAGS'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php if($this->params->get('taggingSystem')): ?>
    <!-- Free tagging -->
    <ul class="tags">
    <?php if(isset($this->row->tags) && count($this->row->tags)): ?>
    <?php foreach($this->row->tags as $tag): ?>
    <li class="tagAdded">
    <?php echo $tag->name; ?>
    <span title="<?php echo JText::_('K2_CLICK_TO_REMOVE_TAG'); ?>" class="tagRemove">x</span>
    <input type="hidden" name="tags[]" value="<?php echo $tag->name; ?>" />
    </li>
    <?php endforeach; ?>
    <?php endif; ?>
    <li class="tagAdd">
    <input type="text" id="search-field" />
    </li>
    <li class="clr"></li>
    </ul>
    <span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_RETURN_OR_COMMA_TO_ADD_IT'); ?> </span>
    <?php else: ?>
    <!-- Selection based tagging -->
    <?php if( !$this->params->get('lockTags') || $this->user->gid>23): ?>
    <div style="float:left;">
    <input type="text" name="tag" id="tag" />
    <input type="button" id="newTagButton" value="<?php echo JText::_('K2_ADD'); ?>" />
    </div>
    <div id="tagsLog"></div>
    <div class="clr"></div>
    <span class="k2Note"> <?php echo JText::_('K2_WRITE_A_TAG_AND_PRESS_ADD_TO_INSERT_IT_TO_THE_AVAILABLE_TAGS_LISTNEW_TAGS_ARE_APPENDED_AT_THE_BOTTOM_OF_THE_AVAILABLE_TAGS_LIST_LEFT'); ?> </span>
    <?php endif; ?>
    <table cellspacing="0" cellpadding="0" border="0" id="tagLists">
    <tr>
    <td id="tagListsLeft">
    <span><?php echo JText::_('K2_AVAILABLE_TAGS'); ?></span> <?php echo $this->lists['tags']; ?>
    </td>
    <td id="tagListsButtons">
    <input type="button" id="addTagButton" value="<?php echo JText::_('K2_ADD'); ?> »" />
    <br />
    <br />
    <input type="button" id="removeTagButton" value="« <?php echo JText::_('K2_REMOVE'); ?>" />
    </td>
    <td id="tagListsRight">
    <span><?php echo JText::_('K2_SELECTED_TAGS'); ?></span> <?php echo $this->lists['selectedTags']; ?>
    </td>
    </tr>
    </table>
    <?php endif; ?>
    </td>
    </tr>
    <?php if($this->mainframe->isAdmin() || ($this->mainframe->isSite() && $this->permissions->get('publish'))): ?>
    <tr>
    <td class="adminK2LeftCol">
    <label for="featured"><?php echo JText::_('K2_IS_IT_FEATURED'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php echo $this->lists['featured']; ?>
    </td>
    </tr>
    <tr>
    <td class="adminK2LeftCol">
    <label><?php echo JText::_('K2_PUBLISHED'); ?></label>
    </td>
    <td class="adminK2RightCol">
    <?php echo $this->lists['published']; ?>
    </td>
    </tr>
    <?php endif; ?>

    </blockquote>

    Thank you – Works fine 🙂

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

This topic contains 9 replies, has 2 voices, and was last updated by  waelali 12 years, 6 months ago.

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