Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
rjms
Regular
Regular


Joined: Feb 10, 2012
Posts: 56

PostPosted: Fri Feb 10, 2012 6:03 am Reply with quote

Hello, I am trying to add two iframes in a single block, I am using nuke 8.x

I am stuck with the following code:

Code:
<?php


if (eregi("block-Block_Creator.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content = '<br />';
$content  =  "<div align=\"left\">";
$content  = "<iframe name=\"inlineframe\" src=\"http://cache.www.gametracker.com/components/html0/?host=94.23.203.72:2306&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=\"200\" height=\"536\">></iframe><noframes>";
$content  = "</div>";
$content .= '<br />';
$content  .=  "<div align=\"right\">";
$content  .= "<iframe name=\"inlineframe\" src=\"http://cache.www.gametracker.com/components/html0/?host=109.74.240.169:2305&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=\"200\" height=\"536\">></iframe><noframes>";
$content  .= "Your browser doesnt currently support inline frames.</noframes></div>";
$content  .= "</div>";
?>


by deleting/adding the dot equals at the page breaks it only shows one single iframe, either the dotted one or the other one, must be missing something stupid here Sad

Anyone can help me?
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Fri Feb 10, 2012 6:58 am Reply with quote

You removed a bunch of ".=" and made them just "=". Try this:

Code:


<?php

if (eregi("block-Block_Creator.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  = '<br />';
$content .=  "<div align=\"left\">";
$content .= "<iframe name=\"inlineframe\" src=\"http://cache.www.gametracker.com/components/html0/?host=94.23.203.72:2306&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=\"200\" height=\"536\">></iframe><noframes>";
$content .= "</div>";
$content .= '<br />';
$content .=  "<div align=\"right\">";
$content .= "<iframe name=\"inlineframe\" src=\"http://cache.www.gametracker.com/components/html0/?host=109.74.240.169:2305&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=\"200\" height=\"536\">></iframe><noframes>";
$content .= "Your browser doesnt currently support inline frames.</noframes></div>";
$content .= "</div>";
?>


The "dot" in front of the equals sign is a string concatenator. You just kept wiping out your previous string values...

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
rjms
PostPosted: Sat Feb 11, 2012 3:37 am Reply with quote

Nah, still showing one unfortunately Sad

the first is shown only on the left side
 
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sat Feb 11, 2012 9:36 am Reply with quote

Are you trying to use this as a center block or a side block?

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
nuken
PostPosted: Sat Feb 11, 2012 9:56 am Reply with quote

If you want a center block with them side by side. here is the code:
Code:


<?php

if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}
$content  = '<br />';
$content .=  '<div align="middle">';
$content .= '<iframe name="inlineframe" src="http://cache.www.gametracker.com/components/html0/?host=94.23.203.72:2306&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="200" height="536"></iframe>&nbsp;&nbsp;&nbsp;&nbsp;';
$content .= '<iframe name="inlineframe" src="http://cache.www.gametracker.com/components/html0/?host=109.74.240.169:2305&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="200" height="536"></iframe>';
$content .= '<noframes>Your browser doesnt currently support inline frames.</noframes>';
$content .= '</div>';
?>


if you want them as a side block on top of each other, here is the code:
Code:
<?php


if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}
$content  = '<br />';
$content .=  '<div>';
$content .= '<iframe name="inlineframe" src="http://cache.www.gametracker.com/components/html0/?host=94.23.203.72:2306&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="200" height="536"></iframe></div>';
$content .= '<div><iframe name="inlineframe" src="http://cache.www.gametracker.com/components/html0/?host=109.74.240.169:2305&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="200" height="536"></iframe>';
$content .= '<noframes>Your browser doesnt currently support inline frames.</noframes>';
$content .= '</div>';
?>
 
rjms
PostPosted: Sat Feb 11, 2012 2:13 pm Reply with quote

OMG man I love you ...

Thank you so much
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©