PDA


View Full Version : Problem with custom module


Scoob
06-03-2005, 02:10 PM
<?php
#### Generated by Html to PHP converter By Disipal Site (www.disipal.net) ####


echo"<html>"
. "<head>"
. "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">"
. "</head>"
. "<!-- ImageReady Slices (block module2.jpg) -->"
. "<table id=\"Table_01\" width=\"175\" height=\"185\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
. " <tr>"
. " <td colspan=\"3\">"
. " <img src=\"http://sonaf.com/images/block-module2_01.jpg\" width=\"175\" height=\"35\" alt=\"\"></td>"
. " </tr>"
. " <tr>"
. " <td rowspan=\"3\">"
. " <img src=\"http://sonaf.com/images/block-module2_02.jpg\" width=\"42\" height=\"150\" alt=\"\"></td>"
. " <td>"
. " <a href=\"http://www.asskickersinc.com/\"><img src=\"http://sonaf.com/images/block-module2_03.jpg\" alt=\"\" width=\"89\" height=\"32\" border=\"0\"></a></td>"
. " <td rowspan=\"3\">"
. " <img src=\"http://sonaf.com/images/block-module2_04.jpg\" width=\"44\" height=\"150\" alt=\"\"></td>"
. " </tr>"
. " <tr>"
. " <td>"
. " <img src=\"http://sonaf.com/images/block-module2_05.jpg\" width=\"89\" height=\"83\" alt=\"\"></td>"
. " </tr>"
. " <tr>"
. " <td>"
. " <a href=\"http://www.kreativedesignworks.net/PHP-Nuke/\"><img src=\"http://sonaf.com/images/block-module2_06.jpg\" alt=\"\" width=\"89\" height=\"35\" border=\"0\"></a></td>"
. " </tr>"
. "</table>"
. "<!-- End ImageReady Slices -->"
. "</body>"
. "</html>"
."";

?>

We have recently been having a problem getting the above module to work on our site.....seems when it is activated on the homepage in the modules section it shows up above the banner..... what could be wrong?

KW802
06-03-2005, 02:12 PM
Scoob,

For 3rd party modules you'll need to request help from the module author.

Scoob
06-03-2005, 02:15 PM
heh i would but its both the module author and I that are having the problem with the module ;)

KW802
06-03-2005, 02:21 PM
heh i would but its both the module author and I that are having the problem with the module ;)I'm going to assume then from that statement and from looking at the code that the module has never worked. :)

The problem is that you're trying to print directly to the screen. You need to instead put your HTML into a variable and then at the bottom of the PHP module issue an eval command to insert your variable into your template.


EDIT: After looking at the code again.... the PHP code isn't really calculating anything which means you don't need a PHP code at all. Just insert your HTML into a template and then in your module settings specify 'none' for the php module and reference your template.