Viewing 15 posts - 1 through 15 (of 32 total)
  • Author
    Posts
  • Robin Friend
    #199415

    Hello,

    I’m editing articles in K2 and the format is wonky. I want the title to show up before the date and for it not to be on the same line or in the center.


    1. Picture-244
    chavan Friend
    #541217

    I don’t see what you are viewing in the screenshot. may be you could post the exact url where you see this issue.

    Here is the image what i see


    1. Sample-Item-13-2014-07-05-08-00-25
    Robin Friend
    chavan Friend
    #541260

    you have changed your admin user details, can you please send me the correct one in PM.

    Robin Friend
    #541290

    can you kindly send me instructions on how to do it myself?

    chavan Friend
    #541314

    I just need to check the site and so I can let you know where is the fix . so you can do it yourself.

    Robin Friend
    #541456

    Great, thank you. I just sent the info to you via PM.

    Robin Friend
    #541808

    Hello.

    Is there any update on this issue?

    Robin Friend
    #542112

    Hello,

    I really need to get this issue fix. There seems to be a lot of issue with the K2 extension. Can we escalate this please?

    chavan Friend
    #542117

    check your site, I have fixed the issue

    http://harambeetoday.org/index.php/component/k2/item/1556-sample-item-13

    I have made changes in components/com_k2/tempaltes/default/item.php

    Robin Friend
    #542140

    Thanks for making the changes. Can you tell me what you did exactly? I want to make the changes on the staging server and not the live one.

    Robin Friend
    #542422

    Hello there. Can you provide instructions for fixing this issue?

    chavan Friend
    #542424

    IN this components/com_k2/templates/default/item.php

    I swaped 2 Sections of the code.

    I have Replaced this code

    [PHP]<?php if($this->item->params->get(‘itemDateCreated’)): ?>
    <!– Date created –>
    <span class=”itemDateCreated”>
    <?php echo JHTML::_(‘date’, $this->item->created , JText::_(‘K2_DATE_FORMAT_LC2’)); ?>
    </span>
    <?php endif; ?>
    <?php if($this->item->params->get(‘itemAuthor’)): ?>
    <!– Item Author –>
    <span class=”itemAuthor”>
    <?php echo ‘ ‘.K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
    <?php if(empty($this->item->created_by_alias)): ?>
    <a rel=”author” href=”<?php echo $this->item->author->link; ?>”><?php echo $this->item->author->name; ?></a>
    <?php else: ?>
    <?php echo $this->item->author->name; ?>
    <?php endif; ?>
    </span>
    <?php endif; ?>

    </div>
    <?php if($this->item->params->get(‘itemTitle’)): ?>
    <!– Item title –>
    <h2 class=”itemTitle”>
    <?php if(isset($this->item->editLink)): ?>
    <!– Item edit link –>
    <span class=”itemEditLink”>
    <a class=”modal” rel=”{handler:’iframe’,size:{x:990,y:550}}” href=”<?php echo $this->item->editLink; ?>”>
    <?php echo JText::_(‘K2_EDIT_ITEM’); ?>
    </a>
    </span>
    <?php endif; ?>

    <?php echo $this->item->title; ?>

    <?php if($this->item->params->get(‘itemFeaturedNotice’) && $this->item->featured): ?>
    <!– Featured flag –>
    <span>
    <sup>
    <?php echo JText::_(‘K2_FEATURED’); ?>
    </sup>
    </span>
    <?php endif; ?>

    </h2>
    <?php endif; ?>

    [/PHP]

    with

    [PHP] <?php if($this->item->params->get(‘itemTitle’)): ?>
    <!– Item title –>
    <h2 class=”itemTitle”>
    <?php if(isset($this->item->editLink)): ?>
    <!– Item edit link –>
    <span class=”itemEditLink”>
    <a class=”modal” rel=”{handler:’iframe’,size:{x:990,y:550}}” href=”<?php echo $this->item->editLink; ?>”>
    <?php echo JText::_(‘K2_EDIT_ITEM’); ?>
    </a>
    </span>
    <?php endif; ?>

    <?php echo $this->item->title; ?>

    <?php if($this->item->params->get(‘itemFeaturedNotice’) && $this->item->featured): ?>
    <!– Featured flag –>
    <span>
    <sup>
    <?php echo JText::_(‘K2_FEATURED’); ?>
    </sup>
    </span>
    <?php endif; ?>

    </h2>
    <?php endif; ?>
    <?php if($this->item->params->get(‘itemDateCreated’)): ?>
    <!– Date created –>
    <span class=”itemDateCreated”>
    <?php echo JHTML::_(‘date’, $this->item->created , JText::_(‘K2_DATE_FORMAT_LC2’)); ?>
    </span>
    <?php endif; ?>
    <?php if($this->item->params->get(‘itemAuthor’)): ?>
    <!– Item Author –>
    <span class=”itemAuthor”>
    <?php echo ‘ ‘.K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?>
    <?php if(empty($this->item->created_by_alias)): ?>
    <a rel=”author” href=”<?php echo $this->item->author->link; ?>”><?php echo $this->item->author->name; ?></a>
    <?php else: ?>
    <?php echo $this->item->author->name; ?>
    <?php endif; ?>
    </span>
    <?php endif; ?>

    </div>[/PHP]

    Robin Friend
    #542429

    Hello. I don’t see any change in the code. I even copied the file from the live site and it didn’t work.

    chavan Friend
    #542491

    Please provide me the details where to change i will do this change for you.

Viewing 15 posts - 1 through 15 (of 32 total)

This topic contains 32 replies, has 2 voices, and was last updated by  chavan 9 years, 9 months ago.

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