EzPortal - Portal Software for Forums

EzPortal Forums => ezBlock Coding Forums => Topic started by: green on October 12, 2011, 08:17:00 am

Title: url seperating and compiling again (php)
Post by: green on October 12, 2011, 08:17:00 am
hey all;

i'm trying to get a Gametracker iframe working with 1 variable parameter, the parameter being the server ip:port

now it doesn't work:

Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE block-info SYSTEM "http://www.ezportal.com/xml/block-info">
<block-info xmlns="http://www.ezportal.com/xml/block-info" xmlns:ezportal="http://www.ezportal.com/">
<id>Green:Gametracker</id>
<title>GameTracker ezblock</title>
<version>1.0</version>
<blocktype>php</blocktype>
<forumversion>SMF 1.1.x</forumversion>
<author>Green</author>
<website>http://meerweten.horizon-host.com/69th/index.php</website>
<editable>0</editable>
<can_cache>1</can_cache>
<parameter1>
<type>string</type>
<required>1</required>
<default>64.120.46.61:28960</default>
<title>Game server ip(registrated with Gametracker):</title>
</parameter1>

<blockdata>
<![CDATA[echo '<iframe src="http://cache.www.gametracker.com/components/html?host='.$parameter1.'&bgColor=333333&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1&currentPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=240" frameborder="0" scrolling="no" width="240" height="536"></iframe>';
]]>
</blockdata>

</block-info>