Cleaning Up sharepointsecurity.com

I am going through and cleaning up the main website, I have this problem of half writing articles, and just leaving them within the nuke content module and just moving onto something else when I get bored. As well, I have some formatting stuff on some of the articles that was pretty poor, it doesn't parse right due to the mod_rewrite / .htaccess configuration on the server.

I also FINALLY finished the parsing code for the RSS 2.0 feed for the main site, which for some reason was terrible tradgedy to actually get going.

I was just fetching the rows:

PHP:
  1. $result = $db->sql_query("SELECT text, pid, title, date FROM '.$user_prefix.'_pages WHERE active=1 ORDER BY date DESC LIMIT '.$rssFeedLimit");
  2.  
  3. while ($row = $db->sql_fetchrow($result)) {
  4. $rsid = intval($row['pid']);
  5. $title = $row['title'];
  6. $text = $row['text'];
  7. $time = $row['date'];

and then echoing out the results:

PHP:
  1. echo "\n";
  2. echo "\n";
  3. <link />[blah]\n";
  4. echo "".$text.">\n";
  5. echo "".$rsid."@".$nukeurl."\n";
  6. echo "".$title."\n";
  7. echo "".$date."\n";
  8. echo "Posted by ".$adminmail."\n";
  9. echo "\n\n";

and it wasen't working. Why? I had screwed up setting some of the strings. Either way I got it done, and the RSS links are now available in the upper left hand corner of the main site as well as on this site to the right.

Enjoy!

  • Share/Bookmark

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment