Support Forums

next listing

This is a discussion on next listing within the Templates, HTML, CSS, and Design Help forums, part of the General category; I wanted to know how I can do, when i'm in the listing page(for example viewlisting.php?view=3396), how can I add ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 11-07-2010, 05:23 AM   #1
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default next listing

I wanted to know how I can do, when i'm in the listing page(for example viewlisting.php?view=3396), how can I add a link to the listings upcoming??
(viewlisting.php?view=3397)
(viewlisting.php?view=3401)

next listing >>
thank you

Last edited by antonio71; 11-07-2010 at 05:25 AM.
antonio71 is offline   Reply With Quote
Old 11-07-2010, 09:48 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Generally speaking when you view an ad the software doesnt know which next is before or after the one you are viewing. There are also different methods of getting to an ad (ie search results, category listing, store listing etc) and the "upcomming" listing may be different for each.

Best bet would be to alter the script to do another DB query when you view an ad and get the ad ID of the next ad based on your desired criteria (which you didnt state) such as next ad by date, category etc etc. Then display the link based on the results of your query.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 11-07-2010, 12:17 PM   #3
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default

Quote:
Originally Posted by Lhotch
Generally speaking when you view an ad the software doesnt know which next is before or after the one you are viewing. There are also different methods of getting to an ad (ie search results, category listing, store listing etc) and the "upcomming" listing may be different for each.

Best bet would be to alter the script to do another DB query when you view an ad and get the ad ID of the next ad based on your desired criteria (which you didnt state) such as next ad by date, category etc etc. Then display the link based on the results of your query.
I know, but how can I do?
thanks
antonio71 is offline   Reply With Quote
Old 11-10-2010, 11:29 AM   #4
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default next listing

Quote:
Originally Posted by antonio71
I know, but how can I do?
thanks
can someone help me ??

thank you
antonio71 is offline   Reply With Quote
Old 11-10-2010, 02:45 PM   #5
Staff
 
Join Date: Mar 2006
Posts: 587
Rep Power: 34
Blair will become famous soon enough
Default

Hi Antonio-

If you're not able to complete the custom code changes on your own, you might want to consider hiring one of these guys to help: ClassifiedMods Professionals
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline   Reply With Quote
Old 11-11-2010, 03:27 AM   #6
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

you could do something like this
<a href="viewlisting.php?view={$lid-1}" title="Previous Listing">Previous Listing</a>
<a href="viewlisting.php?view={$lid+1}" title="Next Listing">Next Listing</a>

Just uses smarty to + 1 to the previous url or -1

Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 11-11-2010, 04:15 AM   #7
Banned
 
Join Date: May 2010
Posts: 17
Rep Power: 0
antonio71 is on a distinguished road
Default Previous Listing Next Listing

is right, except that in this way gives me the ads in sequence, but I wish I wish I only recall the same category listing

Meanwhile, many thanks to the availability
antonio71 is offline   Reply With Quote
Old 11-11-2010, 07:57 AM   #8
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Quote:
Originally Posted by antonio71
is right, except that in this way gives me the ads in sequence, but I wish I wish I only recall the same category listing

Meanwhile, many thanks to the availability
No worries, that is not goign to be an easy project by any means. Good luck with it though
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 01-17-2011, 03:37 AM   #9
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 16
ombre is on a distinguished road
Default

Quote:
Originally Posted by antonio71
is right, except that in this way gives me the ads in sequence, but I wish I wish I only recall the same category listing

Meanwhile, many thanks to the availability
My previous next mod is doing just this
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline   Reply With Quote
Old 02-06-2011, 01:55 AM   #10
Scotty
 
Join Date: Apr 2010
Posts: 29
Rep Power: 6
pickyourownpet.com is on a distinguished road
Default

When will this be ready, Ombre? I would most certainly purchase this!
pickyourownpet.com is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Number to take person directly to a listing? domino Technical Support 15 09-28-2008 06:04 AM


All times are GMT -4. The time now is 10:36 PM.


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