Hi people,

I'm using Drupal 6.10 and I want to get some articles opened in a Thickbox way, so I installed the Thickbox module and add a class="thickbox" in the link to my articles. It shows well in a beautiful Thickbox popup but I get all my website template in...

I needed to load my articles with a special template so I created the page-popup.tpl.php with that following code to only show the article content :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <body>
          <div class="clear-block"> 
            <?php print $content ?>
          </div>
  </body>
</html>

I also added the following code in the template.php file of my template to use the Thickbox effect with the page-popup.tpl.php template when the "pop" parameter is added to the article URL (http://mywebsite.com/?q=node/myarticle&pop=true) :

function _phptemplate_variables($hook, $variables = array()) {
  if ($_GET['pop']) {
    $variables['template_file'] = 'page-popup';
  }
  return $variables;
}

But the Thickbox popup still shows up with the article with te page.tpl.php template and so my all website...

Where did I go wrong ?

Thanks to all !!!