This is a discussion on Showing the number of ads in subcategories on main page within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Hi How do I show the number of ads in subcategories on the main page? On the main page I ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hi
How do I show the number of ads in subcategories on the main page? On the main page I display the categories test1 and test2. Behind it 68C shows me the total numer of ads from all subcategories. Underneath the main categories the subcategories are displayed. And there I want to display the number of ads in each subcategory as well. Is there a way to do it? Thank's a lot!
__________________
_________ v3.1.7 dev |
|
#2
|
||||
|
||||
|
index.php or category.php?
|
|
#3
|
||||
|
||||
|
Both...!
![]() (Sorry, I did forget to mention that). EDIT: No, on index.php only. The category.php does show the number of ads if the subcategories are displayed. If the category.php shows the maincategories, the subcategories are not displayed anyway...
__________________
_________ v3.1.7 dev Last edited by pat01; 07-14-2006 at 12:21 PM. |
|
#4
|
||||
|
||||
|
I guess this is more complicated...?
I did try it myself for a few hours to adapt it for index.php, but no luck. :-( Since this function does exist for categories.php it should be possible, or not?
__________________
_________ v3.1.7 dev |
|
#5
|
||||
|
||||
|
If I am understanding correctly you can try this.
Open the index.php file and locate this else statement: PHP Code:
PHP Code:
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#6
|
||||
|
||||
|
Eric, you're the best!
This works perfectely! Now the visitors can see right away how many ads are placed in a subcategory. Thank you very much!
__________________
_________ v3.1.7 dev |
|
#7
|
||||
|
||||
|
Glad to help.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Viewing ads from subcategories in Main Categories browse view | SilverMicro | v3.1 Questions & Support | 11 | 05-26-2007 05:39 PM |
| Showing total on last page | pat01 | v3.1 Modules & Modifications | 3 | 08-06-2006 03:56 AM |
| Removing browse category table from main page. | gabs | v3.0 Questions & Support | 1 | 06-24-2006 01:37 PM |
| Categories on main page. | gabs | v3.0 Questions & Support | 2 | 04-25-2006 03:55 PM |
| Listings on main site home page | LukeOut | v3.0 Questions & Support | 14 | 04-07-2006 12:54 PM |