Thottbot > Forums > Powered by Thottbot > Thottbot Search Block...
NEW! Wrath of the Lich King Talents!   NEW! Project Lore 2.2
  Report  Quote Reply Thottbot Search Block...
Score 13     Vote: [-] [+] by Thannykcg, 5.6 months ago
http://www.thefallenrealm.com/index.php

at the bottom center...

All I did was put the <script> in the block and then created it but it put the title of the block under the search box and it also says There isn't content right now for this block.

What am I doing wrong??
  Report  Quote Reply Re: Thottbot Search Block...
Score 14     Vote: [-] [+] by Thannykcg, 5.6 months ago
Last edit: 5.6 months ago
ok I got it with:

<?php

if (eregi("block-Thottbot.php", $PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content .= "<script>T.searchbox()</script>\n";
?>

but now it only shows up on the home page and not any of the other pages...  http://www.thefallenrealm.com/modules.php?name=Forums

only shows the block title...
  Report  Quote Reply Re: Thottbot Search Block...
Score 15     Vote: [-] [+] by nunopiri, 5.1 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.53 - Feedback