Complete Listings List

This is a discussion on Complete Listings List within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; Well we have "New Listings", "Featured Listings", "Top Listings" and then categories and sub-categories never mind the "search" function but ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

 
LinkBack Thread Tools Display Modes
  #1  
Old 11-21-2008, 12:21 PM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default Complete Listings List

Well we have "New Listings", "Featured Listings", "Top Listings" and then categories and sub-categories never mind the "search" function but I am being prevailed upon to come up with a way to show (in a printable format too I'm sure) every listing on our site at least with titles and possibly with a brief summary. I'm not really enthused about it but I must sail this ship as commanded.

I suspect the idea is to have basically an inventory list without photographs.

Is there a way to generate such a list in either alphabetical order or by category?

Thanks for your time,

Ken

__________________
v3.1.10 Designer
Reply With Quote
  #2  
Old 11-21-2008, 12:29 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
Default

Quote:
Originally Posted by PFZ_Ken View Post
Well we have "New Listings", "Featured Listings", "Top Listings" and then categories and sub-categories never mind the "search" function but I am being prevailed upon to come up with a way to show (in a printable format too I'm sure) every listing on our site at least with titles and possibly with a brief summary. I'm not really enthused about it but I must sail this ship as commanded.

I suspect the idea is to have basically an inventory list without photographs.

Is there a way to generate such a list in either alphabetical order or by category?

Thanks for your time,

Ken
top listings just displays the listings with the most views and limits the output to a pre specified number. You could easily use it as the basis for what you want to do, just alter the query to show listing alpha instead of by views and get rid of the limit so it displays all.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 11-22-2008, 08:59 AM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default Mod Request - WILL PAY

If someone can write and help me install a mod that will give a link that when clicked on will display a printable plain text list of our complete listings with a no more than two line title/description, PM me.

In our business there are many for whom PCs are not yet effective, productive tools. Most are used to dealing with a printed list be it an auction list or whatever. Again, it does not have to be fancy but it does need to be as easy to read as such a thing can be. I guess in the "old days" I'd need some sort of database app but with PHP and the code writing talent on this board, I can't see that it should be too difficult to do.

Gimme a yell,

Ken
__________________
v3.1.10 Designer
Reply With Quote
  #4  
Old 11-22-2008, 10:36 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
Default

here is a start you will need to modify as needed for content and formatting.

PHP Code:
<?php

require_once('includes/init.php');

    
//now setup the search query
    
$sSQL="SELECT p.id, p.owner, p.title, p.featured, p.section, p.description, p.price, p.dateadded, p.expiration, p.pBold, p.pHighlighted, u.state, u.city, u.country, u.username FROM ".PREFIX."products AS p LEFT JOIN ".PREFIX."users AS u ON p.owner = u.id WHERE p.expiration > NOW() AND p.display = 'Y' ORDER BY p.title DESC";
    
    
//buld array of listings
    
$ads = array();
    
$result $db->query($sSQL);
    while (
$rs=$result->fetch()) 
    { 
        
$ads[] = $rs;
    }
    
    
    
// list returned threads
    
if (!empty($ads))
    {
        foreach (
$ads AS $listing)
        {
            echo 
$listing[title];
            echo 
$listing[description];
            echo 
"<br />";
            
        }
    }

?>
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #5  
Old 11-22-2008, 04:16 PM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default

Thanks for the code Larry, what do I do with it, specifically?

Ken
__________________
v3.1.10 Designer
Reply With Quote
  #6  
Old 11-22-2008, 07:09 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,736
Rep Power: 91
Default

stick it in a file in the root of your classifieds and pioint a browser at it.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #7  
Old 11-23-2008, 11:19 AM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default

Ok, that works but includes every word in every listing, so I'll need to tweak it for inclusion and formatting. Wish I knew more about CSS....

Thanks Larry,

Ken
__________________
v3.1.10 Designer
Reply With Quote
  #8  
Old 11-23-2008, 12:05 PM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default

Ha, coolness....

Inventory Plain Text List

Now, only two things and it will be perfect (in order of importance)

1) The list is in reverse alphabetical order, how can I correct this to alphabetical order?

2) While I did say one major use of this function will be to print out a list, I can see it coming that it will be useful to be able to pull this list up in a browser and then click on the title to go to the listing. How do I make the title clickable?

If necessary I can have two links, one to the plain text link for printing, the other for clickable titles.

Answer these two and I'll dance at your next wedding!

Ken
__________________
v3.1.10 Designer
Reply With Quote
  #9  
Old 11-23-2008, 01:19 PM
Moderator
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,038
Rep Power: 31
Default

1) change the line with the $sSQL at the end from "DESC" to "ASC"

2) That would be much, much more complex. I don't really see the point however as the original intent was so people could "print out" a list. If they're already online, then they can easily use the site as intended including browse, search, etc.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1RC1

Templates, Mods & Docs | My blog with much content for 68 Classifieds.

Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Reply With Quote
  #10  
Old 11-23-2008, 01:43 PM
Member
 
Join Date: Jan 2008
Posts: 70
Rep Power: 6
Default

Quote:
Originally Posted by Mike-N-Tosh View Post
1) change the line with the $sSQL at the end from "DESC" to "ASC"

2) That would be much, much more complex. I don't really see the point however as the original intent was so people could "print out" a list. If they're already online, then they can easily use the site as intended including browse, search, etc.

-Mike
Thanks Mike, show's you what I know, I read "DESC" as "Description". Anyway, it's done. Point taken about "2)". I guess I've heard "that's fine but...." after showing the powers that be the lastest change too many times...now I'm starting to anticipate the "buts".

I'll leave it as is and the first "but" gets my patented "Pre-Postal" look....

Thanks guys, Larry and Mike. If you're lurking but haven't paid the modest price for 68c and happen to see this thread, this community support is one of the things that makes 68c great. I've paid ALOT more for software, scripts etc. and gotten much, much less in the way of support.

Ken
__________________
v3.1.10 Designer
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JOB:create complete site DominickVerstoep v4 Questions & Support 1 10-01-2008 06:16 PM
Error after install complete Mike-N-Tosh v3.1 Questions & Support 7 01-31-2007 01:24 PM
SMF usershare 50% complete.. need a hand quick Chad v3.1 Questions & Support 13 10-06-2006 02:02 PM
Forum Upgrade is Complete Eric Barnes News & Announcements 0 08-14-2006 04:46 PM
V3.0.15 payment ad not complete newone v3.0 Questions & Support 18 07-09-2006 10:50 AM


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


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22