|
RSS feeds on your webpages Optimized for webmasters |
|
Home
Demo Download F.A.Q. |
Because RSS feeds are more present than ATOM feeds. The address has to be the shape : http://URL and not feed://URL It corresponds to the color of the feed which you want to display. During the creation of your templates and their styles, you will create different styles of colors containing the prefix, in three letters, of the color. Original templates proposes styles of 4 different colors (black, blue, red and purple). It generates automatically the code to be put in the page in when you want display your feed, in functions of the options chosen. Verify that it's indeed a RSS feed and not a ATOM feed. We don't treat ATOM feed. We tried to sort out all the errors of encodings met during tests. Maybe there is always some because the encodings of feeds are very varied. We have to delete all the HTML TAG in the display, except <div>, <a>, <b>, <i>, <p>, <br>, <hr>, <li> and <ul>, to have no enormous video or picture which come broken the graphic charter. To display a new tag, edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/mesfonctions.php. Find the function enlever_balises (l. 377). Modify the following line and add to the list, the tag which you want to display : $string = strip_tags($string, '<div><a><b><i><p><br><hr><li><ul>'); We selected the tags of the RSS feeds who seemed to us indispensable. We thus have keep the following ones : The date is contained in the following <div> tag : <div id="RSSAdate" name="RSSAdate" class="rssa_date_jour"> It is up to you him apply any style. "Last updated" is contained in the following <div> tag : <div id="RSSAupdate" name="RSSAupdate" class="rssa_maj"> It is up to you him apply any style. Yes, it's possible to add your own template. Create a directory TEMPLATE_name in the rssA directory. The display by date is made with one file named bydate.php. The display by feed is made with two files named channel_byflux.php and item_byflux.php. The styles of these templates will be in a file named index.css. We already propose some templates. Do not hesitate to take example above. {FEED_NAME} : display the name of the feed {CHAN_STYLE} : display the style given to the feed {CHAN_URL} : display the URL of the feed {CHAN_TITLE} : display the title of the feed {CHAN_LINK} : display the link of the feed {CHAN_DESC} : display the description of the feed {CHAN_RIGHT} : display the copyright of the feed {CHAN_LOGO} : display the logo of the feed {ITEM_STYLE} : display the style given to the article {ITEM_TITLE} : display the title of the article {ITEM_LINK} : display the link of the article {ITEM_DESC} : display the description of the article {ITEM_AUT} : display the author of the article {ITEM_THEIRDATE} : display the date of the article with the original format {ITEM_DATE} : display the date of recovery of article with the chosen format We have think of everything for you. We created a function which is going to count the number of times when it finds every tag who are in the data base. To display it you just have to insert the following lines where you want to display your tag cloud, in the file which display your feeds : <?php $path = 'ABSOLUTE_PATH_TO_YOUR_RSSA_DIRECTORY'; include($path.'/admin/fonctions/tag_cloud.php'); tag_cloud (); ?> To modify the display of these tags, edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/tag_cloud.php. The variable $tempo returns the tag and $nombre returns the number of times when it is in the data base. Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $PswAdmin (l. 26) : $PswAdmin = 'YOUR_PASSWORD'; Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $CHEMIN (l. 28) : $CHEMIN = 'ABSOLUTE_PATH'; Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $URLRSSA (l. 30) : $URLRSSA = 'URL_RSSA_DIRECTORY'; Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $DATEFORMAT (l. 32) : $DATEFORMAT = DATE_FORMAT'; Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $LANGUAGE (l. 34) : $LANGUAGE= 'LANGUAGE'; Edit : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/config.php. Change the variable $lesjours (l. 36) which corresponds to a array of days (attention begun well list by Sunday). Change the variable $lesmois (l. 37) which corresponds to a array of the months. It's in french by default : $lesjours = array('Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'); $lesmois = array('', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai','Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'); Call : http://www.YOUR_DOMAIN_NAME.com/rssA/admin/fonctions/rafraichir_article.php in your Cron task and configure you refresh time at the same periodic time in the admin panel.
|