-
AuthorPosts
-
July 22, 2011 at 10:16 am #166590
Hello,
I’d like to add intro text in my ja bulletin modules (most read and latest news)
I’ve tried added this to default.php but it does not seem to work:
<?php echo $item->introtext; ?>
Natively, JA Bulletin does not use introtext. Is there a way i can add this functionnality ?
ThanksSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
July 25, 2011 at 9:32 am #402886Hi jimbojia,
You open the file of modulesmod_jabulletinhelper.php search for this line of code
[php] $lists [$i]->text = htmlspecialchars ( $row->title ); [/php]Change it to
[php]
$lists [$i]->text = htmlspecialchars ( $row->title );
$lists [$i]->introtext = $row->introtext;
[/php]Now you have the introtext field for using and just try again.
July 27, 2011 at 9:30 am #403284Hello
thanks dathq
I did what you said but it did not change a thing…
is there anywhere else to put this line?Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 8, 2011 at 4:42 am #404874<em>@jimboja 255915 wrote:</em><blockquote>Hello
thanks dathq
I did what you said but it did not change a thing…
is there anywhere else to put this line?</blockquote>HI jimboja,
I tried and it worked for me, be sure that you made change in the file of templatesja_teline_ivhtmlmod_jabulletindefault.php not modulesmod_jabulletintmpldefault.php
August 31, 2011 at 10:59 am #409784Cannot find the line. HEre is the source code of the file you mentionned:
<?php
/*
# ————————————————————————
# JA Bulletin module for Joomla 1.5
# ————————————————————————
# Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license – Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites: http://www.joomlart.com – http://www.joomlancers.com
# This file may not be redistributed in whole or significant part.
# ————————————————————————
*/
defined(‘_JEXEC’) or die(‘Restricted access’); ?>
<div id=”ja-bulletin”>
<ul class=”ja-bulletin<?php echo $params->get(‘moduleclass_sfx’); ?> clearfix”>
<?php if(!empty($list)): ?>
<?php foreach ($list as $item) : ?>
<li>
<?php
$padding = ($params->get( ‘show_image’))?”style=”padding-left:”.($params->get(‘width’)+10).”px””:””;
if (isset($item->image)) :
?>
<?php if( $item->image ) : ?>
<a href=”<?php echo $item->link; ?>” class=”mostread<?php echo $params->get(‘moduleclass_sfx’); ?>-image”>
<?php echo $item->image; ?>
</a>
<?php endif; ?>
<?php endif; ?>
<div <?php echo $padding;?> class=”box-right”>
<a href=”<?php echo $item->link; ?>” class=”mostread<?php echo $params->get(‘moduleclass_sfx’); ?>”><?php echo $item->text; ?></a>
<?php if ($showcreater) : ?>
<br/> <span class=”createby”><?php echo $item->creater;?></span>
<?php endif; ?>
<?php if (isset($item->date)) : ?>
– <span><?php echo JHTML::_(‘date’, $item->date, JText::_(‘DATE_FORMAT_LC4’)); ?></span>
<?php endif; ?>
<?php if (isset($item->hits)) : ?>
<span class=”item-hits”>
<?php if($useCustomText):
echo JText::_($customText);
endif;
?>
<?php echo $item->hits; ?>
</span>
<?php endif; ?>
<?php if ($showreadmore) : ?>
<br/><a href=”<?php echo $item->link; ?>” class=”readon” title=”<?php echo JText::sprintf(‘READ MORE…’);?>”><?php echo JText::sprintf(‘Read more…’);?></a>
<?php endif; ?>
</div></li>
<?php endforeach; ?>
<?php endif; ?>
</ul>
</div>gray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
August 31, 2011 at 11:13 am #409787I’ve created an modified version of the module to include the intro text. It’s working now on http://www.zerno.org.ua (second tab). If it’s needed, I can upload the whole archive.
August 31, 2011 at 11:20 am #409789<em>@gray 264155 wrote:</em><blockquote>I’ve created an modified version of the module to include the intro text. It’s working now on http://www.zerno.org.ua (second tab). If it’s needed, I can upload the whole archive.</blockquote>
Yes please and if you could help me locating the right file, it’ll be perfect as i also want to include author’s avatar there in some cases.
Thanks a lotgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
August 31, 2011 at 4:46 pm #409878Attached is a modified version of JA Bulletin module v.1.0.3.
– added option to choose sorting field – by articles’ creation or publication date
– added option to add intro text
Note: the CSS files used for rendering could be modified to match the site’s style.
September 1, 2011 at 7:54 am #410000<em>@gray 264263 wrote:</em><blockquote>Attached is a modified version of JA Bulletin module v.1.0.3.
– added option to choose sorting field – by articles’ creation or publication date
– added option to add intro text
Note: the CSS files used for rendering could be modified to match the site’s style.</blockquote>Thanks i’ll give it a try.
August 22, 2012 at 7:16 pm #465020Have the same wish for the 2.5 version…
multimediavideo Friendmultimediavideo
- Join date:
- November 2011
- Posts:
- 71
- Downloads:
- 18
- Uploads:
- 40
- Thanks:
- 2
November 13, 2012 at 8:24 am #472748great script, works great!
How can I truncate the text after a certain number of characters?Thanks for the reply
Multimediavideo -
AuthorPosts
This topic contains 11 replies, has 5 voices, and was last updated by multimediavideo 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum