Thottbot > Forums > Thottbot > Powered by Thottbot > Thottbot Sea...
NEW! Wrath of the Lich King! (October 3)   NEW! Project Lore Episode 10.2
  Report  Quote Reply Re: Thottbot Search Block...
Score 11     Vote: [-] [+] by nunopiri, 7.7 months ago
Whenever you want to use another script inside php code you need to use the <<< command. In this case you do this way:

<?php
if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}

$content = <<<_JSCODE_
<script>T.searchbox()</script>
_JSCODE_;
?>


Note that after _JSCODE_ must be no spaces.

BackTop
 
Created by Thott - Thottbot 3.71 - Feedback