Author |
Message |
washbucket
Hangin' Around
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 17, 2007
Posts: 39
Location: colorado
|
Posted:
Sun Jun 06, 2010 12:43 pm |
|
Hi all, it's been awhile I have been on here, but I know the only place to go is here to get thing working with PHP Nuke, you people do a great job, here what I have, I'm trying to put a image in a PHP Nuke Block from Game Tracker, and I have tried every thing I know and cannot get it to contain in a block here is the code: <iframe src="http://cache.www.gametracker.com/components/html0/?host=64.27.51.50:19577&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1¤tPlayersHeight=100&showCurrPlayers=1&showTopPlayers=1&showBlogs=0&width=240" frameborder="0" scrolling="no" width="240" height="536"></iframe> This is they gave me can you fix it thanks a many time over. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Sun Jun 06, 2010 2:11 pm |
|
You can add it in the blocks admin. In the blocks admin, you will see the editor, click source and paste your code in there. You will than need to name the block and select where you want it to be from the dropdown menu. You will probable need to adjust the width if you are going to use it as a side block. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
washbucket
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 2:39 pm |
|
I did that, it just showed me the code, after I installed it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 3:20 pm |
|
Did you click the source button before you pasted the code? I tried it on my test site and it worked fine. rn.trickedoutnews.com |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sun Jun 06, 2010 3:27 pm |
|
It worked for me. As nuken suggested hit the "source" button on the upper right of the editor before pasting the code in. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 4:07 pm |
|
Is your site RavenNuke or PhpNuke? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
washbucket
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 4:16 pm |
|
Still didn't work, I selected the HTML bottom right, then selected the the edit html button on the top right, then pasted my code, then update, still it showes the nothing, even if put it on a right hand side block, did you remove any of the code? like frame or any thing else? I see yours looks good. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 4:22 pm |
|
Here is the code to make a block for it. You will need to add this code to a file named something like block-Game_Tracker.php and install it to your blocks directory.
Code:<?php
if (!defined('BLOCK_FILE'))
{
Header('Location: ../index.php');
die();
}
$blockwidth= '175';
$content = '<iframe src="http://cache.www.gametracker.com/components/html0/?host=64.27.51.50:19577&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1¤tPlayersHeight=100&showCurrPlayers=1&showTopPlayers=1&showBlogs=0&width='.$blockwidth.'" frameborder="0" scrolling="no" width="'.$blockwidth.'" height="536"></iframe>';
?>
|
You can adjust the width of the block by changing the $blockwidth variable if needed. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
washbucket
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 4:34 pm |
|
Yes that worked thank you so much, after messing with this for the last 3 hours, I pretty much gave up, I don't know why it would not work in my editor, but I did try it at least 30 times every way I could, thanks again your awesome |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jun 06, 2010 5:07 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|