function link_comments($content) { //generates the comments invitation link (works within postings-loop) global $settings; global $postings; global $currentid; if ($postings[$currentid]['comment_on'] == "1") { if (!isset($_GET['id'])) { $return = "<a href=\"index.php?id=" . $currentid . "#comments\" \n title=\"Link to comments\">"; $return .= fullparse(stripcontainer($content)); $return .= " (" . countcomments($currentid) . ")</a>\n"; } else { $return = fullparse(stripcontainer($content)); $return .= " (" . countcomments($currentid) . ")\n"; } } else { $return = ""; } return $return; }
$link = $showtable[$i]['audio_file']; } //is sticky? //echo "<td>"; //echo $showtable[$i]['sticky']>0 ? '<strong>!!</strong>' : ' '; //echo "</td>\n"; //showing the title echo "<td>"; echo "<a href=\"index.php?page=record2&do=edit&"; echo "id=" . $showtable[$i]['id'] . "\">\n"; echo $showtable[$i]['title'] . "</a>"; echo " id = " . $showtable[$i]['id']; if ($showtable[$i]['sticky'] > 0) { echo "[Sticky]"; } if (countcomments($showtable[$i]['id']) > 0) { echo " <a href=\"index.php?page=comments&posting_id=" . $showtable[$i]['id'] . "\" title = \"Link to comments\">[Comments]</a>"; } echo "</td>\n"; //flash player for instant access! (only when file is an .mp3) echo "<td>\n"; $type = $showtable[$i]['audio_type']; //is it MP3? Then show us the flash player!! if ($type == 1) { echo showflash("backend/emff_list.swf?src=" . $link, 90, 19); //ist it Quicktime-compatible? Show us the Quicktime plugin!! } else { if ($type == "2" or $type == "5" or $type == "6" or $type == "9" or $type == "12" or $type == "14" or $type == "10" or $type == "13" or $type == "7") { $src = $settings['url'] . "/loudblog/backend/clicktoplayback.mov"; $target = "myself"; //ist it a video or enhanced podcast? Link to external player!
if (!empty($callerid)) { echo " | " . bla("change_caller_id") . $callerid[0]['user']; } //if previews enabled, link to preview post in new tab if (!empty($settings['previews'])) { echo " | <a href=\"../index.php?preview=1&id=" . $edit_id . "\" target=\"_blank\" title= \"" . bla("change_preview_title") . "\">" . bla("change_preview") . "</a>"; } //edit later post, if there is one if (!empty($nextresult)) { make_edit_link($nextresult, bla("change_later")); } //edit earlier post, if there is one if (!empty($previousresult)) { make_edit_link($previousresult, bla("change_earlier")); } //edit latest post if (!empty($lastresult) and $lastresult[0]['id'] != $edit_id) { make_edit_link($lastresult, bla("change_last")); } //link to comments if (countcomments($edit_id) > 0) { echo " | <a href=\"index.php?page=comments&posting_id=" . $edit_id . "\" title=\"" . countcomments($edit_id) . " comments\">" . bla("change_comments") . "</a>"; } function make_edit_link($posting, $whichone) { echo " | <a href = \"?page=record2&do=edit&id=" . $posting[0]['id'] . "\" title = \"" . $posting[0]['title'] . " : id=" . $posting[0]['id'] . " : posted " . $posting[0]['posted'] . "\">" . $whichone . "</a>"; } ?>