• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > eCommerce Factory Suite for Joomla CMS. > Ads Factory > Ad order messed up
Pages: [1]
« previous next »
  Print  
Author Topic: Ad order messed up  (Read 931 times)
emil.gashi
Jr. Member
**
Posts: 81


View Profile
Ad order messed up
« on: March 10, 2010, 09:14:44 am »

Hi

The site sorts after date now but when serveral ads are posted the latest ad gets posted UNDER the older of that date. The latest ad should be posted on the top of the page always.

Example
Day01 - Add01
Day01 - Add02
Day02 - Add01

Should be
Day01 - Add02
Day01 - Add01
Day02 - Add01
« Last Edit: March 10, 2010, 11:54:04 am by emil.gashi » Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Ad order messed up
« Reply #1 on: March 10, 2010, 12:02:44 pm »

Hi,
Take a look in your mod_adsman module in the modules directory.
Edit the helper file and arround the 35 line you have the following line:
  " ORDER BY a.start_date DESC, a.id ASC ".
Replace it with:
  " GROUP BY a.id ORDER BY a.start_date DESC, a.id ASC ".
This way you make sure ads are not repeatedly displayed due to any reason.


Cheers,
Sorin
Logged

The Factory's Development Team member.
emil.gashi
Jr. Member
**
Posts: 81


View Profile
Re: Ad order messed up
« Reply #2 on: March 10, 2010, 04:04:15 pm »

Thanks =)
Logged
emil.gashi
Jr. Member
**
Posts: 81


View Profile
Re: Ad order messed up
« Reply #3 on: April 09, 2010, 08:39:41 am »

This issue is still there. Is there anything else that could be causing this?
Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Ad order messed up
« Reply #4 on: April 09, 2010, 10:05:05 am »

Be sure you are editing the SITE/modules/mod_adsman and not the SITE/components/com_adsman/modules/mod_adsman file.

Logged

The Factory's Development Team member.
emil.gashi
Jr. Member
**
Posts: 81


View Profile
Re: Ad order messed up
« Reply #5 on: April 09, 2010, 10:23:55 am »

the "Site/module" helperfile is already edited with " GROUP BY a.id ORDER BY a.start_date DESC, a.id ASC ". since I started the thread back in March.
and the "components/adsman/module" helper is " ORDER BY a.start_date DESC, a.id ASC ".

The issue is still there sadly..
Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Ad order messed up
« Reply #6 on: April 09, 2010, 11:02:18 am »

In this case,
Pls detail the ordering issue that you now describe.
The issue fixing back then based in actual mysql id of the ads so the ordering will be date based and id based within the date criteria ( the same date ads will be ordered by id).
Pls describe the ordering that you meet against the ordering expected (the order in list the ad name ,date, id of ad ) .
Sorin
Logged

The Factory's Development Team member.
emil.gashi
Jr. Member
**
Posts: 81


View Profile
Re: Ad order messed up
« Reply #7 on: April 09, 2010, 11:25:37 am »

The current ordering is described above, the latest posted ad is posted below the first ad of that day.
So you want me to access the DB and write down the details of an ad at this point?
Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Ad order messed up
« Reply #8 on: April 09, 2010, 12:01:19 pm »

You can fix a super admin account and send it to support so I can inspect the issue locally.
I checked your file module edit and the GROUP BY seems to be present where it should.
This doesn't replicate on our local servers and I can not see another reason for duplicate ads been shown.

Sorin
Logged

The Factory's Development Team member.
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script