Support Forums

RSS Feed Question

This is a discussion on RSS Feed Question within the Technical Support forums, part of the Technical Support Forums category; I'm fairly new to 68c and am just getting into the RSS Feed Issue, and have a question. And I ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-21-2009, 02:13 PM   #1
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 229
Rep Power: 12
MrGForce is on a distinguished road
Default RSS Feed Question

I'm fairly new to 68c and am just getting into the RSS Feed Issue, and have a question.

And I do have Mike's ... Using the RSS Feed ... publication.

When bringing up RSS feeds, ( ie7 and 8 show them in the browser very nice), each listing displays the entire description field info. Is this normal, or is it because I don't use the "Short Description" field?

And if this is the case, does anyone know if there is a way, or know of a way to display only up to so many description field characters with maybe dots after that to indicate that there are more words available?
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template

Last edited by MrGForce; 06-21-2009 at 02:37 PM.
MrGForce is offline  
Old 06-21-2009, 04:41 PM   #2
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,128
Rep Power: 63
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I haven't tested this, but it should work. In the external.php file around line 144 find this:
PHP Code:
$listing['description'] = Filter::nonTagHtmlEntities($listing['description']); 
Right after that insert this line:
$listing['description'] = substr_replace(($listing['description']), '...', 50, -1);

Replace the 50 with however many characters that you want to display of the description in your feed.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 06-21-2009, 05:14 PM   #3
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 229
Rep Power: 12
MrGForce is on a distinguished road
Default

Thank you again Mike, and just as always, you're right on the mark. It's perfect.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x Twitter feed Ldanakos Modules / Plugins / Modifications 2 03-27-2009 01:01 PM


All times are GMT -4. The time now is 10:57 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0