Nothing to see here

Back to the Knowledge Base"; require_once "../includes/footer.php"; exit(); } $can_edit = kbCan(2); $can_delete = kbCan(3); $title = escapeHtml($row['kb_article_title']); $summary = escapeHtml((string) $row['kb_article_summary']); $archived = !empty($row['kb_article_archived_at']); $published = !empty($row['kb_article_published_at']); $updated_at = $row['kb_article_updated_at'] ?: $row['kb_article_created_at']; $updated_by = escapeHtml($row['updated_by_name'] ?: (string) $row['created_by_name']); $review = kbReviewState($row); $audience = kbAudiencesFor([$kb_article_id])[$kb_article_id]; $visibility = isset(KB_VISIBILITY[$row['kb_article_visibility']]) ? $row['kb_article_visibility'] : 'agents'; $public_url = kbPublicUrl($kb_article_id, $row['kb_article_title']); $versions = []; $sql_versions = mysqli_query($mysqli, "SELECT kb_article_version_id, kb_article_version_title, kb_article_version_created_at, user_name FROM kb_article_versions LEFT JOIN users ON user_id = kb_article_version_created_by AND kb_article_version_created_by > 0 WHERE kb_article_version_kb_article_id = $kb_article_id ORDER BY kb_article_version_created_at DESC, kb_article_version_id DESC"); while ($version = mysqli_fetch_assoc($sql_versions)) { $versions[] = $version; } // How readers outside ITFlow found it - its reads, their answers, and what they said didn't help (database 3.9.7) $feedback_ready = kbFeedbackReady(); $feedback_counts = kbFeedbackCounts([$kb_article_id])[$kb_article_id]; $feedback = kbFeedbackFor($kb_article_id); // Its files (database 3.9.8), and whether AI can review it $files_ready = kbFilesReady(); $files = kbArticleFiles($kb_article_id); $ai_review = aiReady('Documentation'); $csrf = $_SESSION['csrf_token']; $edit_url = "modals/kb/kb_article_edit.php?id=$kb_article_id"; $tags_display = tagPills('kb_article', $kb_article_id, tagsForRecord('kb_article', $kb_article_id), 'kb.php?', $can_edit && !$archived); // Tab title - used raw, the header escapes it $page_title = $row['kb_article_title']; ?>

Updated · Written · earlier version
Nothing written yet.' . ($can_edit && !$archived ? ' Start writing' : '') . '

' ?>

Files' . count($files) . '' : '' ?>

Its readers can download them
  • · added
A script, a form, a vendor's guide - whoever can read the article can download them.
No category
' . escapeHtml($name) . '' : escapeHtml($name); }, array_keys($audience['clients']), $audience['clients'])) ?> Not shown yet - only published articles are In their client portal, under Help In every client's portal, and the public help center In every client's portal. The public help center is offswitch it on' : '' ?>
Archived Published A draft - not finished
Review due since ' . date('M j, Y', strtotime($review['next'])) : 'Next review ' . date('M j, Y', strtotime($review['next'])) ?> · Mark reviewed 0 && !$archived) { ?> Reviewed once it's published Not reviewed on a schedule
Read time said it helped, said it didn't · % Nobody has said whether it helped yet

Feedback

1) { ?>
    ' . escapeHtml($answer['contact_name']) . '' . ($answer['client_name'] !== null ? ' · ' . escapeHtml($answer['client_name']) . '' : ''); } else { $who = $answer['client_name'] !== null ? escapeHtml($answer['client_name']) : 'A contact at a client'; } ?>
  • · · dealt with
    Dealt with

Versions

  • Now
    Updated
  • · was ""
  • No earlier versions - each edit keeps the one before it here.