I changed the Review Forum settings to Share your opinion on %node_title!

However on the page it comes out as Share your opinion on <em>11-Field Soccer</em>!

What did I do wrong? Thanks

Comments

michelle’s picture

I had the same problem and did some digging and asking on IRC. The way the code is doing the t() in combination with check_plain is causing these odd characters.

To fix it requires changing the module code:

function get_userreview_form_title($node) {
  $display_title = variable_get('userreview_form_title', t('Share your opinion!'));
  $node_translation_terms = array(
    '@node_type' => node_get_types('name', $node),
    '@node_title' => $node->title,
  );
  $display_title = t($display_title, $node_translation_terms);

Those @ signs are currently %. Make that change and then, on the settings page, use @node_title instead.

Michelle

pomliane’s picture

Status: Active » Closed (won't fix)

This version of userreview is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.