Advertise here

Permalink - http://pastebin.ws/652f70 - PHP - 86.11.xx.xx - Posted January 11, 2009, 4:00 am

Validate HTML - Validate CSS

Reply tree

  • 8nw1gj - 3 years, 3 weeks, 6 days, 2 hours, 56 minutes ago - by 194.176.xx.xx
    • 652f70 - 3 years, 3 weeks, 5 days, 46 minutes ago - by 86.11.xx.xx
      • 9bz0jr - 1 year, 11 months, 3 days, 23 hours, 40 minutes ago - by 123.125.xx.xx
      • 4f3w9s - 1 month, 2 weeks, 2 days, 4 hours, 22 minutes ago - by 46.33.xx.xx
    • 1iq9h0 - 3 years, 3 weeks, 4 days, 23 hours, 28 minutes ago - by 86.11.xx.xx
      • cvv97m - 1 year, 7 months, 1 week, 1 day, 15 hours, 34 minutes ago - by 213.239.xx.xx
      • 9gj5ey - 8 months, 1 week, 5 days, 11 hours, 52 minutes ago - by 79.142.xx.xx
      • awcazv - 5 months, 6 days, 2 hours, 18 minutes ago - by 217.78.xx.xx
    • 4dogix - 3 years, 2 days, 23 hours, 50 minutes ago - by 66.190.xx.xx
      • ej4iu - 1 day, 16 hours, 47 minutes ago - by 210.213.xx.xx
    • 8h49bh - 2 years, 2 months, 5 days, 8 hours, 30 minutes ago - by 99.3.xx.xx
    • db4bf2 - 2 years, 2 days, 18 hours, 12 minutes ago - by 94.224.xx.xx
    • 5kp548 - 1 year, 10 months, 3 hours, 56 minutes ago - by 94.228.xx.xx
    • 19zbj1 - 1 year, 9 months, 3 weeks, 5 days, 4 hours, 52 minutes ago - by 60.217.xx.xx
    • mdmfn - 1 year, 8 months, 1 week, 1 day, 23 hours, 22 minutes ago - by 213.230.xx.xx
    • 4amqey - 1 year, 7 months, 4 weeks, 23 hours, 20 minutes ago - by 95.220.xx.xx
    • cud5b9 - 1 year, 7 months, 2 weeks, 1 day, 5 hours, 41 minutes ago - by 189.74.xx.xx
    • f30uj - 1 year, 7 months, 3 days, 32 minutes ago - by 95.220.xx.xx
    • b9lf26 - 1 year, 3 weeks, 5 days, 5 hours, 39 minutes ago - by 61.145.xx.xx
    • 6dzab1 - 1 year, 3 weeks, 4 days, 8 hours, 25 minutes ago - by 111.1.xx.xx
    • bf3vkc - 1 year, 1 week, 3 days, 13 hours, 4 minutes ago - by 202.100.xx.xx
    • crkg83 - 7 months, 4 weeks, 1 day, 11 hours, 20 minutes ago - by 183.82.xx.xx
    • 61s67r - 6 months, 2 weeks, 6 days, 6 hours, 42 minutes ago - by 91.214.xx.xx
    • 6zcy8d - 6 months, 2 weeks, 3 days, 16 hours, 56 minutes ago - by 91.214.xx.xx
    • 11amc6 - 5 months, 2 weeks, 4 days, 18 hours, 13 minutes ago - by 46.21.xx.xx
    • bmw8vn - 4 months, 3 weeks, 5 days, 20 hours, 11 minutes ago - by 119.246.xx.xx
    • ft2x3s - 4 months, 3 weeks, 7 hours, 13 minutes ago - by 91.212.xx.xx
    • 96pa57 - 4 months, 1 week, 5 days, 6 hours, 54 minutes ago - by 46.21.xx.xx
    • et5u1p - 4 months, 1 week, 1 day, 16 hours, 11 minutes ago - by 109.230.xx.xx
    • g9o2eo - 4 months, 4 days, 17 hours, 34 minutes ago - by 109.230.xx.xx
    • 2qpz7h - 4 months, 21 hours, 59 minutes ago - by 109.230.xx.xx
    • 886wfq - 3 months, 2 weeks, 2 days, 9 hours, 6 minutes ago - by 213.96.xx.xx
    • c9l63x - 3 weeks, 3 days, 22 hours, 55 minutes ago - by 46.21.xx.xx
    • 9tp4t2 - 3 weeks, 19 hours, 21 minutes ago - by 46.21.xx.xx
Dynamic Block for Pixie (http://www.getpixie.co.uk/), can be used to show news on any page (requires a dynamic page setting up, with the name 'news')
  1. <?php
  2. //*****************************************************************//
  3. // Pixie: The Small, Simple, Site Maker.                           //
  4. // ----------------------------------------------------------------//
  5. // Licence: GNU General Public License v3                          //
  6. // Title: Display News.                                            //
  7. //*****************************************************************//
  8. ?>
  9.                                         <div id="block_news" class="block">
  10.                                                 <div class="block_header">
  11.                                                         <h4>News</h4>
  12.                                                 </div>
  13.                                                 <div class="block_body">
  14.                                                 <ul>
  15.                                                         <?php
  16.                                                         echo "\n";
  17.                                                         $page_name = "news";
  18.                                                         // how many news items to show
  19.                                                         $num = 10;
  20.                                                         $page_id = safe_field('page_id','pixie_core',"page_name='$page_name'");
  21.                                                         $rs = safe_rows_start("*", "pixie_dynamic_posts", "page_id = '$page_id' and public = 'yes' and posted < now() order by posted desc limit 0, $num");
  22.                                                         if ($rs) {
  23.                                                                 while ($a = nextRow($rs)) {
  24.                                                                         extract($a);
  25.                                                                         echo "\t\t\t\t\t\t\t<li><a href=\"".createURL($page_name, "permalink", $a['post_slug'])."\" rel=\"bookmark\">{$a['title']}</a></li>\n";
  26.                                                                 }
  27.                                                         }
  28.                                                         ?>
  29.                                                 </ul>
  30.                                                 </div>
  31.                                                 <div class="block_footer">
  32.                                                 </div>
  33.                                         </div>