Messages in popup

appetals's picture
appetals
Tue, 01/12/2016 - 07:23
#1
Messages in popup

Hi,

How to display messages div in popup/modal/lightbox?

phuonght's picture
phuonght
Wed, 01/13/2016 - 21:34

Hi,

Please download modulehttps://www.drupal.org/project/lightbox2

then in files page.tpl, print message:

<?php if ($messages): ?>
<div ><?php print $messages; ?></div>
<?php endif; ?>

appetals's picture
appetals
Wed, 01/13/2016 - 23:16

i am using md_make theme and i have modified page.tpl but still the mesaage not opening in lightbox. and if i am commenting <?php print $messages; ?> this line from page.tpl then also it shows messages.

appetals's picture
appetals
Mon, 01/18/2016 - 00:52

Hi,

Still waiting for your reply/support.

phuonght's picture
phuonght
Mon, 01/18/2016 - 05:32

in files page.tpl, please replace 

<?php print $messages; ?>

with code at comment #2.


appetals's picture
appetals
Mon, 01/18/2016 - 05:51

Hi,

Have done the changes you mentioned above. But, still its not working and also my messages are getting displayed from "sites/all/themes/md_make/theme_setting/front/function.theme.inc".

phuonght's picture
phuonght
Mon, 01/18/2016 - 21:55

So could you send us your site url, admin account and FTP account by private comment? We would like to have a check.

phuonght's picture
phuonght
Tue, 01/19/2016 - 04:39

Check your site please, we just finished. You could custom CSS code for it if you would like.

appetals's picture
appetals
Tue, 01/19/2016 - 05:32

Ok thanks , but can you please let me know what were the changes made.

phuonght's picture
phuonght
Tue, 01/19/2016 - 05:51

We just worked following instruction we gave above.

phuonght's picture
phuonght
Wed, 01/20/2016 - 05:20

Here is all that our developer did in your site:

Go to /sites/all/themes/md_make/templates/page (all page.tpl there)


For example: file page.tpl.php, line 155

 <?php print $messages; ?>

replaced with

<?php if ($messages): ?>
<div ><?php print $messages; ?></div>
<?php endif; ?>

the same with other files page.tpl 

Note: enable lightbox2 first. 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.