68 Classifieds Forums

Rss

This is a discussion on Rss within the v3.1 Suggestions and Feedback forums, part of the v3.1 Legacy Help & Support category; I looked in the knowledge base and couldn't find it. Is there a simple way to have the ads show ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Suggestions and Feedback

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-06-2006, 11:52 AM
garysmith's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 14
garysmith is on a distinguished road
Send a message via Yahoo to garysmith
Default Rss

I looked in the knowledge base and couldn't find it. Is there a simple way to have the ads show through rss. Did I miss it in the upgrade at 3.1?

gsmith

__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
Reply With Quote
  #2  
Old 05-06-2006, 12:02 PM
Lhotch's Avatar
Moderator
 
Join Date: Mar 2006
Posts: 3,653
Rep Power: 90
Lhotch is just really niceLhotch is just really nice
Default

The file external.php is still in 3.1 which can be used for others to get your ads via rss.
__________________
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

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #3  
Old 05-06-2006, 12:04 PM
juven14's Avatar
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
juven14 is a jewel in the rough
Send a message via Skype™ to juven14
Default

The script only creates an RSS feed. It is up to the end user to work out how it is displayed at other sites or user's computer. There are quite a few ways to display RSS feeds, some use desktop applications and others convert it to html for the web.

To create RSS feeds from your site just pass the right variables to external.php.

The values it is setup to take are:

category = type
city = city
state = state
country = country
ad owner = owner
text search of title and description = searchtext

To utilize these you would call external.php in this manner:

external.php?type=1&city=dallas
__________________
Regards,

John


“By perseverance, study, and eternal desire, any man can become great.” George S. Patton
Reply With Quote
  #4  
Old 05-06-2006, 02:42 PM
garysmith's Avatar
Senior Member
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 14
garysmith is on a distinguished road
Send a message via Yahoo to garysmith
Default

Thanks Guys...

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
Reply With Quote
  #5  
Old 01-16-2008, 07:15 PM
pauljr's Avatar
Member
 
Join Date: Nov 2007
Posts: 41
Rep Power: 5
pauljr is on a distinguished road
Default

For me this seems to only show the newest listings. I want to create 6 feeds for each of my main catagories which would include all the sub catagories last 20 or so listings. Is this possible?
__________________
~Paul
Developer 3.1.10
buyswapsell.com
Reply With Quote
  #6  
Old 01-16-2008, 07:23 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
Default

This is possible but with code changes. Open external.php and find this line:
Code:
if (isset($_REQUEST['type'])&& $_REQUEST['type']<>"")
    {
        $sSQL .= " AND p.section = ".(int)$_REQUEST['type'];
    }
Then replace with:
Code:
if (isset($_REQUEST['type'])&& $_REQUEST['type']<>"")
    {
        $arr_childs = array((int)$_REQUEST['type']);
        get_ids($arr_childs);
        $sSQL .= ( empty($arr_childs) ) ? '': " AND p.section IN (". implode(', ', $arr_childs) .")";
    }
With this change when you enter the parent category it will loop through the children.
__________________
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 | Twitter
Reply With Quote
  #7  
Old 01-31-2008, 07:42 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Exclamation

Quote:
Originally Posted by suzkaw View Post
This is possible but with code changes. Open external.php and find this line:
Code:
if (isset($_REQUEST['type'])&& $_REQUEST['type']<>"")
    {
        $sSQL .= " AND p.section = ".(int)$_REQUEST['type'];
    }
Then replace with:
Code:
if (isset($_REQUEST['type'])&& $_REQUEST['type']<>"")
    {
        $arr_childs = array((int)$_REQUEST['type']);
        get_ids($arr_childs);
        $sSQL .= ( empty($arr_childs) ) ? '': " AND p.section IN (". implode(', ', $arr_childs) .")";
    }
With this change when you enter the parent category it will loop through the children.
This doesn't seem to work.....?

RSS
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
  #8  
Old 02-01-2008, 05:16 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

I fixed the link to the site...not a DNS issue...rather a "me not typing in the correct link" issue...sorry...

Does anyone have any suggestions on this please?

It doesn't appear to work, even with the changes suggested....

Help...I'm going live....
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer

Last edited by Soleiltan; 02-01-2008 at 05:22 PM. Reason: Changed signature.
Reply With Quote
  #9  
Old 02-01-2008, 06:18 PM
cheesegrits's Avatar
PHP Mechanic
 
Join Date: Nov 2007
Posts: 118
Rep Power: 8
cheesegrits has a spectacular aura about
Default

If you want to PM me your email address, I can send you a "known good" working version, which also has a few other fixes in it (like cleaning the title so &'s don't break feed readers).

I'm assuming this is kosher if we both have developer licenses. If not, I'm sure Eric will let me know.

-- hugh
Reply With Quote
  #10  
Old 02-02-2008, 03:40 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

I don't know why not...it will save them some agro.....

-- Lorren
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
Reply

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


All times are GMT -4. The time now is 01:31 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