Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Remove date and add Add title and description

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Remove date and add Add title and description

More
11 years 2 months ago #3603 by pioneer1
Hi there,

1) I would love the latest ads to not have date under it. How can this be removed?
2) How can the ad title and description be displayed in latest ads listing?

Have a look at the attached screenshot.

Thank you
Attachments:
More
11 years 2 months ago #3606 by tompap
Latest ads date in a module ? or homepage ?
(you can edit the views/front/tmpl/default.php
or for module there is an option to display or not the date

You need again to do override to customize the view.
joomprod.com/documentation/doc-view-override.html
More
11 years 2 months ago - 11 years 2 months ago #3647 by pioneer1
Replied by pioneer1 on topic Remove date and add Add title and description

tompap wrote: Latest ads date in a module ? or homepage ?
(you can edit the views/front/tmpl/default.php
or for module there is an option to display or not the date

You need again to do override to customize the view.
joomprod.com/documentation/doc-view-override.html


Thank you for your help.

The homepage not module
ben-ct.co.za/ben-bank/offerings
Last edit: 11 years 2 months ago by pioneer1.
More
11 years 2 months ago #3659 by tompap
just edit in the case

views/front/tmpl/default.php
More
11 years 2 months ago #3661 by pioneer1
Replied by pioneer1 on topic Remove date and add Add title and description
Is it here?

components/com_adsmanager/views/front/tmpl/default.php

What must I take out in the below code to hide date
<?php
/**
 * @package		AdsManager
 * @copyright	Copyright (C) 2010-2013 JoomPROD.com. All rights reserved.
 * @license		GNU/GPL
 */
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );
?>
<?php if ($this->conf->display_last == 1)
{
	$this->displayContents($this->contents,$this->nbimages); 
}
?>
<h1 class="contentheading"><?php echo JText::_('ADSMANAGER_FRONT_TITLE'); ?></h1>
<div class="adsmanager_fronttext">
	<?php echo $this->conf->fronttext; ?>
</div>
<br />
<?php $this->general->showGeneralLink() ?>
<div id="adshome">
	<?php 
	$nbcatsperrow = $this->conf->display_nb_categories_per_row;
	$classtype = (int) (12 / $nbcatsperrow);
 
	$num = 1;
	$divopen = false;
 
	foreach ($this->cats as $row) {
 
		if ($row->level == 0) {
			if ($divopen == true) {
				$divopen = false;
				?>
							</h3>
						</div>
					</div>
				<?php }
			if ($num == $nbcatsperrow+1) {
				$num = 1;
				echo '</div>';
			}
			if ($num==1) {
				echo '<div class="row-fluid ads-row-fluid">';
			}
			$num++;
		}
 
		if(isset($this->conf->display_nb_ads_per_categories) && $this->conf->display_nb_ads_per_categories)
			$numAds = " (".$row->num_ads.")";
		else
			$numAds = '';
 
		$link = TRoute::_("index.php?option=com_adsmanager&view=list&catid=".$row->id);
 
 
		if ($row->level == 0) {
				?>
				<div class="span<?php echo $classtype ?> ads-span<?php echo $classtype ?>">
					<div class="span6 ads-span6">
					<?php echo '<a href="'.$link.'" title="'.htmlspecialchars($row->name).'"><img class="imgcat" src="'.TTools::getCatImageUrl($row->id).'" alt="'.htmlspecialchars($row->name).'" /></a>';
					?>
					</div>
					<div class="span6 ads-span6">
						<h2 class="adsmanager_main_cat"><a href="<?php echo $link; ?>"  ><?php echo htmlspecialchars($row->name).$numAds; ?></a></h2> 
						<h3 class="adsmanager_sub_cat">
			<?php	
			$divopen = true;
			$firstsubcat = true;
		} else {
			if ($firstsubcat == false)
				echo ' - ';
			echo '<a href="'.$link.'">'.htmlspecialchars($row->name).$numAds.'</a>';
			$firstsubcat = false;
		}
	}
	if ($divopen == true) {
		?>
			</h3>
		</div>
	</div>
	<?php 
	}
	echo "</div>";
	?>
</div>
<?php if ($this->conf->display_last == 2)
{
	$this->displayContents($this->contents,$this->nbimages); 
} $this->general->endTemplate();
More
11 years 2 months ago #3662 by tompap
In fact you should edit the code in view.html.php in views/front

function displayContents
Moderators: perry
Time to create page: 0.187 seconds
Powered by Kunena Forum