TinyPortal

Development => Block Codes => Topic started by: captain236 on November 08, 2006, 10:00:41 PM

Title: WoW Thottsearch
Post by: captain236 on November 08, 2006, 10:00:41 PM
for many people who play world of warcraft.. they know how many times they are visiting Thottbot.com and allakahzam.com

these are websites that offer much needed info from anything ingame.. like.. itemstats...prices...drop rates.

i found this module for Joomla that adds the searchbox to your joomla page.  i took this mod, tried messing with the php file, and trying my best to get it to load in tinyportal. but.. my lack of php knowledge has failed.. most i could get was "Direct Access to this location is not allowed." even after i CHMOD it to 777.  would be great if we WoW fans could get some help on setting this up in a block!!  also on the posted site i found.. they are running both Thottbot and allakahzam.. yet the mod supports only thottbot..  is there a way we can get both as well?

Thanks!!

heres the site i found with them running on the left side..
http://www.omnia-hq.com/


::EDIT:: (for my future php learning)

the things i tried.. i figured the .xml is only the file that joomla calls on when you install the mod, and exports it as html explining the author and what the mod does in such.. so i just excluded this file.

then i just uploaded the mod_thottsearch.php to the directory where my tinyportal is installed  (much like i did with the WOW SERVER STATUS SNIPPET, found on this board as well.) 

then i tried both php and html blocks, and put in the code
include("mod_thottsearch.php");
thats when i got the error "Direct Access to this location is not allowed."

thanks again.. just posted the edit sdo i can look back at anything i did wrong.  for learning purposes..
Title: Re: WoW Thottsearch
Post by: captain236 on November 08, 2006, 10:12:05 PM
well.. i took the code out of the php file that was calling on a dependent which was giving me the error from above..
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
?>


now i just get the error
Parse error: parse error, unexpected '<' in /home/content/?/?/?/????/html/mod_thottsearch.php on line 11

and all line 11 is doing is calling 'Get' on http://www.thottbot.com
Title: Re: WoW Thottsearch
Post by: G6Cad on November 09, 2006, 03:20:39 PM
just remove the ?> from your last code and try again
Title: Re: WoW Thottsearch
Post by: captain236 on November 09, 2006, 06:00:23 PM
still gettin same error...

hmmmm
Title: Re: WoW Thottsearch
Post by: G6Cad on November 10, 2006, 08:26:35 AM
How does the code for this file look like ?
mod_thottsearch.php

Line 11 have this ?>, you have to move that to the very end of the code