|
|
#1 |
|
Junior Member
Join Date: Mar 2006
Posts: 16
Rep Power: 14 ![]() |
I would like to add the NEW or FEATURED or TOP listings on my sites home page (www.mysite.com). The 68 Classifieds is a folder within my main site (www.mysite.com/classifieds). Can I use an include to do this? Is it even possible? I looked in the mods area but saw nothing. Thanks.
|
|
|
|
|
#2 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,176
Rep Power: 119 ![]() |
I have done this before but with two different sites. 68 Classifieds has a file external.php that will print an rss feed for listings. I used this and a php rss reader to print the latest ads.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2006
Posts: 16
Rep Power: 14 ![]() |
So point the reader to www.mysite.com/classifieds/external.php and it will read this file? Or is there more to it?
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,176
Rep Power: 119 ![]() |
That should be all you have to do. It does have some parameters you can use:
type=number <-- Category owner=number <-- The owner id. This would be just their listings searchtext=text <-- This would be any search keywords. limit=number <-- The number to show. Default is 15 So to use these you would call: external.php?type=1&owner=1&searchtext=ford&limit= 20 Any of these can be used or not used. But that is just an example.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules |
|
|
|
|
#5 | |
|
Coder
Join Date: Mar 2006
Posts: 4,610
Rep Power: 112 ![]() ![]() |
Quote:
Alternatively you can just do your own database call selecting the records you want. |
|
|
|
|
|
#6 |
|
Moderator
|
If you are willing to use smarty on your main site, you can copy the smarty plugin over and display it anywhere on you site in the same manner as you did within the classifieds directory.
I've tested it, and plan on doing this myself. I included the database connection and copied over the plugin. One thing to note, I had to copy the currency function from functions.php inside of the plugin. Works like a charm.
__________________
John Snyder PHP Developer |
|
|
|
|
#7 |
|
Junior Member
Join Date: Mar 2006
Posts: 16
Rep Power: 14 ![]() |
Thanks for all of your help. I have gotten it to work fine with the reader. I assume the only thing being returned here is the TITLE and the LINK, right? At least my reader only picks up those 2 items.
|
|
|
|
|
#8 | |
|
Coder
Join Date: Mar 2006
Posts: 4,610
Rep Power: 112 ![]() ![]() |
Quote:
PEAR's xml-rss works very well and is easy to use. http://pear.php.net/package/XML_RSS ***EDIT*** I stand corrected there isnt a description by default. I forgot I modified mine to include more fields. |
|
|
|
|
|
#9 |
|
Moderator
|
The fields set up in the rss-mod are:
Site Title Site Description Listing Title Listing Short Description Listing Link Listing Image URL Date (Today's date, I think) - this was changed, maybe Chaslie can update the file, it should be dateadded. Which of these displayed is determined on the rss-template file. As for the default external.php It should display: Site Title Site URL Site Description Listing Title Listing Link Listing Creator Listing dateadded
__________________
John Snyder PHP Developer |
|
|
|
|
#10 | |
|
Moderator
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 745
Rep Power: 28 ![]() |
John,
Quote:
__________________
Chaslie V4.1 dev 68 Classifieds Important Links Customer Area | Issue Tracker | User Manuals & Documentation HTML Help W3 Schools |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thumbnail images for New listings on Home Page | marketingsolutions | v3.1 Questions & Support | 6 | 01-12-2007 11:13 AM |
| I need to remove category listings from home page | marketingsolutions | v3.1 Modules & Modifications | 1 | 09-26-2006 12:07 PM |
| Newest Listings On Home Page | zman78 | v3.1 Modules & Modifications | 24 | 05-26-2006 08:23 AM |
| Show Top Listings On Home Page | zman78 | HTML, CSS, and Design Help | 3 | 04-21-2006 04:32 AM |
| Featured Listings on Home Page | LukeOut | v3.0 Questions & Support | 9 | 04-06-2006 04:36 PM |