hi. i'm quite interested in using this for assorted help and simple content presentation in modal popup boxes, not specifically for interaction (eg. not for file uploading etc)

for example, in registration i've got a required field for 'i have read your terms of service and privacy statement' - those right now link via description to two nodes, but what i'd love to be able to do is have those two nodes' links simply popup/present modals - same for some assorted help/links..

i just don't understand if it does this, and if so how it controls sizing and all of that...maybe i've got it all wrong...

Comments

antarctican’s picture

I had the same thought, that's what I thought this module did when I originally downloaded it. Is there a way to add popups to our non-admin pages?

Thanks.

starbow’s picture

Let me check. I am not sure how much of the D7 enhancements I have backported into the D6 version....yeah, looks like it is there.
Try adding a class="popups" to your link. You will also need to call popups_add_popups() somewhere in the code that is creating your page, or add the popups.js and popups.css by hand.

zilla’s picture

thanks. i'll try this out...

whitesun’s picture

Hi
zilla! is it working the way you wanted it to work?
I mean: Have you been able to add popups to your contents?
I shall also like to use this module to add popups to my contents in case it works smoothly.

zilla’s picture

haven't tried it yet ;) i'll let you know when i do...

alpapan’s picture

yes it works.

I haven't found how to set the size of the window yet though...

starbow’s picture

Right, there is no way to pass in a width using this approach. It should autofit the height though (assuming that got backported from the D7 version :)
If you just need all your popups a different width, you could just change it in the popups.js file.

chirale’s picture

Here the steps I follow to get it works:

  1. Add popups_add_popups(); on top of my template.php
  2. l('Link label', 
    		'my/path', 
    		$options = array(
    			'attributes' => array('class' => 'popups')
    	  	)
    );
    

1) Popup works fine, but when I save the content remains on the popup and the original page isn't reloaded.
2) Another issue: I'm using BUEditor and the buttons aren't displayed before textareas.

starbow’s picture

Status: Active » Postponed (maintainer needs more info)

With the latest version, try
'attributes' => array('class' => 'popups-form')

starbow’s picture

Status: Postponed (maintainer needs more info) » Fixed

@chirale; In the latest version (1.1-beta3) you can use the 'on-popups-options' attribute to add the 'additionalJavascript' option. This will allow you to add the BUEditor javascript to your popup.

#

l('Link label',
        'my/path',
        $options = array(
            'attributes' => array('class' => 'popups', 'on-popups-options' => '{additionalJavascript: "path/to/BUEditor.js"}'))
          )
);
Anonymous’s picture

Status: Fixed » Closed (fixed)

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