Welcome, Guest
Username: Password: Remember me

TOPIC: top ads

top ads 1 year 1 month ago #5983

I have a request. i want the query changed that shows the ads. the top ads are put in a module on my end, and now the top ads are shown in that module, and in the list of ads in my website. thats double. I want the top ads to be show in a module, that works fine.

but then i want the search result not to present the top ads on top, but just in the order that they were. its a sort by adjustment in the query. can you tell me where?
The administrator has disabled public write access.

top ads 1 year 1 month ago #5984

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Dear Customer,

Kindly check the below forum post and reverse the solution to fix your issue. The solution provided in the below post will show the Top Ads at the top. So plz reverse this solution.

jomclassifieds.com/forum/promoting-adver...rch-result.html#4307

Thanks.
The administrator has disabled public write access.

top ads 1 year 1 month ago #5988

but my problem is not in the search results, its in the list and grid view for all ads.
The administrator has disabled public write access.

top ads 1 year 1 month ago #5989

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Then you need to make the same changes in the adverts.php file from the below path,

Root ---> components --> com_jomclassifieds --> models --> adverts.php

Thanks.
The administrator has disabled public write access.

top ads 1 year 1 month ago #5991

Thank you for your quick response!

i am looking at that page (advert.php) but i cannot see a order type. (line 62 and further)

basically i want new ads to always show first, not depending on the top ads.

if the new ad happens to be a top ad it should show, but not always starting with the top ads.
The administrator has disabled public write access.

top ads 1 year 1 month ago #5992

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Please check adverts.php not advert.php.

Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Maarten Blokdijk
Time to create page: 0.495 seconds