Download & Extend

No dropdown (due to missing $closure variable in theme)

Project:Share Buttons (AddToAny) by Lockerz
Version:6.x-2.3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The button is not a dropdown, it is just a link...

I check to see if i could find if the javascript for it was loaded, but it wasnt couldnt find it anywhere on the page.

Someone? And the no dropdown option is NOT checked in the admin.

Comments

#1

i got this working by changing the addtoany.module file but is there no other way?

#2

Hello,

I have same issue. Would you please tell me what modifications to addtoany.module are needed to make it work?!

Thanks

#3

Is it possible that your theme is not fully outputting footer contents? This module uses hook_footer to output the required JavaScript.

#4

What micropat said is right. It uses the hook_footer. Make sure "print $closure;" (which outputs the hook_footer) is in your template.php file. That should do it.
Hope this helps.

#5

Thank you kosmogos, yes it was $closure variable issue. we should print it in our theme page.

#6

Status:active» closed (fixed)

See http://drupal.org/node/447512#comment-1619428 for theme fix.

#7

Sorry for asking such a dumb question - I'm not to saavy on the PHP side of things -
you don't simply add print $closure; into template.php do you? Do you have to do something to associate it with hook_footer? I still can't get my dropdown to work.

#8

place:

<?php
print $closure
?>

at the bottom of page.tpl.php

#9

Title:No dropdown» No dropdown (due to missing $closure variable in theme)