Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Block-server status problem
Block-server status problem
Goto page 1, 2  Next

14 Replies / 3497 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Wed Oct 22, 2008 11:29 pm

HI all... After havign similar problem before, i tried for days to get my server info into a php block using the info i got before but my site just goes out of shape or the info is outside the box again..
this is the code i have
Code:
<?php
// Save generated file in 'block' folder of PHP-Nuke root directory
// Note: The file name should begin with 'block-', e.g. 'block-YourBlockName.php'
if (eregi("block-YourBlockName.php",$_SERVER['PHP_SELF'])) {
header("Location: index.php");
}
$content.= "<script language=\"JavaScript\" type=\"text/javascript\"> src=\<!-- Start GameTracker Banner -->
<iframe src="http://cache.www.gametracker.com/components/html0/?host=77.74.195.234:2314&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0&width=200&height=548" frameborder="0" scrolling="no" width="200" height="548"></iframe>
<!-- End GameTracker Banner --></script>\n";
?>


I tried this aswell

Code:
<?php
// Save generated file in 'block' folder of PHP-Nuke root directory
// Note: The file name should begin with 'block-', e.g. 'block-YourBlockName.php'
if (eregi("block-YourBlockName.php",$_SERVER['PHP_SELF'])) {
header("Location: index.php");
}
$content.= "<script language=\"JavaScript\" type=\"text/javascript\"> src=\"http://www.gametracker.com/server_info/77.74.195.234:2314/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/77.74.195.234:2314/b_160x400_T1_F-2.png" border="0" width="160" height="275" \"></script>\n";
?>


baffled again :(
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:33 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Block-server status problem Posted: Thu Oct 23, 2008 1:04 am

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

For shit's and giggles, try this.

Code:
<?php
// Save generated file in 'block' folder of PHP-Nuke root directory
// Note: The file name should begin with 'block-', e.g. 'block-YourBlockName.php'
if (eregi("block-YourBlockName.php",$_SERVER['PHP_SELF'])) {
header("Location: index.php");
}
$content.= '<script language=\"JavaScript\" type=\"text/javascript\"> src=\<!-- Start GameTracker Banner -->
<iframe src="http://cache.www.gametracker.com/components/html0/?host=77.74.195.234:2314&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0&width=200&height=548" frameborder="0" scrolling="no" width="200" height="548"></iframe>
<!-- End GameTracker Banner --></script>\n';
?>


Also, change the name of the "block-YourBlockName.php" to the name of the block you are creating.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Thu Oct 23, 2008 10:03 am

Hi, thanks for help..
I did what you said & changed name to block-server
uploaded installed new block. Block appears but with just the text "\n"
when i pasted it in before with the php script part, i see the server info above th block rather than in it which was happened with my ventrilo block.. someone fixed it on here but i cant seem to do it myself..
 

 
View user's profileSend private message Reply with quote


THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Thu Oct 23, 2008 10:25 am

hi, tried that and got a block with the text "/n" in it?

i tried to do it myself based on what i was told for other blocks created a block called block-server
Code:
<?php
// Save generated file in 'block' folder of PHP-Nuke root directory
// Note: The file name should begin with 'block-', e.g. 'block-server.php'
if (eregi("block-server.php",$_SERVER['PHP_SELF'])) {
header("Location: index.php");
}
$content.= "<script language=\"JavaScript\" src=\"http://www.gametracker.com/server_info/77.74.195.234:2314/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/77.74.195.234:2314/b_160x400_T0_CFFFFFF-14BADB-FFFFFF-142737_F-2.png" border="0" width="160" height="275"\"></script>\n";
?>


But i dont get anything.
If i just paste the html code in the server details appear but above the block not in it.. :(
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:33 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Block-server status problem Posted: Thu Oct 23, 2008 4:27 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Try this...

Code:
<?php
if(!defined('NUKE_EVO')) exit;


$content.= '<script language=\"JavaScript\" src=\"http://www.gametracker.com/server_info/77.74.195.234:2314/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/77.74.195.234:2314/b_160x400_T0_CFFFFFF-14BADB-FFFFFF-142737_F-2.png" border="0" width="160" height="275"\"></script>\n';



?>
 

 
View user's profileSend private messageVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Thu Oct 23, 2008 4:39 pm

HI Dread,
Uploaded that as a block-server and lost forum lol...
I dont think i have nuke_evo, would it make a difference?
Im using php nuke 8.1 .23
i:e
if(!defined('NUKE_EVO')) exit;
thanks for helping me :)
 

 
View user's profileSend private message Reply with quote


DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:33 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Block-server status problem Posted: Thu Oct 23, 2008 6:21 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

sorry, that was my fault. For some unknown reason I thought you were running Nuke Evolution. Try this file.

And yes, it would make a difference.

There are 2 files, hopefully one will work. Its a little hard for me to do this for I am not working on my PC. Its under some major upgrading and cleaning. But I think one of these should work.

Server_files.zip
 Description:
Try this file

Download
 Filename:  Server_files.zip
 Filesize:  860 Bytes
 Downloaded:  12 Time(s)

 

 
View user's profileSend private messageVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Thu Oct 23, 2008 6:39 pm

Hi Mate..
Ok the one called block-server.php gives me a block with the text "/n" in it
The one saying block-Our_Server.php i get "There isn't content right now for this block."
with this original html code script
Code:
<a href="http://www.gametracker.com/server_info/77.74.195.234:2314/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/77.74.195.234:2314/b_160x400_T1_F-2-3.png" border="0" width="160" height="352" /></a>


i get the server info but above the block not in it like this

Image Has Been Resized, Click To Enlarge.


Sorry :( I know i cantr use html script and have to change javascript but tried so many alternatives i dont knwo where im going wrong again
thanks again
stu
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:33 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Re: Block-server status problem Posted: Thu Oct 23, 2008 6:52 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

I just rewrote the html that you were trying to put in, Download these files and give it a try. I checked URLS and they are right, but I changed the html that you have given.

Server_Files.zip
 Description:

Download
 Filename:  Server_Files.zip
 Filesize:  835 Bytes
 Downloaded:  12 Time(s)

 

 
View user's profileSend private messageVisit poster's website Reply with quote


THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Thu Oct 23, 2008 7:05 pm

The block-server.php file worked!!
I only had to adjust the width to fit it in the block but it works!
Thanks Dread... i seriously got to understand how/why my attmpt didnt work and about html/javascript/php...
I jus cant get my head around it

THANKS AGAIN
Stuart
obo
onlinegc.co.uk

waheyyyyyyyyy
 

 
View user's profileSend private message Reply with quote

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 9:33 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 24 May 2012
Posts: 2331
Points: 136106 

Post Block-server status problem Posted: Thu Oct 23, 2008 9:13 pm

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0 ·  · Modern Warfare 3 Xtreme Theme

Well I can tell you that the javascript was all wrong. but you were real close with the HTML.

You were doing

Code:
$content="<a href="http://www.gametracker.com/server_info/77.74.195.234:2314/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/77.74.195.234:2314/b_160x400_T1_F-2-3.png" border="0" width="160" height="352" /></a> ";


Th problem is if you remove the HTML you added, it would look like

$content=" ";

Which the " is surrounding the html coding. Well in the HTML, you were also using the " which in turn was closing the php code.

There were 2 fixes for that, First way would have been to put \ in front of every " that was part of the HTML code only, which you didn't. Or you can do what I did and was instead of doing

$content=" ";


I did $content=' ';

which in turn allowed you to use the quotation marks in the HTML so you would be closing the php code that surrounds the HTML.

I hope that make a little sence to you.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

THENemesis
Reputation: 2.8 Add RepSubtract Rep
Local time: 9:33 AM

blank.gif

Spammer
Spammer

0.06 posts per day
Medals: 0

Joined: Oct 02, 2008
Last Visit: 11 Mar 2010
Posts: 83
Points: 2233 

Post Block-server status problem Posted: Fri Oct 24, 2008 12:15 pm

i think i get it, so i can open and close it with " "; or ' '; depending on if the Html code has a " or ' in it or not?
I just purchased html/javascript for dummies :)
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Blocks


 
14 Replies / 3497 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum