|
|
#1 |
|
Senior Member
|
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 4,001
Rep Power: 98 ![]() ![]() |
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 | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#3 |
|
Moderator
|
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 |
|
|
|
|
|
#4 |
|
Senior Member
|
Thanks Guys...
gsmith |
|
|
|
|
|
#5 |
|
Member
Join Date: Nov 2007
Posts: 41
Rep Power: 6 ![]() |
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?
|
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,670
Rep Power: 108 ![]() |
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'];
}
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) .")";
}
__________________
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 |
|
|
|
|
|
#7 | |
|
Senior Member
Join Date: Jan 2008
Posts: 124
Rep Power: 7 ![]() |
Quote:
RSS
__________________
~~ Lorren Any advice is always appreciated. ![]() v 3.1.10 Developer; v 4 Developer |
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Jan 2008
Posts: 124
Rep Power: 7 ![]() |
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 04:22 PM. Reason: Changed signature. |
|
|
|
|
|
#9 |
|
PHP Mechanic
Join Date: Nov 2007
Posts: 118
Rep Power: 9 ![]() |
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 |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Jan 2008
Posts: 124
Rep Power: 7 ![]() |
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|