68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modules
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Modules A forum for discussions, questions, implementation and development of modules. Questions here are beyond "typical" 68classifieds support and not supported by the 68classifieds team.

 
Thread Tools Display Modes
  #1  
Old 07-13-2006, 07:24 AM
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,875
Post Modification: RSS Feed Module

Quote:
This is a free module that allows users to add RSS feeds to their classifieds website. It is built off of the Magpie RSS parser - v 0.72.It has an admin section that allows admins to submit links that are then displayed on any page or all pages via 2 lines of code that is added to the templates.Features:CachingUnlimited FeedsDebugging
Click here to view the full details.

If you have any questions or need support with this modification please reply below.
Reply With Quote
  #2  
Old 07-13-2006, 11:13 PM
wel-usa wel-usa is offline
Member
 
Join Date: Jun 2006
Posts: 71
Default

this mod is great, easy to change news articles, and adjust article listing.

here is an example from my site. http://www.ads47.com/
Reply With Quote
  #3  
Old 08-23-2006, 03:30 AM
garysr garysr is offline
Senior Member
 
Join Date: Mar 2006
Location: Texas
Posts: 102
Thumbs up Locations? in Rss Mod

Quote:
If you have any questions or need support with this modification please reply below.
Great job on the feed mod!

Is there any way to run more than 1 feed on a page? Such as in different locations. It seems I would need a (loc1),(loc2)..etc in the code where it shows, but also when the feed is placed in the admin area it would need a location # to show there. I sure could use this!

Thanks in advance!
Gary
__________________
v3.1.5x Developer
Reply With Quote
  #4  
Old 08-23-2006, 07:17 AM
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,875
Default

Well, the feeds are called at the same time, I really just made this module to setup basic feeds to one place. The core of the module can be used by advanced users to display feeds on any page.

I'll post some code here to use on different pages, though you'd need the developer version. I'll also take another look at the existing module and see what can be done. Maybe sometime this afternoon.
__________________
Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #5  
Old 08-23-2006, 07:46 AM
garysr garysr is offline
Senior Member
 
Join Date: Mar 2006
Location: Texas
Posts: 102
Default

Thanks John, If it could be done by just adding a location, #1, #2...ect that would be great. Then it wouldn't matter if I needed just 5 locations or 100, it would still work. Yes I do have Developer and I can change the code each time I place it, so something simple as one more col in the admin would do it. Location or ID either one.
__________________
v3.1.5x Developer
Reply With Quote
  #6  
Old 08-23-2006, 02:55 PM
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,875
Default

The thing is that the module pulls down all feeds and sends them to the template which then loops through them. I'd have to rewrite most of the module to handle this. It is a good idea, and I agree that this should be a feature.

You can do this for the time being (I haven't tested this, just don't have enough time today):

On the page you want the feed:

PHP Code:
require_once(FILESYSTEM_PATH.'modules/rss_mod/includes/rss_fetch.inc.php');
require_once(
FILESYSTEM_PATH.'modules/rss_mod/includes/rss_utils.inc.php');

$url = "some url";
$rss = fetch_rss($url);

$class_tpl->assign('rss', $rss);
Create a new template page and then give it a name and place it in the modules template folders with the other templates. Then copy the code to the template you wish to be displayed and change the template file to the one you created.

The new template file should look like this:
HTML Code:
<table width="600" align="center">
    <tr>
        <th><strong>  <a href="{$rss->channel.link}">{$rss->channel.title}</a></strong></th>
    </tr>
    <tr>
        <td><a href="{$rss->channel.link}">{$rss->channel.link}</a></td>
    </tr>
    <tr>
        <td>{$rss->channel.description}</td>
    </tr>
    <tr>
        <td>{$rss->channel.copyright}</td>
    </tr>
</table>
{foreach from=$rss->items item=item}
<table width="600" align="center">
    <tr>
        <th><strong>  <a href="{$rss->items.link}">{$rss->items.title}</a></strong></th>
    </tr>
    <tr>
        <td>{$rss->items.description}</td>
    </tr>
</table>
{foreachelse}
<table width="600" align="center">
    <tr>
        <td>No Feeds Availible</td>
    </tr>
</table>
{/foreach}
__________________
Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #7  
Old 08-23-2006, 03:57 PM
garysr garysr is offline
Senior Member
 
Join Date: Mar 2006
Location: Texas
Posts: 102
Default

Thanks a Million John!

I have already started down that very path! Great we are on the same path. I just never would have come up with the top code, That's just what I needed!!

Also I have another way to do it, and think it would be alot easier for you to add to your mod.

I don't have but a min so I'll get back later.

Thanks John!

~~~Running away~~~Smiling ear to ear~~~~~
__________________
v3.1.5x Developer
Reply With Quote
  #8  
Old 09-25-2006, 06:08 AM
sporthorsebreeder sporthorsebreeder is offline
Senior Member
 
Join Date: Apr 2006
Posts: 124
Default adjusting the size of the generated feeds

I have just installed the RSS feed module which is working great.
How do I adjust the size of the generated feeds as I want to display them under the left navagation panel?
Cheers
Hugh
Reply With Quote
  #9  
Old 09-25-2006, 06:13 AM
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,875
Default

set the width in the feeds template and give the table class the "navigation style"

Change this section:

HTML Code:
<table width="700" align="center">
To:
HTML Code:
<table width="100%" class="navigation" align="center">
Then find:

HTML Code:
<table width="600"
and replace with:
HTML Code:
<table width="100%"
__________________
Regards,

John
mods.auscity.com
v3.1.7 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #10  
Old 09-25-2006, 06:44 AM
sporthorsebreeder sporthorsebreeder is offline
Senior Member
 
Join Date: Apr 2006
Posts: 124
Default

Thanks for the quick reply John.
That worked fine.
I have a problem with the header background that shows behind the link for the RSS feed. How can I change the colour of the background (its showing the colour of all the header backgrounds on the home page) to another colour, or if that is not possible then remove the background colour from the link headings.
Cheers
Hugh
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification: Users Online Module juven14 v3.1 Modules 18 06-04-2007 06:06 PM
Modification: Rating Module suzkaw v3.1 Modules 11 12-05-2006 09:40 AM
Difference between RSS Feed Module & News Mod by Maffo dawyatt v3.1 Modifications 14 09-23-2006 09:51 PM


All times are GMT -4. The time now is 04:56 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.