1. Alternative Category Counts

Alternative Category Counts

  |   17
Alternative Category Counts

We have some users who like our module for "Category Menu With News Count" but want to create your own menu on your way with category ID count for news and articles in that category, so here is very simple hack to help you create it on your way, you can also use your own CSS/HTML style to customize your menu, but in this tutorial I will use same CSS/HTML code that used by "Category Menu With News Count".

Installation is quite simple and easy because only one core file to edit and one theme file (except css)



The hack was tested with all 9.2 to 9.7, did not test on 9.0 and older version but I think it should work...

Any questions or need helps please use forum or use this topic to ask...
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+5

Comments 17

werty1001
werty1001
Members
Commented By werty1001 on January 4, 2013 (8:12 pm)
Hello, this module have cache? And how many SQL-inquiry it have?
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on January 4, 2013 (10:08 pm)
werty1001,
no, it doesn't use any cache...it request inquiry every page load in every single category...if you have 10 categories and 10 users visit your site at the same time, you will get 100 inquiries...that's estimate anyway... don't use it if your site have big hits and large amount of visitors...
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
DomiTori
DomiTori
Members
Commented By DomiTori on January 5, 2013 (9:46 pm)
how to create one drop down menu to clicking on a category, sub-category fell
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
noobos
noobos
DLE TEAM
Commented By noobos on January 6, 2013 (1:42 pm)
you cna use many menu out there, google for it like accordion menu or anything like that.
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
UserMod
UserMod
Members
Commented By UserMod on January 14, 2013 (11:49 pm)
bravo bravo GOOD JOB
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
Waqas Ahmad
Commented By Waqas Ahmad on January 16, 2013 (7:34 am)
How to use different icons for each menu link?
1 28Forum topics : 14Forum replies : 67Forum likes : 5
noobos
noobos
DLE TEAM
Commented By noobos on January 16, 2013 (5:00 pm)
Waqas Ahmad,
replace
.catmenus a span.ficon{background:url(../images/cat.png) 5px 6px no-repeat;padding:4px 5px 4px 25px;display:block}

with
.catmenus a span.cat_software{background:url(../images/cat_software.png) 5px 6px no-repeat;padding:4px 5px 4px 25px;display:block}
.catmenus a span.cat_movies{background:url(../images/cat_movies.png) 5px 6px no-repeat;padding:4px 5px 4px 25px;display:block}
.catmenus a span.cat_musics{background:url(../images/cat_musics.png) 5px 6px no-repeat;padding:4px 5px 4px 25px;display:block}
.....
.....

HTML
<a href="http://site.com/link/to/your/software/"><span class="cat_software">Software<span class="total">{mycatcount_ID}</span></span></a>
<a href="http://site.com/link/to/your/movies/"><span class="cat_movies">Movies<span class="total">{mycatcount_ID}</span></span></a>
<a href="http://site.com/link/to/your/musics/"><span class="cat_musics">Musics<span class="total">{mycatcount_ID}</span></span></a>
.....
.....
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
Quarantine
Quarantine
Moderators
Commented By Quarantine on March 21, 2013 (12:42 am)
Well M8 i need to set my categories in parent currently my categories displaying all i need like category tree with collapse all close all like dlestarter
http://i46.tinypic.com/af78ys.png
32 27Forum topics : 21Forum replies : 163Forum likes : 15

noobos
noobos
DLE TEAM
Commented By noobos on March 21, 2013 (4:00 am)
http://www.dlestarter.com/downloads/modules/251-category-menu-with-new-counts.html
16 302Forum topics : 12Forum replies : 1036Forum likes : 170
Quarantine
Quarantine
Moderators
Commented By Quarantine on March 21, 2013 (11:58 am)
well M8 i need dropdown with sub categories like dlestarter has here i need sub categories hide is dropdown when mouse over then those categories display under main and dlestarter has this other avbove module is also same like custome catgories its showing all categories and sub categories
http://i.imgur.com/YbwoYcs.png
32 27Forum topics : 21Forum replies : 163Forum likes : 15

spamhater
spamhater
DLE TEAM
Commented By spamhater on March 22, 2013 (2:34 am)
Maxjimme,
sorry what you are requesting we only provide for VIP members, but I am sure you can use jquery out there to use with category menu.
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
Ammir
Ammir
Members
Commented By Ammir on October 13, 2013 (2:14 am)
this is not working on version 10 ?
N/A 38Forum topics : 4Forum replies : 43Forum likes : 0
sawanbanna
sawanbanna
DLE TEAM
Commented By sawanbanna on October 13, 2013 (4:38 pm)
we are using it in this website, so yes it's working in 10.0
31 409Forum topics : 23Forum replies : 979Forum likes : 150

« Live as if you were to die tomorrow. Learn as if you were to live forever! »
itkorai
itkorai
Members
Commented By itkorai on July 12, 2014 (7:13 am)
here is the problem can some one please solve this

http://i61.tinypic.com/24qlgqs.jpg
N/A 22Forum topics : 15Forum replies : 32Forum likes : 0

its me itkorai
yorismith
yorismith
Moderators
Commented By yorismith on July 14, 2014 (3:28 am)
if you are using this hack then if you use tag {mycatcount_ID} then no way it will display double because I tested it, working just fine, however, if you want to separate number of newly added posts by find
{$news_now = '+'.$row['new_'].'';};

Replace with
{$news_now = '(+'.$row['new_'].') &nbsp; ';};
This will separate new post as (+ x) xxx
32 288Forum topics : 2Forum replies : 699Forum likes : 117

- Nothing comes free...
- A generous heart, kind speech, and compassion are the things which renew humanity
haris89
haris89
Members
Commented By haris89 on March 17, 2016 (4:26 am)
where i should find index.php file?
N/A 1Forum topics : 0Forum replies : 0Forum likes : 0
jack
jack
Members
Commented By jack on April 10, 2016 (12:04 pm)
Quote: haris89
where i should find index.php file?

It's now named main,php located in engine -> modules -> main.php

p.s: i tested it on dle 10.6 works perfectly fine :)
N/A 1Forum topics : 0Forum replies : 0Forum 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.