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 / Support / AdsManager Support / [RESOLU]Comment ne pas afficher les souscatégories

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.

[RESOLU]Comment ne pas afficher les souscatégories

More
11 years 5 months ago - 11 years 4 months ago #2365 by sophiedoris
Bonjour, sur cette page - Accueil ads - les sous catégories s'affichent sous les catégories...ce qui n'est pas vraiment heureux. Comment faire pour afficher uniquement les catégories.
D'autre part, comment supprimer le titre "petites annonces " en haut de la page.
Voir le fichier joint.
Merci pour vos lumières


Ceci est le fichier fichier " php defaut " à modifier. Si quelqu'un à la moindre petite idée pour le modifier.......à défaut du support ! :-((

<?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.'"><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();
Attachments:
Last edit: 11 years 4 months ago by tompap.
The following user(s) said Thank You: adarr
More
11 years 5 months ago #2397 by tompap
Bonjour,

Il faut modifier le fichier views/front/tmpl/default.php
Le mieux est d'utiliser la technique de l'override
joomprod.com/documentation/doc-view-override.html
The following user(s) said Thank You: adarr
More
11 years 5 months ago - 11 years 5 months ago #2405 by sophiedoris
Replied by sophiedoris on topic Comment ne pas afficher les sous catégories
Merci...mais ce n'est pas vraiment la réponse que j'attends.

Je suis plutôt dans l'attente de ce qu'il est nécessaire de supprimer dans ce fichier, afin qu' apparaissent uniquement les catégories...ainsi que les dossiers que je dois créer .

Je n'ai aucune connaissance en php...c'est bien pourquoi j'ai fais l'acquisition de ce module payant avec un Support de 12 mois.
Last edit: 11 years 5 months ago by sophiedoris.
The following user(s) said Thank You: adarr
More
11 years 4 months ago #2475 by tompap
Il faut modifier le fichier views/front/tmpl/default.php

supprimer:
<h1 class="contentheading"><?php echo JText::_('ADSMANAGER_FRONT_TITLE'); ?></h1>

et remplacer
foreach ($this->cats as $row) {
par
foreach ($this->cats as $row) {
if ($row->level > 0)
continue;
The following user(s) said Thank You: sophiedoris, adarr
More
11 years 4 months ago #2482 by sophiedoris
Replied by sophiedoris on topic Comment ne pas afficher les sous catégories
Merci pour ce bout de code...qui change bien l'aspect de mon site. voir le résultat ICI

Encore merci pour ce soutien efficace....digne d'un soutien.
Sophie
The following user(s) said Thank You: adarr
Time to create page: 0.121 seconds
Powered by Kunena Forum