-
AuthorPosts
-
icbl Friend
icbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 28, 2012 at 7:40 pm #175524Hi,
JA Social for Joomla 2.5 , article details not showing in the mainpage. Instead of Author name and modification date (or any selected detail) its juts showing Details word thats all, see the screenshot. How we can fix it? This is fresh isnatllation from quickstart.
I selected show under Main menu – Home – article details but it is not working.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 29, 2012 at 4:32 am #446244Could you give me username+password of your backend? I will help you.
icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 29, 2012 at 6:33 am #446265Hi,
I just sent a super admin creditentials via PM.
Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 29, 2012 at 5:09 pm #446329You add the code from /templates/ja_social/css/template.css
div.article-tools.clearfix {
display: none;
}icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 29, 2012 at 6:17 pm #446345Hi khoand,
Thanks for the code but it removes all details and I cannot use the article options. Actually problem is making the Article Options operational. If I wanna use, for example “show author” and select “Show” nothing happening. How we gonna fix that.Kind regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 29, 2012 at 6:22 pm #446347You’re. My solution is suitable for your case is that you don’t want to show anything in Details section. To fix my solution, you must change code php. Do you want it?
icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 29, 2012 at 6:38 pm #446354Hi khoand,
Actually I wanna make Article Options fully operational. According to my needs sometime I will use Show author sometimes article modification date etc. I am willing to chnage php codes if you are ready 🙂
Thanks
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 30, 2012 at 3:24 pm #446475You add the code into /templates/ja_social/html/com_content/featured/default_item.php
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits')) or ($params->get('show_print_icon')) or ($params->get('show_email_icon')) or $canEdit) : ?>
before
<div class="article-tools clearfix">
and add the code
<?php endif; ?>
before
<?php
//Get out all images
$regex = "/<img[^>]*>/";
$images = '';
icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 30, 2012 at 5:05 pm #446497It did not work. Could you check if I did correctly please?
<?php
/**
* @package Joomla.Site
* @subpackage com_content
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/// no direct access
defined('_JEXEC') or die;// Create a shortcut for params.
$params = &$this->item->params;
$images = json_decode(isset($this->item->images) ? $this->item->images : null);
$canEdit = $this->item->params->get('access-edit');
?><?php if ($this->item->state == 0) : ?>
<div class="system-unpublished">
<?php endif; ?>
<div class="contentpaneopen clearfix">
<?php if ($params->get('show_title')) : ?>
<h2 class="contentheading">
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>">
<?php echo $this->escape($this->item->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->item->title); ?>
<?php endif; ?>
</h2>
<?php endif; ?>
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?><?php // to do not that elegant would be nice to group the params ?>
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits')) or ($params->get('show_print_icon')) or ($params->get('show_email_icon')) or $canEdit) : ?>
<div class="article-tools clearfix">
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) : ?>
<dl class="article-info">
<dt class="article-info-term"><?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?></dt>
<?php endif; ?>
<?php if ($params->get('show_parent_category') && $this->item->parent_id != 1) : ?>
<dd class="parent-category-name">
<?php $title = $this->escape($this->item->parent_title);
$url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '">' . $title . '</a>'; ?>
<?php if ($params->get('link_parent_category') AND $this->item->parent_slug) : ?>
<?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?>
<?php else : ?>
<?php echo JText::sprintf('COM_CONTENT_PARENT', $title); ?>
<?php endif; ?>
</dd>
<?php endif; ?><?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
<dd class="createdby">
<?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">
<?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; ?>
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_create_date')) or ($params->get('show_modify_date')) or ($params->get('show_publish_date')) or ($params->get('show_parent_category')) or ($params->get('show_hits'))) : ?>
</dl>
<?php endif; ?><?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?>
<ul class="actions">
<?php if ($params->get('show_print_icon')) : ?>
<li class="print-icon">
<?php echo JHtml::_('icon.print_popup', $this->item, $params); ?>
</li>
<?php endif; ?>
<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon">
<?php echo JHtml::_('icon.email', $this->item, $params); ?>
</li>
<?php endif; ?><?php if ($canEdit) : ?>
<li class="edit-icon">
<?php echo JHtml::_('icon.edit', $this->item, $params); ?>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
<?php endif; ?>
<?php
//Get out all images
$regex = "/<img[^>]*>/";
$image = '';
//print_r($this->item);die();
if (preg_match_all($regex,$this->item->introtext, $matches)) {
$this->item->introtext = preg_replace ($regex, '', $this->item->introtext);
$image = implode ("n", $matches[0]);
}?>
<?php if ($image || $this->item->event->beforeDisplayContent): ?>
<div class="article-image">
<?php echo $image ?>
<?php echo $this->item->event->beforeDisplayContent; ?>
</div>
<?php endif; ?><?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?><div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?> article-image">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<?php endif; ?><div class="article-content fp-article-content"><?php echo $this->item->introtext; ?></div>
<?php if ($params->get('show_readmore') && $this->item->readmore) :
if ($params->get('access-view')) :
$link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
else :
$menu = JFactory::getApplication()->getMenu();
$active = $menu->getActive();
$itemId = $active->id;
$link1 = JRoute::_('index.php?option=com_users&view=login&&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
endif;
?>
<p class="readmore">
<a href="<?php echo $link; ?>">
<?php if (!$params->get('access-view')) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $this->item->alternative_readmore) :
echo $readmore;
if ($params->get('show_readmore_title', 0) != 0) :
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif;
elseif ($params->get('show_readmore_title', 0) == 0) :
echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE');
else :
echo JText::_('COM_CONTENT_READ_MORE');
echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit'));
endif; ?></a>
</p>
<?php endif; ?><?php if ($this->item->state == 0) : ?>
</div>
<?php endif; ?>
</div>
<div class="item-separator"></div>
<?php echo $this->item->event->afterDisplayContent; ?>
icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
March 31, 2012 at 6:33 pm #446636Hi khoand,
Any solution?
Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 2, 2012 at 7:50 am #446820Could you give me username+password of your ftp? I will check it
icbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
April 2, 2012 at 10:05 am #446847Hi Khoand,
I just sent FTP details with PM. FYI, even Joomlart‘s demo page have same problem!
Regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 2, 2012 at 2:58 pm #446879I have checked /templates/ja_social/html/com_content/featured/default_item.php. The file is not changed.
I can’t check that does my code work because you set show_author is Yes. Do you give me username+password of your backend? Or you set show_author is Noicbl Friendicbl
- Join date:
- December 2010
- Posts:
- 242
- Downloads:
- 0
- Uploads:
- 28
- Thanks:
- 86
- Thanked:
- 7 times in 1 posts
April 2, 2012 at 6:07 pm #446934Hi khoand,
I just created an account for you and sent details with PM. I’d like to reming again that we wanna make all article options operational not only the “Show Author”!
Kind regards
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
April 3, 2012 at 4:51 pm #447158I fixed it. The right code is
<?php if (($params->get('show_author')) or ($params->get('show_category')) or ($params->get('show_parent_category')) or ($params->get('show_hits')) or ($params->get('show_print_icon')) or ($params->get('show_email_icon')) or $canEdit) : ?>
Sorry for the inconvenience.
AuthorPostsThis topic contains 31 replies, has 5 voices, and was last updated by Anonymous 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum