CaRP: Caching RSS Parser - Documentation
CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates
Channel Image
Evolution | LE | Koi | SE |
All | n/a | >=3.1 | n/a |
To display the channel image, include the word "image" in your cborder or caorder setting. For example:
CarpConf('cborder','image,link,desc');IMPORTANT NOTE
The settings described on this page apply only to images that the feed points to using <enclosure> and <image> elements. If the feed points to the images using HTML <img> tags, they must be displayed using the descriptiontags setting.
Display formatting options
- bcimage ("before channel image") : Specifies text and/or HTML to be displayed before the channel image.
- acimage ("after channel image") : Specifies text and/or HTML to be displayed after the channel image.
- defcimageh ("default channel image height") : The height in pixels for the channel image if no height is specified by the newsfeed. If zero ("0"), no automatic height default is applied.
- defcimagew ("default channel image width") : The width in pixels for the channel image if no width is specified by the newsfeed. If zero ("0"), no automatic width default is applied.
- maxcimageh ("maximum channel image height") : The maximum height in pixels for the channel image. If zero ("0"), the image will not be scaled down, no matter how large it is, unless maxcimagew results in scaling. Depending on the image dimensions, the height may be scaled smaller in order to maintain the proper aspect ratio if maxcimagew is also specified. This setting is only applied if the newsfeed specifies an image height.
- maxcimagew ("maximum channel image width") : The maximum width in pixels for the channel image. If zero ("0"), the image will not be scaled down, no matter how large it is, unless maxcimageh results in scaling. Depending on the image dimensions, the width may be scaled smaller in order to maintain the proper aspect ratio if maxcimageh is also specified. This setting is only applied if the newsfeed specifies an image width.
- setcimageh ("set channel image height") : The height in pixels of the channel image. This dimension will be applied whether the newsfeed specifies a height or not. If both setcimageh and setcimagew are specified, the image may be distored depending on the settings and the image's actual dimensions. If only one is set, the aspect ratio will be preserved.
- setcimagew ("set channel image width") : The width in pixels of the channel image. This dimension will be applied whether the newsfeed specifies a width or not. If both setcimageh and setcimagew are specified, the image may be distored depending on the settings and the image's actual dimensions. If only one is set, the aspect ratio will be preserved.
If setcimageh or setcimagew is specified, the default and maximum size settings are ignored. The default and maximum size settings, on the other hand, may be used together.
Example
CarpConf('cborder','image,link,desc'); CarpConf('bcimage','<div style="float:left;margin-right:5px;">'); CarpConf('acimage','</div>'); CarpConf('defcimagew',60); CarpConf('maxcimagew',60);The above settings will ensure that no image is displayed more than 60 pixels wide, whether the newsfeed specifies its dimensions or not.