Support Forums

when search it shows 1 result is found?!?

This is a discussion on when search it shows 1 result is found?!? within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? V4.1.6 Designer What template are you using? Mixed my own Please describe ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 11-13-2009, 10:08 AM   #1
Junior Member
 
Join Date: Sep 2009
Posts: 7
Rep Power: 0
ivkototo is on a distinguished road
Default when search it shows 1 result is found?!?

What version of 68 Classifieds are you running?
V4.1.6 Designer

What template are you using?
Mixed my own

Please describe in detail the issue you are having:
when i search it shows 1 result is found, but there is no adv published. When i published 2 adv it shows 2 result finded but when there is no adv in whole site it shows 1 result find. I use {$numrows}
see it here
ivkototo is offline  
Old 11-13-2009, 10:44 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,293
Rep Power: 124
Eric Barnes is a jewel in the rough
Default

It might be counting an empty array as 1. Can you change your template code to this:
Code:
{if $numrows == 1}
0
{else}
{$numrows}
{/if}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-13-2009, 11:43 AM   #3
Junior Member
 
Join Date: Sep 2009
Posts: 7
Rep Power: 0
ivkototo is on a distinguished road
Default :)

where in the template i have to put this code?
ivkototo is offline  
Old 11-13-2009, 11:44 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,293
Rep Power: 124
Eric Barnes is a jewel in the rough
Default

You will replace the {$numrows} you added with that code. Probably showlistings.tpl
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-13-2009, 11:48 AM   #5
Junior Member
 
Join Date: Sep 2009
Posts: 7
Rep Power: 0
ivkototo is on a distinguished road
Default :)

thanks it works
ivkototo is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
category.php SER shows menu items paulsra v3.1 Questions & Support 6 01-14-2008 08:29 PM
State - Search Result SEO CB v3.1 Questions & Support 1 12-20-2007 10:28 AM
Search result objelland v3.1 Questions & Support 11 12-18-2007 11:11 AM
Each AD as a Search Result? garysr v3.1 Questions & Support 6 11-06-2006 04:46 AM
Removing the field that shows the number of times an advert has been viewed sporthorsebreeder v3.1 Questions & Support 2 09-18-2006 08:07 PM


All times are GMT -4. The time now is 06:07 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0