Display all Drupal messages iin a nice transparent pop-up div or lightbox

Submitted by programmer on Fri, 01/16/2009 - 08:10.
::
<?php if ($messages): ?>
   <div id="TB_overlay" class="TB_overlayBG" onclick="tb_remove()"/>
      <div id="TB_window" style="margin-left: -165px; width: 330px; margin-top: -97px; display: block;">
         <div id="TB_ajaxContent" class="TB_modal" style="width: 300px;">
            <?php print $messages; ?>
            <p style="text-align: center;"><input id="Login" type="submit" onclick="tb_remove()" value="  Ok  "/></p>
         </div>
      </div>
   </div>
<?php endif; ?>

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options