Hello,

I don't know if I missed something (although I read the brief readme.txt document), but I installed the module but I don't see any feedback tab.

Thats what I did:

1) I created a company in getsatisfaction (http://getsatisfaction.com/archtlas)
2) Downloaded and installed the module as usual
3) Visited admin/settings/getsatisfaction to see module's preferences
4) In "Get Satisfaction company name:" field I typed "archtlas" and left all the other values as defaults.

As far as I understand that would be enought and a new "feedback" tab should appear on the left of each of the pages, but that doesn't happen (you can see the website here: http://archtlas.com)

I emptied cache and changed theme to garland and doesn't show up neither. The weird thing is that a script is added to the end of the pages:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
var $body = $('body');if(!$body.hasClass('getsatisfaction-processed')) {  $body.addClass("getsatisfaction-processed");  var feedback_widget_options = {};  feedback_widget_options.display = "overlay";  feedback_widget_options.company = "archtlas";  feedback_widget_options.placement = "left";  feedback_widget_options.color = "#222";  feedback_widget_options.style = "idea";  var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);}
//--><!]]>
</script>

Maybe I am missing something?

CommentFileSizeAuthor
#1 Schermata 2010-07-20 a 11.20.35.png117.2 KBflevour

Comments

flevour’s picture

Assigned: Unassigned » flevour
Status: Active » Fixed
StatusFileSize
new117.2 KB

Hi there,
did you fix the problem yourself? I can see the feedback tab on the left of your site!
Please re-open if necessary,
Francesco

lmakarov’s picture

Status: Fixed » Active

The problem is in function getsatisfaction_footer() implementation.

  if (!empty($company) && _getsatisfaction_visibility_pages()) {
    $script .= 'var is_ssl = ("https:" == document.location.protocol);';
    $script .= 'var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";';
    $script .= 'document.write(unescape("%3Cscript src=\'" + asset_host + "javascripts/feedback-v2.js\' type=\'text/javascript\'%3E%3C/script%3E"));';
    drupal_add_js($script, 'inline');
    $script  = "var \$body = $('body');";
    $script .= "if(!\$body.hasClass('getsatisfaction-processed')) {";
    $script .= '  $body.addClass("getsatisfaction-processed");';
    $script .= '  var feedback_widget_options = {};';
    $script .= '  feedback_widget_options.display = "overlay";';
    $script .= '  feedback_widget_options.company = "' . $company . '";';
    $script .= '  feedback_widget_options.placement = "'. $placement .'";';
    $script .= '  feedback_widget_options.color = "' . $color . '";';
    $script .= '  feedback_widget_options.style = "' . $type . '";';
    $script .= '  var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);';
    $script .= '}';
    
    drupal_add_js($script, 'inline', 'footer');
  }

drupal_add_js($script, 'inline') (which defaults to drupal_add_js($script, 'inline', 'header')) will not work in hook_footer().
Do drupal_add_js($script, 'inline', 'footer') instead and it will work.

flevour’s picture

Status: Active » Fixed

Thanks for the pointer. I have given the module the love it deserved and I am releasing a new version in the next few minutes.
Thanks again for using this module,
Francesco

c-c-m’s picture

Hello,

I didn't fix it myself: I simply copied the code provided by GS's widget and pasted in my theme file.

I'll try the new module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.