After Drupal upgrade, installation of tinymce.module and creating a rich text profile for WYSIWYG editing, previously created quotes with the "Filtered HTML", "PHP Code" or "Full HTML" input filters will display "n/a" in place of the quote body and author for anonymous users.

Changing the input filter to "Rich Text Editing" (or whatever you named it) fixes the issue.

However, Quotes seems to be the only node type affected by this so I suspect it's an issue with quotes.module.

Comments

mhutch’s picture

Status: Active » Needs review

Go to function theme_quotes_quote and update the first few lines to

function theme_quotes_quote($in_node) {
  global $user;
  $check_permissions = ($user->uid == $in_node->uid);
  $in_node->body = check_markup($in_node->body, $in_node->format, $check_permissions);
  $the_author = ($in_node->quotes_author ? check_markup(variable_get('quotes_leader', '—') . ' ' . $in_node->quotes_author, $in_node->format) : '', $check_permissions);

If this works, close this issue as 'fixed' and I will update the patch in http://drupal.org/node/32035.

inteja’s picture

Parse error: parse error, unexpected ',' in /home/vrealms/public_html/modules/quotes/quotes.module on line 677

inteja’s picture

This works thoough:

function theme_quotes_quote($in_node) {
  global $user;
  $check_permissions = ($user->uid == $in_node->uid);
  $in_node->body = check_markup($in_node->body, $in_node->format, $check_permissions);
  $the_author = ($in_node->quotes_author ? check_markup(variable_get('quotes_leader', '—') . ' ' . $in_node->quotes_author, $in_node->format, $check_permissions) : '');
inteja’s picture

Status: Needs review » Fixed

updated to fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)