Support Forums

renewed listing showing first...

This is a discussion on renewed listing showing first... within the Technical Support forums, part of the Technical Support Forums category; Hello everybody, my clients page is up and running very good for half a year now but today my client ...


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-14-2008, 08:11 AM   #1
Customer
 
Join Date: May 2008
Location: Lanzarote/spain
Posts: 71
Rep Power: 11
canariasdata is on a distinguished road
Question renewed listing showing first...

Hello everybody,

my clients page is up and running very good for half a year now but today my client rang me with a "problem" I wasn't aware of until today. Maybe its not a problem and can easy be solved, maybe its just a setting (hopefully one of both!!)

The problem:
When a user renews his/her listing, it stays on the same rank (example: third page) and does not start like a new add as the listing #1 on page 1. This is bad because users start complain that the renewed listings don't not show up first.

I looked into the admin panel but can't find a way to change the order of listings manually. Any way to make renewed listing show up like a new listing would???

Thanks for your time & help,
Gregor
__________________
4.0.3 Developer
canariasdata is offline  
Old 11-14-2008, 08:45 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,237
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

This is one of those deals where you cant please everyone all of the time. I think I have seen complaints about renewals because they DID show up first and then it was changed so they didnt and now people complaine about that.

I beleive that by default the ads are displayed in order by date added with the newest appearing 1st. Your quick fix would be to edit the listing and change the "date added" field to the date the ad was renewed.

Ideally the way it works should be documented in a site FAQ etc so if a user wants to renew their ad they know what to expect.

If you want a long term fix and want to update the dateadded field to the date of renewal and you have the developer version im sure you could work out a way to update the date added field but would take some coding.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-14-2008, 10:53 AM   #3
Customer
 
Join Date: May 2008
Location: Lanzarote/spain
Posts: 71
Rep Power: 11
canariasdata is on a distinguished road
Default

Thanks Larry!

for showing my a quick way to please today's angry renewer ... she's very happy now

Could you give me a hint where (filename) the function is that is responsible for writing the renew date into the db on renewal. I will try to update the dateadded in the db automaticly on renewal as you kindly mentioned.

...or maybe someone already knows how to do this best??

Kind regards,
Gregor
__________________
4.0.3 Developer
canariasdata is offline  
Old 11-14-2008, 12:06 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,237
Rep Power: 128
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by canariasdata
Could you give me a hint where (filename) the function is that is responsible for writing the renew date into the db on renewal. I will try to update the dateadded in the db automaticly on renewal as you kindly mentioned.
The problem is a renewal doesnt really change anything in the listing itself but the expiration date.

The renewal scripts call the function

editOrder

Which is defined in /includes/classes/kernal/Orders.php and these in turn call the function...

setExpiration

which is defined in /includes/classes/kernal/Listings.php.

There is nothing built in to change the date added because well..... its not a new ad so why would one expect the date added to change? Renewal just extends the duration the ad runs for.

So what you would likely have to do is create a new function or add code to alter the dateadded manually and work it into the renewal process.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 11-14-2008, 01:23 PM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,467
Rep Power: 130
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Here is an idea. Why not set it up to order the listing by expiration? Might not be the best either though depending on how your packages are setup.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-19-2008, 06:36 PM   #6
Member
 
Join Date: May 2008
Posts: 69
Rep Power: 10
cathouse911 is on a distinguished road
Default So....How do we exact edit this properly

This is important thing because no ones wants to renew a listing and still have hundreds of other ads on the top of it still.

Can someone tell me in detail where to edit this and how.

Please tell the exact file name to edit and how we can edit the code.

Thanks!

We must keep our visitors happy so that we can make $ on our sites and order more 68 Classified mods and stuff
cathouse911 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra checkbox field not showing in listing gysgysco Technical Support 9 12-06-2008 12:36 AM


All times are GMT -4. The time now is 08:21 PM.


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