Jump to content

Search the Community

Showing results for tags 'faq rss'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • The latest WHMCS Release
    • V7.9 Beta Discussion
  • The Latest from the WHMCS Team
    • News & Announcements
    • The WHMCS Blog
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Beta Program
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • SwiftModders Club's Topics
  • WHMCS Global Services Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. this is a little script i created to display all knowledgebase articles in an RSS2 feed. Really simple script, just upload the file to the root of your WHMCS install. (knowledgebaserss.php) you could also setup a rewrite rule so the url looks like an rss feed, add this to you .htaccess file after the RewriteEngine On line: RewriteRule ^knowledgebase.rss /knowledgebaserss.php below is the code, simply copy it into a file called knowledgebaserss.php, or download the attached zip file, unzip it and upload it. <?php header("Content-Type: application/xml; charset=ISO-8859-1"); echo '<?xml version="1.0" encoding="ISO-8859-1"?'.'>'."\n"; echo '<rss version="2.0">'."\n"; echo '<channel>'."\n"; define("CLIENTAREA",true); //define("FORCESSL",true); # Uncomment to force the page to use https:// require("dbconnect.php"); require("includes/functions.php"); require("includes/clientareafunctions.php"); function k_rss_systemurl(){ $result = mysql_query("SELECT * FROM tblconfiguration WHERE setting='SystemURL'"); while ($data = mysql_fetch_array($result, MYSQL_ASSOC)) {return $data['value'];} }//function function k_rss_systemname(){ $result = mysql_query("SELECT * FROM tblconfiguration WHERE setting='CompanyName'"); while ($data = mysql_fetch_array($result, MYSQL_ASSOC)) {return $data['value'];} }//function //check for seo friendly urls $result = mysql_query("SELECT * FROM tblconfiguration WHERE setting='SEOFriendlyUrls'"); while ($data = mysql_fetch_array($result, MYSQL_ASSOC)) {if($data['value'] == 'on'){$seourls = true;}} echo '<title>'.k_rss_systemname().' Knowledgebase Feed</title>'; echo '<description>'.k_rss_systemname().' Knowledgebase Feed created by WHMCS Knowledgebase RSS addon module.</description>'; echo '<link>'.k_rss_systemurl().'</link>'; $result = mysql_query("SELECT * FROM tblknowledgebase"); while ($data = mysql_fetch_array($result, MYSQL_ASSOC)) { echo '<item>'."\n"; echo '<title>'.$data['title'].'</title>'."\n"; echo '<description>'.strip_tags(substr($data['article'],0,140)).'</description>'."\n"; echo '<link>'.k_rss_systemurl().'knowledgebase.php?action=displayarticle&id='.$data['id'].'</link>'."\n"; if($seourls){ echo '<link>'.k_rss_systemurl().'knowledgebase/'.$data['id'].'/'.str_replace(' ','-',$data['title']).'.html</link>'."\n"; }else{ echo '<link>'.k_rss_systemurl().'knowledgebase.php?action=displayarticle&id='.$data['id'].'</link>'."\n"; }//if echo '</item>'."\n"; }//while echo '</channel>'."\n"; echo '</rss>'."\n"; ?> knowledgebaserss.php.zip
×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated