Support Forums

Expired Listings

This is a discussion on Expired Listings within the Modules / Plugins / Modifications forums, part of the Developer Forums category; In my expired listings, I am seeking a unique variable for that listing such as the page number from the ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-21-2008, 06:54 PM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,940
Rep Power: 71
seymourjames is a jewel in the rough
Default Expired Listings

In my expired listings, I am seeking a unique variable for that listing such as the page number from the url that I can place in the listing title - even a number. When I use debug, it does not seem to show the variables available. For example, I would like to set the title of this advert Property In France - Charming Stone Property In Gironde when it expires to say property in france - 140 or even keep the whole title if possible. A quick shout will help. This is because there may be links out there to expired listings.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 08-31-2008, 10:34 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,940
Rep Power: 71
seymourjames is a jewel in the rough
Default

Is there anyway to stop a listing being deleted when it has expired so it retains its URL but it is not linked to its category. Basically it gets assigned to a category called 'expired'. This category can then be made visible (linkable) or invisible to the visitor.

The Problem: The reason for this is that the search engines will keep looking for a listing once it has expired and will keep getting the same listings expired page. From an SEO point of view this is bad because the search engine will potentially see hundreds of duplicate pages as listings expire.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 09-08-2008, 03:07 PM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,940
Rep Power: 71
seymourjames is a jewel in the rough
Default

Any ideas about this?

The preferable solution is that expired ads continue in force but they are not linked to there category but go into a new category called expired which can be orphaned from the main site or linked very low down in the hierarchy.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 09-08-2008, 03:24 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 131
Eric Barnes is just really nice Eric Barnes is just really nice
Default

My only guess would be to edit the getListingById method in the Listings class.

It currently checks for:
$sSQL .= ' AND display="Y" AND expiration > NOW()';

So you would need to remove the expiration clause and check with php for what to do next. Could get pretty complex.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-08-2008, 03:24 PM   #5
curmudgeon
 
Join Date: Mar 2006
Posts: 5,321
Rep Power: 131
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

I would say just modify /includes/cron.php.

goto th section that determines if an ad is to be deleted, alter the query so that instead of deleting it it simply changes the ads category. The ad is likely already set to no display because it expired so you may need to alter that as well if you want the ad to stay visible.

From a unique variable standpoint, cant you just append the ad ID to the URL string?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-08-2008, 03:49 PM   #6
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,940
Rep Power: 71
seymourjames is a jewel in the rough
Default

I did that with the ID to make the url, title and description unique and a message that the advert had expired but here are a few alternatives - in my case I just present them with 5 randomly chosen listings. Better if I could arrange to show them something from the same category. I may try to do that. It would make more sense. A similar listings type function.

I suppose the issue for me and perhaps others is that if we have large batches of ads expiring the site can thin pretty quickly. In an emergency (i.e. a big block of ads were coming up to expire) what would be the best way to extend the expiration period. Changing each ad individually in the admin panel would take time.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 09-08-2008, 03:59 PM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,321
Rep Power: 131
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 seymourjames
I suppose the issue for me and perhaps others is that if we have large batches of ads expiring the site can thin pretty quickly. In an emergency (i.e. a big block of ads were coming up to expire) what would be the best way to extend the expiration period. Changing each ad individually in the admin panel would take time.
expiration is a datetime field in the listing database and is populated at ad creation with a datetime based on the packages listing duration. You could do a bulk change of records based on a condition via the mysql command line or probably from phpmyadmin.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-08-2008, 04:01 PM   #8
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,940
Rep Power: 71
seymourjames is a jewel in the rough
Default

I will go the phpadmin route. I have a few months before a big batch need changing to let them go gracefully. Thanks Larry.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Number of days you would like expired listings to be deleted" Success Technical Support 1 04-10-2008 09:26 AM
V4 Changes Eric Barnes Technical Support 24 11-12-2007 02:35 AM


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


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