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??
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...
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.
I have a question.. im useing SMF/Tinyportal for my guilds setup and i have the Eviltwin search in a custom block and it's working fine.. just is there a way for it to open in a new page instead of useing the same page its ran from ?