Welcome, Guest
Username: Password: Remember me

TOPIC: Top Ads Not showing up on the top of search result

Top Ads Not showing up on the top of search result 2 years 1 month ago #4282

  • Matt Wilmshorst
  • Matt Wilmshorst's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 2
  • Karma: 0
There is a problem with the Top ads not showing up in the search results. They only show up in the top when you access their exact category otherwise in the search it is random.
The administrator has disabled public write access.

Top Ads Not showing up on the top of search result 2 years 1 month ago #4293

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2760
  • Thank you received: 292
  • Karma: 40
Hi,

Kindly send the below details to This email address is being protected from spambots. You need JavaScript enabled to view it. . So that we will fix it for you.

1. Your site URL
2. FTP details.
3. Joomla admin access.

Thanks.
The administrator has disabled public write access.

Top Ads Not showing up on the top of search result 2 years 1 month ago #4307

  • Matt Wilmshorst
  • Matt Wilmshorst's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 12
  • Thank you received: 2
  • Karma: 0
FIXED IT.

In the search.php line 218 you will find this :
switch($this->filter_order) {
			case 'latest' :
				$query .= ' ORDER BY a.id DESC';
				break;
			case 'created' :
				$query .= ' ORDER BY a.id ASC';
				break;
			case 'price_lh' :
				$query .= ' ORDER BY a.price ASC';
				break;
			case 'price_hl' :
				$query .= ' ORDER BY a.price DESC';
				break;
			case 'popular' :
				$query .= ' ORDER BY a.views DESC';
				break;
			case 'random' :
				$query .= ' ORDER BY RAND()';
				break;
			case 'a_z' :
			default :
				$query .= ' ORDER BY a.title ASC';
		}

And you need to change it to :
switch($this->filter_order) {
			case 'latest' :
				$query .= ' ORDER BY a.featured DESC, a.id DESC';
				break;
			case 'created' :
				$query .= ' ORDER BY a.featured DESC, a.id ASC';
				break;
			case 'price_lh' :
				$query .= ' ORDER BY a.featured DESC, a.price ASC';
				break;
			case 'price_hl' :
				$query .= ' ORDER BY a.featured DESC, a.price DESC';
				break;
			case 'popular' :
				$query .= ' ORDER BY a.featured DESC, a.views DESC';
				break;
			case 'random' :
				$query .= ' ORDER BY a.featured DESC, RAND()';
				break;
			case 'a_z' :	
			default :
				$query .= " ORDER BY a.featured DESC, a.title ASC";
		}

Presto Featured Listings will always show up on top.
The administrator has disabled public write access.
The following user(s) said Thank You: Super User, ssnobben

Top Ads Not showing up on the top of search result 2 years 1 month ago #4310

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2760
  • Thank you received: 292
  • Karma: 40
Thanks...
The administrator has disabled public write access.

Top Ads Not showing up on the top of search result 2 years 4 weeks ago #4333

  • ssnobben
  • ssnobben's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
is this fixed in latest version?
The administrator has disabled public write access.

Top Ads Not showing up on the top of search result 2 years 4 weeks ago #4347

  • Super User
  • Super User's Avatar
  • Online
  • Administrator
  • Posts: 2760
  • Thank you received: 292
  • Karma: 40
It is not fixed in the latest version, but we will fix it in next version.

Thanks.
The administrator has disabled public write access.
Time to create page: 0.331 seconds