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
Welcome to jobberBase Developer Community!
You are not logged in. Please login or register.
We've just added a new category for forums dedicated to local communities.
If you're interested in starting a community in your country or even city, please write us at hello@jobberbase.com and we'll make it happen.
We're also looking for moderators on each local community -- so email us :).
Pages: 1
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
Someone help me here
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)
Remove:
$properties['description'] .= '<strong>Description:</strong><br />' . $job['description'] . '<br /><br />';
from _includes/class.Feed.php
Or more elegant solution?: http://www.jobberbase.com/forum/post7867.html#p7867
Hello, i want to have a short description, not to remove the whole description
you can do this:
$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
Posts [ 7 ]
Pages: 1
Powered by FluxBB
[ Generated in 0.033 seconds, 6 queries executed ]