I am attempting to personalize a wordpress page to incorporate an iframe which provide the customers a hyperlink to there download. We are using wordpress 2.9.2 using the Thesis theme 1.51. I have been attempting to use thesis hooks but seems the php is removed in the output. Help? Recommended options?

Code from custom_functions.php:

    function add_ejunkie_download_link () {
is_page('slug-url-of-page') {
?>

<?php
echo '<iframe src="https://www.e-junkie.com/ecom/rp.php?noredirect=true&client_id=CID&txn_id=' . htmlspecialchars($_GET["txn_id"]) . '" width="100%" frameborder="0" height="50px"></iframe>';
?>

<?php
   }
}
remove_action('thesis_hook_custom_template', 'thesis_hook_custom_template');
add_action('thesis_hook_custom_template', 'add_ejunkie_download_link');

Though less elegant as custom hook in custom_functions.php, Thesis Open Hook WordPress › Thesis OpenHook « WordPress Plugins is a straightforward method to add hooks with executable code inside them.

Why the remove_action call? I truly don't want it.

The PHP can not be removed in the output, since it is exactly that... PHP. It's parsed at runtime, therefore it is not removed, it's performed.

I am speculating you want to print the iframe when Thesis calls the thesis_hook_custom_template hook?

Perhaps you have double checked this hook is really getting known as, which it's getting known as in which you expect it to?

Then try simplifying your hooked function with this particular

 function add_ejunkie_download_link() {
     if (is_page('slug-url-of-page')):
 ?>

 <iframe src="https://www.e-junkie.com/ecom/rp.php?noredirect=true&client_id=CID&txn_id=' . htmlspecialchars($_GET["txn_id"]) . '" width="100%" frameborder="0" height="50px"></iframe>

 <?php
     endif;
 }