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 / pb for display subcategory module adsmanager menu

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

pb for display subcategory module adsmanager menu

More
11 years 8 months ago #10184 by tompap
Si vous voulez afficher toutes les sous categories de toutes les categories

dans

mod_adsmanager_menu.php

il faut remplacer
 if (@$current_list[count($current_list) - 1 -$level] == $row->id)
				 {
				 	echo "<ul>";
					displayMenuCats($row->id, $level+1, $children,$current_list,$displaynumads,$rootid);
					echo "</ul>";
				 }

par
 
 
				 	echo "<ul>";
					displayMenuCats($row->id, $level+1, $children,$current_list,$displaynumads,$rootid);
					echo "</ul>";
The following user(s) said Thank You: adarr
More
11 years 8 months ago #10194 by ferhatyanis
Replied by ferhatyanis on topic pb for display subcategory module adsmanager menu
bonjour :
le chemin du fichiest est bien :public_html/conciergerie2/modules/mod_adsmanager_menu/mod_adsmanager_menu.php ?

si je comprend bien je dois simplement supprimer
` if (@$current_list[count($current_list) - 1 -$level] == $row->id) avec les acolade?

jps: j'ai envoyé un mail au support pour une option de reservationdans dans les annonces mais j'ai ecrit en Anglais.....si il y a un probleme je peux réécrire en francais
The following user(s) said Thank You: adarr
More
11 years 8 months ago - 11 years 8 months ago #10198 by ferhatyanis
Replied by ferhatyanis on topic pb for display subcategory module adsmanager menu
merci beaucoup çà marche !! mon seul petit souci c'est que je voudrais qu'il n'affiche que 2 niveaux de catégoris pas 3 ...
www.uploady.com/download/0epBF_PtH9C/vbOe_kdTACujE8eE

de plus est il possible d'avoir le nombre d'annonce par categories dans cette vu (de la meme maniers que le nombre d'annonce est affiché dans le module en page d'acceuil)

www.uploady.com/download/wFHsHW7WkBo/A395V4kHaiyEyb24
Last edit: 11 years 8 months ago by ferhatyanis.
The following user(s) said Thank You: adarr
More
11 years 8 months ago #10213 by loic
Bonjour,

Autour de ce code:
echo "<ul>";
					displayMenuCats($row->id, $level+1, $children,$current_list,$displaynumads,$rootid);
					echo "</ul>";

Rajoutez une condition sur la variable level comme ceci:
if($level <= 2) {
echo "<ul>";
					displayMenuCats($row->id, $level+1, $children,$current_list,$displaynumads,$rootid);
					echo "</ul>";
}

changer la valeur dans la condition si ce n'est pas correcte, par exemple, si le niveau commence à zero, alors vous risquez de devoir changer le 2 en 1 :).

Pour le nombre d'annonces dans les categories, dans le fichier 'components/com_adsmanager/views/list/tmpl/default.php', remplacer la ligne 72:
echo '<a href="'.$subcat->link.'">'.$subcat->name.'</a>';

Par celle-ci :
echo '<a href="'.$subcat->link.'">'.$subcat->name.'('.$subcat->num_ads.')</a>';

Si la page plante, alors annulez cette modification, dans ce cas, il faudra modifier le code plus en profondeur.

Cordialement.
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10272 by ferhatyanis
Replied by ferhatyanis on topic pb for display subcategory module adsmanager menu
Merci ça marche mais il faut mettre if($level <= 0) et donc ni 1 ou 2 . Si je mets 1 ou 2 il y a toute la liste des categorie


pour l'affichage du nombre d'annonce par categorie : la page n'affiche pas le nombre d'annonce qu'elle que soit le niveau de la categorie.
www.uploady.com/download/NMSbttQKOT8/QgXSJPgjSUp7eL2s
The following user(s) said Thank You: adarr
More
11 years 7 months ago #10303 by loic
Bonjour,

Dans ce cas il faut modifier le code même de AdsManager pour le nombre d'annonce et je ne peux pas vous aider plus dans le cadre d'un support gratuit.

Désolé pour le désagrément.

Cordialement.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.094 seconds
Powered by Kunena Forum