CTerrian Posted February 27, 2008 Share Posted February 27, 2008 I'm still learning PHP, and I'm trying to create a block with two banners centered (side by side) in the block. GameTracker provides the code for my game servers stats in HTML. Here's the HTML provided by GameTracker: <!-- Start GameTracker Banner --> <iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.83:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe> <!-- End GameTracker Banner --> <!-- Start GameTracker Banner --> <iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.82:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe> <!-- End GameTracker Banner --> I've already created the "block_banner.php" file. I just need help with the code. I know this can be done because I've seen it at other sites using php. Thanks in advance, CT PS: I'm using "Team Fortress 2 Nuke theme" (Item# DMTF2) PHP-Nuke PHP Version 5.2.5 Quote Link to comment Share on other sites More sharing options...
amites Posted February 27, 2008 Share Posted February 27, 2008 since they are providing you with iframes you could do it with just HTML create a table with 1 row and 2 cells and then place an iframe in each something like <table><tr><td><iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.83:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe></td><td><iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.82:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe></td></tr></table> Quote Link to comment Share on other sites More sharing options...
CTerrian Posted February 28, 2008 Author Share Posted February 28, 2008 Ah... Thank You! That works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.