summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-12-07 17:11:22 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-12-07 17:11:22 -0500
commitbb736bb631788574137742f60dfaa2a808573af8 (patch)
treee840a6a4c24866c33e8a0bf51ff6044d4fb2adbf /pages
parenta930e827048acf17d04a6af06c1616a72dee714a (diff)
downloadfourisland-bb736bb631788574137742f60dfaa2a808573af8.tar.gz
fourisland-bb736bb631788574137742f60dfaa2a808573af8.tar.bz2
fourisland-bb736bb631788574137742f60dfaa2a808573af8.zip
Moved pingbacks to a seperate table
Because pingbacks just aren't comments, they shouldn't be stored in the comments table. So, a new table has been created for them and the blog post
view pages have been accomodated to show them at the bottom just like the related posts are shown.
Diffstat (limited to 'pages')
-rwxr-xr-xpages/blog.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/pages/blog.php b/pages/blog.php index c3f656b..ab198a0 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -105,6 +105,27 @@ if (isset($_GET['post']))
105 { 105 {
106 $template->display(); 106 $template->display();
107 } 107 }
108
109 $getpings = "SELECT * FROM pingbacks WHERE post_id = " . $getpost3['id'];
110 $getpings2 = mysql_query($getpings);
111 $i=0;
112 while ($getpings3[$i] = mysql_fetch_array($getpings2))
113 {
114 if ($i==0)
115 {
116 $template = new FITemplate('pingbacks');
117 }
118
119 $template->adds_block('PINGBACK', array( 'TITLE' => $getpings3[$i]['title'],
120 'URL' => $getpings3[$i]['url'],
121 'DATE' => date('F d<\S\U\P>S</\S\U\P> Y', strtotime($getpings3[$i]['pubDate']))));
122 $i++;
123 }
124
125 if ($i > 0)
126 {
127 $template->display();
128 }
108 } else { 129 } else {
109 generateError('404'); 130 generateError('404');
110 } 131 }