How to add the copyright information in feed

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
marco.chan
Posts: 12
Joined: Wed Sep 29, 2010 2:13 pm
Location: china
Contact:

How to add the copyright information in feed

Post by marco.chan »

How to add the copyright information in feed? share methods.
edit feed/latest/rss.php

add code:

Code: Select all

        //RSS copyright
$copyright ='<div>转摘请注明出处:<a href="http://www.qhfaq.com" target="_blank" title="">'.$faqconfig->get('main.titleFAQ'). '</a> - 《<a rel="bookmark" title="'.$item['thema'].'" href="'.$link.'" target="_blank">'.$item['thema'].'</a>》</div>
             <div>本文链接地址:<a href="'.$link.'" target="_blank" title="'.$item['thema'].'">'.PMF_Link::getSystemUri('/feed/latest/rss.php').$link.'</a></div>
			 <div>订阅最新文章:<a href="http://feed.feedsky.com/qhfaq" target="_blank" title="订阅最新文章">http://feed.feedsky.com/qhfaq</div>';
        
        // Fix the content internal image references
        $content = str_replace("<img src=\"/", "<img src=\"".PMF_Link::getSystemUri('/feed/latest/rss.php')."/", $content.$copyright);
Results look here: http://feed.feedsky.com/qhfaq ,at the end of each record has a copyright information.
China Futures FAQ:期货入门www.qhfaq.com
Post Reply