Acest modul nu a fost testat cu ultimele 3 versiuni importante ale WordPress. S-ar putea să nu mai fie întreținut sau susținut și ar putea avea probleme de compatibilitate când este folosit cu versiuni recente ale WordPress.

Facebook Comments (OTF)

Descriere

Facebook Comments (OTF) is part of the „Only The Functions” movement — A collection of WordPress plugins that give code-savvy users access to functions which return the information / functionality they are looking for, and allows them to place it where they want, without any hacking to change default behavior.

This plugin includes functions for displaying a Facebook comment form and functions for retrieving the comment count. View the installation instructions for more info regarding these functions.

For updates, follow @sawyerh.
You can contribute to this plugin on GitHub: https://github.com/sawyerh/facebook-comments-otf

Instalare

  1. Install the plugin
  2. Place the comment form function in your theme code (probably want to put it in single.php)

For moderation capabilities

  1. Create a Facebook App
  2. Copy the App ID and paste it into the plugin Settings (Settings » Facebook Comments)

Available Functions

When you place a plugin function into your theme, you will likely want to wrap it with an if( function_exists('FUNCTION_NAME_HERE') ) condition. This way, if the plugin gets disabled, your theme won’t explode.

fbc_comment_form( $args )
Outputs the Facebook comment form onto the page:

$args is an optional associative array that you can implement to override the following defaults:

  • (int) num_comments (Default = 10)
  • (int) width (Default = $content_width | 500)
  • (string) app_id (Default = option set in settings | null)
  • (string) color (light|dark, Default = light)
  • (int) id (Default = $post->ID)
  • (string) notify_email (Default = post author’s e-mail)

fbc_comment_count( $id, $zero, $single, $plural )
Outputs a formatted comment count structured for multiple scenarios (0, 1, and multiple comments) onto the page

  • (int) $id – Default = $post->ID
  • (string) $zero – Default = 0 comments
  • (string) $single – Default = 1 comment
  • (string) $plural – Default = comments

fbc_get_comment_count( $id )
Returns only the comment count number

  • (int) $id – Default = $post->ID

Contributori și dezvoltatori

„Facebook Comments (OTF)” este un software open source. Următoarele persoane au contribuit la acest modul.

Istoric modificări

1.0

  • Initial release