andrewsegawa

Topic: Shortening the RSS

Hello, i would like to know how i can display just the summary of my RSS feed, i want to syndicate my feed but i do not want the feed aggregators to pull the whole feed

andrewsegawa

Re: Shortening the RSS

Someone help me here

Ralf

Re: Shortening the RSS

This question fits to my idea of

removing job description from the rss feed.

How could this be achived? I would like my rss feeds to show everything they do today but without the jobdecription. I guess it will be by changing sth. in the /_template/whatever/rss.tpl and/or the /_includes/class.RssWriter.php

Any help is appreciated.

(btw. reason for this is that I have designed ads that get messed up on the rss feed)

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

hobo

Re: Shortening the RSS

Remove:

Code:

            $properties['description'] .= '<strong>Description:</strong><br />' . $job['description'] . '<br /><br />';

from _includes/class.Feed.php

hobo

Re: Shortening the RSS

Or more elegant solution?: http://www.jobberbase.com/forum/post7867.html#p7867

andrewsegawa

Re: Shortening the RSS

Hello, i want to have a short description, not to remove the whole description

redjumpsuit

Re: Shortening the RSS

you can do this:

Code:

$desc_length = 100;
$properties['description'] .= '<strong>Description:</strong><br />' . substr(strip_tags($job['description']),0,$desc_length) . '<br /><br />';

$desc_length will the be number of characters you want to show in your short description.

note that i took into consideration if you are using an HTML/WYSIWYG editor to post jobs like TinyMCE, this will strip the HTML tags from your description before returning the shortened string, or it might cut an HTML tag short and break your whole template

will host your job board for you at minimal cost! read more: http://mim.io/acb992