PluginProbe
wpForo Forum / 3.2.2
wpForo Forum v3.2.2
3.2.2 3.2.1 3.2.0 3.1.7 3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 All 142 releases
← All changes | admin/pages/tabs/ai-features-tab-rag-indexing.php +9 -46 3.0.7 → 3.2.2 View file →
@@ -432,54 +432,17 @@
432 432 <?php endif; ?>
433 433 </div>
434 434
435 435
436 - <?php
437 - // Get indexing status breakdown
438 - $status_breakdown = $storage_manager->get_indexing_status_breakdown();
439 - $has_excluded_topics = ( $status_breakdown['private'] > 0 || $status_breakdown['unapproved'] > 0 );
440 - ?>
441 - <?php if ( $has_excluded_topics ) : ?>
442 - <div class="wpforo-ai-indexing-breakdown">
443 - <details class="wpforo-ai-breakdown-details">
444 - <summary class="wpforo-ai-breakdown-summary">
445 - <span class="dashicons dashicons-info-outline"></span>
446 - <?php
447 - $excluded_count = $status_breakdown['private'] + $status_breakdown['unapproved'];
448 - printf(
449 - __( '%s topics are excluded from indexing', 'wpforo' ),
450 - '<strong>' . number_format( $excluded_count ) . '</strong>'
451 - );
452 - ?>
453 - <span class="dashicons dashicons-arrow-down-alt2 wpforo-ai-breakdown-arrow"></span>
454 - </summary>
455 - <div class="wpforo-ai-breakdown-content">
456 - <p class="wpforo-ai-breakdown-intro">
457 - <?php _e( 'The following topics are automatically excluded from AI indexing:', 'wpforo' ); ?>
458 - </p>
459 - <ul class="wpforo-ai-breakdown-list">
460 - <?php if ( $status_breakdown['private'] > 0 ) : ?>
461 - <li>
462 - <span class="dashicons dashicons-lock"></span>
463 - <strong><?php echo number_format( $status_breakdown['private'] ); ?></strong>
464 - <?php _e( 'private topics - these are only visible to their authors', 'wpforo' ); ?>
465 - </li>
466 - <?php endif; ?>
467 - <?php if ( $status_breakdown['unapproved'] > 0 ) : ?>
468 - <li>
469 - <span class="dashicons dashicons-clock"></span>
470 - <strong><?php echo number_format( $status_breakdown['unapproved'] ); ?></strong>
471 - <?php _e( 'unapproved topics - these will be indexed once approved by moderators', 'wpforo' ); ?>
472 - </li>
473 - <?php endif; ?>
474 - </ul>
475 - <p class="wpforo-ai-breakdown-note">
476 - <em><?php _e( 'Private topics are never indexed to protect user privacy. Unapproved topics will be automatically indexed when approved.', 'wpforo' ); ?></em>
477 - </p>
478 - </div>
479 - </details>
480 - </div>
481 - <?php endif; ?>
436 + <!-- Indexing breakdown loaded via AJAX (cached 1 day) -->
437 + <div id="wpforo-ai-indexing-breakdown-container"
438 + data-loading-text="<?php esc_attr_e( 'Loading...', 'wpforo' ); ?>"
439 + data-excluded-text="<?php esc_attr_e( '%s topics are excluded from indexing', 'wpforo' ); ?>"
440 + data-intro-text="<?php esc_attr_e( 'The following topics are automatically excluded from AI indexing:', 'wpforo' ); ?>"
441 + data-private-text="<?php esc_attr_e( 'private topics - these are only visible to their authors', 'wpforo' ); ?>"
442 + data-unapproved-text="<?php esc_attr_e( 'unapproved topics - these will be indexed once approved by moderators', 'wpforo' ); ?>"
443 + data-note-text="<?php esc_attr_e( 'Private topics are never indexed to protect user privacy. Unapproved topics will be automatically indexed when approved.', 'wpforo' ); ?>">
444 + </div>
482 445 </div>
483 446
484 447 <div class="wpforo-ai-section-divider">
485 448 <span><?php _e( 'Or select specific content to index:', 'wpforo' ); ?></span>