test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • thungrac221 Friend
    #161183

    When author & category are removed from article, 2 lines are left…see where red arrow points in attached image….

    How do I get rid of it…which file & where in code would be greatly appreciated….

    Thanks in advance & God bless


    1. problem1
    Phill Moderator
    #380384

    Please post a link to the page where you have the problem. Before you do make sure the css optimization is set to “No” in the template manager so we can see the correct css.

    adamlopuch Friend
    #386958

    Hello — I have the same question issue. Adding to this thread to keep history.

    Here is a link to an example site using JA_EVENT template: http://lopuch.com/uat1/

    (CSS optimization is set to ‘No’; if it would help, I can PM a password to a super user account for backend)

    Issue is with Home Page — featured articles.

    My issue:
    * Removed ‘Author’ and ‘Category’ article manager options
    * When article is accessed directly there is no problem
    * When article(s) are shown on home page (Featured Articles in 1.6), there are extra lines (horizontal rules?) where the ‘Author’ and ‘Category’ details used to be

    Thanks for your help

    Phill Moderator
    #386977

    Hmm, I thought that was fixed in the latest template.

    A simple way to fix this would be to open templates>ja_events>html>com_content>frontpage>default_item.php and comment out the following section of code.

    <div class="article-tools clearfix">
    <dl class="article-info">
    <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
    <dd class="createdby">
    <strong><?php echo JText::_('By'); ?></strong>: <?php JText::printf(($this->item->created_by_alias ? $this->escape($this->item->created_by_alias) : $this->escape($this->item->author)) ); ?>
    </dd>
    <?php endif; ?>
    <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
    <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
    <dd class="parent-category-name">
    <strong><?php echo JText::_('SECTION'); ?>: </strong>
    <?php if ($this->item->params->get('link_section')) : ?>
    <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
    <?php endif; ?>
    <?php echo $this->escape($this->item->section); ?>
    <?php if ($this->item->params->get('link_section')) : ?>
    <?php echo '</a>'; ?>
    <?php endif; ?>
    <?php if ($this->item->params->get('show_category')) : ?>
    <?php echo ' - '; ?>
    <?php endif; ?>
    </dd>
    <?php endif; ?>
    <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
    <dd class="category-name">
    <strong><?php echo JText::_('in'); ?></strong>:
    <?php if ($this->item->params->get('link_category')) : ?>
    <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
    <?php endif; ?>
    <?php echo $this->escape($this->item->category); ?>
    <?php if ($this->item->params->get('link_category')) : ?>
    <?php echo '</a>'; ?>
    <?php endif; ?>
    </dd>
    <?php endif; ?>

    <?php endif; ?>

    </dl>
    <?php if ($this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
    <ul class="actions">
    <?php if ($this->params->get('show_email_icon')) : ?>
    <li class="email-icon">
    <?php echo JHTML::_('icon.email', $this->item, $this->item->params, $this->access); ?>
    </li>
    <?php endif; ?>
    <?php if ( $this->params->get( 'show_print_icon' )) : ?>
    <li class="print-icon">
    <?php echo JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access); ?>
    </li>
    <?php endif; ?>
    <?php if ($this->params->get('show_pdf_icon')) : ?>
    <li>
    <?php echo JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access); ?>
    </li>
    <?php endif; ?>
    </ul>
    <?php endif; ?>
    </div>
    <?php endif; ?>
    <?php if($this->item->event->beforeDisplayContent): ?>
    <div class="ja-before-content">
    <div class="ja-before-inner clearfix">

    <div class="ja-social-toolbox-small">
    <div class="inner clearfix">
    <?php
    if ($this->params->get('show_create_date')) :
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = date('M', strtotime( $this->item->created));
    $createYear = date('Y', strtotime( $this->item->created));
    ?>
    <div class="articleCreated">
    <span class="date"><?php echo $createDay; ?></span>
    <span class="month"><?php echo $createMonth; ?></span>
    <span class="year"><?php echo $createYear; ?></span>
    </div>
    <?php endif; ?>
    <?php echo $this->item->event->afterDisplayTitle; ?>
    </div>
    </div>

    <?php echo $this->item->event->beforeDisplayContent; ?>
    </div>
    </div>
    <?php endif; ?>

    adamlopuch Friend
    #386983

    Hi Phill and all — thanks, this work around resolved my issue! I appreciate the helpful response (and tolerating my newness with Joomla/TA3!)

    <em>@phill luckhurst 234971 wrote:</em><blockquote>Hmm, I thought that was fixed in the latest template. </blockquote>

    I’m running Joomla 1.6.2 and the JA_EVENTS template accessed two days ago on Apr.16.2011

    To add to the resolution history, here are some of my lessons learned:

    <em>@phill luckhurst 234971 wrote:</em><blockquote>…open templates>ja_events>html>com_content>frontpage>default_item.php </blockquote>

    – This may be old news to you Joomla pros, but under 1.6 template the path is ja_events>html>com_content>featured>default_item.php

    <em>@phill luckhurst 234971 wrote:</em><blockquote>comment out the following section of code. [/quote]

    – I read this as a workaround to completely eliminate that article information in the frontpage / featured articles link.

    If someone is looking to just eliminate the lines (but retain the slots for article details on Featured homepage), then likely you should not comment out *all* those lines Phill mentioned.

    Commenting out all that code eliminates both the space for those article details, the existence of those lines, as well as the placeholder for the JA Social plugin.

    Thanks again for your help!

    Phill Moderator
    #386990

    Thanks for the ffedback. Yep, I should have checked whether you were using J1.5 or J1.6. Glad this worked for you. Most of the code is self explanatory once you know where it is so I am sure most users could tailor it to there needs.

    txt007 Friend
    #387749

    Hi, is there a way to port the JA social plugin style in JA Events into JA Methys? thanks

    thangnn1510 Friend
    #387946

    This is css code for JA Social in Ja Events:


    div.ja-before-content, div.ja-after-content {
    background: url("../images/afc-bg.gif") repeat-y scroll right top transparent;
    margin-top: 10px;
    }
    div.ja-before-content .ja-before-inner, div.ja-after-content .ja-after-inner {
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background: none repeat scroll 0 0 #DEEFF7;
    border-color: #C1DEEC -moz-use-text-color #C1DEEC #C1DEEC;
    border-style: solid none solid solid;
    border-width: 1px 0 1px 1px;
    margin-right: 18px;
    padding: 3px 5px 0;
    }

    div.articleCreated {
    margin-bottom: 10px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    }
    div.articleCreated span.date {
    display: block;
    float: left;
    font-family: "Trebuchet MS",Arial,sans-serif;
    font-size: 220%;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    margin-right: 5px;
    }
    div.articleCreated .month, div.articleCreated .year {
    color: #666666;
    display: block;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    }
    div.articleCreated .month {
    padding: 3px 0 1px;
    }
    .ja-social-toolbox-small {
    float: left;
    margin-right: 10px;
    }
    .ja-social-toolbox-small .inner {
    padding: 0;
    }
    .ja-social-toolbox-small .articleCreated {
    background: url("../images/small-date-bg.png") no-repeat scroll right center transparent;
    color: #FFFFFF;
    float: left;
    margin: -3px 10px 0 -5px;
    padding: 4px 10px;
    width: 70px;
    }
    .ja-social-toolbox-small .articleCreated span.date {
    margin-bottom: 0;
    }
    .ja-social-toolbox-small .articleCreated span.month, .ja-social-toolbox-small .articleCreated span.year {
    color: #FFFFFF;
    }

    You should copy images from JA Events to JA Social and then change CSS Class in JA Events to the same like JA Social.’

    soaresa Friend
    #390442

    Hi Phill, I have a similar problem but I don’t think that your solution would fix my issue.

    I’m trying to put date and JA-social in the same line, like in your demo, but it always creates 2 place holders, one for date and one for the social networks.

    Any idea?

    link to the site is: http://rccboston.com

    BTW: Joomla 1.6

    soaresa Friend
    #390671

    Hi guys… any solution for this yet???

    Saguaros Moderator
    #390837

    @soaresa, please provide me FTP account and the Administrator account via your ticket ID RQU-928-65258

    I would like to check the issue in detail

    pritam Friend
    #394274

    Hello Soaresa ,

    I have checked your site http://rccboston.com and compare with demo site of Ja Events. Here you have done some changes into the closing of div tags. That is reason the Date and Ja Social is coming into 2 palce holders. If you need Ja social and Date come into
    1 place holder than you need to check closing of your div tags.

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

This topic contains 12 replies, has 8 voices, and was last updated by  pritam 13 years, 7 months ago.

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