Page 1 of 1

php script in module

Posted: 17. January 2013 06:44
by blit

Code: Select all

<style>
#errormsg {
    color:000000;
   
}
</style>

<h1><div id="errormsg">
<?php


$url = "http://www.agecommunity.com/query/esocounts.xml";

$xml = simplexml_load_file($url);

foreach ($xml->online as $online) {
    echo "$online online";

}
?>
</div>

i want to put this script in a module on the portal but im noob and have no idea how to make it work. I would appreciate some help.

Re: php script in module

Posted: 18. January 2013 22:25
by anywhere91
Hi

did you look at this side? => http://board3.de//knowledge/

Regards

Re: php script in module

Posted: 19. January 2013 06:59
by blit
i took a look at it but it doesn't seem to help me. i figured i could just create a custom block and paste the script in, but it dosent seem to work. I found information about editing a module file but i dont rly understand why the custom block option wont work. Do i have to create a module for it to function?

Re: php script in module

Posted: 19. March 2013 15:52
by BetterDeadThanZed
An old post here, but I'm having a similar issue. I found this http://board3.de//knowledge/kb_show.php?id=51 but it has a problem. It tells me to make a new file in \styles\your_style\template\portal\block\ but I don't have that folder. In \styles\your_style\template\portal\ I only have "modules". I can't find "portal_left.html, portal_center.html or portal_right.html"