php script in module

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
blit
Active Member
Posts: 2
Joined: 17. January 2013 06:40

php script in module

Post 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.
User avatar

anywhere91
Translator
Posts: 62
Joined: 21. May 2009 11:02
phpBB.com User: Anywhere91
Location: 48°638127N 2°771616E or not far
Contact:

Re: php script in module

Post by anywhere91 »

Hi

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

Regards

Topic author
blit
Active Member
Posts: 2
Joined: 17. January 2013 06:40

Re: php script in module

Post 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?

BetterDeadThanZed
Active Member
Posts: 10
Joined: 19. March 2013 01:37

Re: php script in module

Post 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"
Locked

Return to “Board3 Portal 2.0.x - English Support”