1. Category menu with new counts

Category menu with new counts

  |   15
Category menu with new counts


This module is same module as the same "Category Menu With News Count" posted by spamhater. The difference is it removed the ul/li list from the menu and customize it with css 3 style. The module is pretty simple but yet powerful for those website that want to add categories automatically with the news and articles counted without modify any Datalife Engine files only require a few lines of CSS styles and include file into the theme.

Features:
- Automatically generate the category list from the category cache files and database
- Use cache to reduce the server loading and resources
- Automatically count all news in both main categories and sub-categories and make the total count in main categories
- Supports category icons (useful for those who use category icons like file hosts and different category icons)
- Very simple to install without modify any DLE files
- Easy to customize in CSS
- Can set cache to how often to update the article count and category list

This module only tested on 9.6 and 9.7, if you are using older version please prefer to "Category Menu With News Count" posted by spamhater, however, this module may work on older versions but I don't personally check it.
Login Required!Only registered users can download files. Please register or Login
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+5

Comments 15

Deskabytes
Deskabytes
Members
Commented By Deskabytes on December 14, 2012 (10:02 am)
Thanks noobos
N/A 10Forum topics : 0Forum replies : 0Forum likes : 0
rafuli92
rafuli92
Members
Commented By rafuli92 on December 22, 2012 (8:22 am)
hello how can i add & delete manually categories from this ? i want make custom category to be showed in this not my category in DLE..
N/A 13Forum topics : 4Forum replies : 6Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on December 22, 2012 (7:14 pm)
rafuli92,
the module is automatically grab categories from your database, so all categories will be added automatically, if you want to create your own categories, you must add them manually in your theme, example

<div class="catmenus">
{include file="/engine/modules/cat_starter.php?new_days=1"}

<a href="http://site.com/link-to-page"><span class="ficon">Name Of link</span></a>
<a href="http://site.com/link-to-page"><span class="ficon">Name Of link</span></a>

</div>
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
shahab
shahab
Members
Commented By shahab on December 25, 2012 (1:56 pm)
tnx
http://www.clubbazi.com/
N/A 5Forum topics : 0Forum replies : 0Forum likes : 0
mosafer411
mosafer411
Members
Commented By mosafer411 on December 25, 2012 (2:15 pm)
Hi
Newsletter module to version 9.7 I
This module can be used on site
Thanks
N/A 5Forum topics : 0Forum replies : 0Forum likes : 0
Waqas Ahmad
Commented By Waqas Ahmad on December 26, 2012 (9:23 am)
noobos,

<div class="catmenus">
{include file="/engine/modules/cat_starter.php?new_days=1"}

<a href="http://site.com/link-to-page"><span class="ficon">Name Of link</span></a>
<a href="http://site.com/link-to-page"><span class="ficon">Name Of link</span></a>

</div>

When I use the above code, first it shows all categories with article count and then it shows those categories which i add manually but these are only links with out article count.

When I remove
{include file="/engine/modules/cat_starter.php?new_days=1"}

It shows only those categories which I added manually but without article count.
Please help to solve this problem.

Also is it possible to create drop-down menu (like dlestarter) for all subcategories?
Also please guide me how to use different icons for each category?
1 28Forum topics : 14Forum replies : 67Forum likes : 5
noobos
noobos
DLE TEAM
Commented By noobos on December 26, 2012 (2:49 pm)
if you folks need manually input with category count then don't use this module because this is automatically added, not manual input.

Dropdown menu can be using any css menu https://www.google.com/search?q=css+drop+down+menu

Categories icons, please read the Category Manager in userguide http://docs.dlestarter.com/dle-administrations/7-category-manager.html
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
Waqas Ahmad
Commented By Waqas Ahmad on January 17, 2013 (4:32 am)
Thank you so much noobos
1 28Forum topics : 14Forum replies : 67Forum likes : 5
Commented By saiyyedfardeen on December 11, 2013 (6:15 am)
http://my-andro.com
http://itech4you.com
http://fastseoindia.com
I am not able to get number in cat menu..... Please help me....
N/A 4Forum topics : 0Forum replies : 0Forum likes : 0
DLEStarter
DLEStarter
DLE TEAM
Commented By DLEStarter on December 11, 2013 (8:18 pm)
You are not using this module, so do not ask question on the wrong section...you are using "tree menu" not this menu!...

If you want your treemenu to display the category count then you should add treemenu manually in your theme along with http://www.dlestarter.com/tutorials/hack/256-alternative-category-counts.html

For example...

- instead of using code
<script type="text/javascript">
	d = new dTree('d', '{THEME}/images/category/');
	d.add(0,-1, 'SITE CATEGORIES');
	{dlecategory}
	document.write(d);
</script>
you must use something like this (by installing Alternative Category Counts hack and manually add the category for the rest of your site)
<script type="text/javascript">
	d = new dTree('d','{THEME}/images/category/');
	d.add(0,-1,'Site Categories');
	d.add(16, 12, 'Spice {mycatcount_ID}', 'http://my-andro.com/spice/', 'Root Your Spice Smartphones', '', '', '');
	d.add(15, 12, 'LG {mycatcount_ID}', 'http://my-andro.com/lg/', 'Root Your LG Smartphones', '', '', '');
	d.add(14, 12, 'Samsung {mycatcount_ID}', 'http://my-andro.com/samsung/', 'Root Your Samsung Smartphones', '', '', '');
	d.add(13, 12, 'HTC {mycatcount_ID}', 'http://my-andro.com/htc/', 'Root Your HTC Smartphones', '', '', '');
	d.add(12, 0, 'ROOT {mycatcount_ID}', 'http://my-andro.com/root/', 'Root Your Smartphones', '', '', '');
	d.add(11, 9, 'Tablets {mycatcount_ID}', 'http://my-andro.com/tablets/', 'Latest Tablets Updates, News and Tweaks', '', '', '');
	d.add(10, 9, 'Smartphones {mycatcount_ID}', 'http://my-andro.com/smartphones/', 'Latest Smartphones Updates, News and Tweaks', '', '', '');
	d.add(9, 0, 'News {mycatcount_ID}', 'http://my-andro.com/news/', 'Latest Smartphones & Tablets Updates, News and Tweaks', '', '', '');
	d.add(17, 12, 'Micromax {mycatcount_ID}', 'http://my-andro.com/micromax/', 'Root Your Micromax Smartphones', '', '', '');
	d.add(18, 12, 'Karbonn {mycatcount_ID}', 'http://my-andro.com/karbonn/', 'Root Your Karbonn Smartphones', '', '', '');
	d.add(19, 12, 'XOLO {mycatcount_ID}', 'http://my-andro.com/xolo/', 'Root Your XOLO Smartphones', '', '', '');
	document.write(d);
</script>
29 225Forum topics : 9Forum replies : 558Forum likes : 116
vecas
vecas
Members
Commented By vecas on January 10, 2014 (8:27 am)
iam testing it on 10.1 it give me out put like that :-

Category name : 0+number if articles ,

see this

www.ta7mel.info
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
CardinaLe
CardinaLe
Members
Commented By CardinaLe on February 12, 2014 (6:16 am)
Is there any way to do this sub category tree?

Thanks in advance.
1 6Forum topics : 0Forum replies : 0Forum likes : 0
Hannsen
Hannsen
Members
Commented By Hannsen on April 1, 2014 (3:38 pm)
Question similar to its predecessor but it concerns me is that when you add a sub-category in the Admin Panel, they are hidden until you click.

Sorry for the language. I'm Polish I use (google translator)
N/A 17Forum topics : 4Forum replies : 7Forum likes : 0
yorismith
yorismith
Moderators
Commented By yorismith on April 1, 2014 (4:16 pm)
so your question is you don't want sub-category to show until you click main category? or you want it to show automatically without click the main level category? I am confused on the question.
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
Hannsen
Hannsen
Members
Commented By Hannsen on April 2, 2014 (5:02 am)
I mean, that subcategory there is "hidden" until you click the category 'mother' (DLE v10.1)
N/A 17Forum topics : 4Forum replies : 7Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.