You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 44 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - HTML Block [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Comp3245425
Guest






PostPosted: Tue Sep 06, 2005 12:01 pm Reply with quoteBack to top

Hello,

I searched the forum and got the code for posting a html page into block and it works great except... all the info on the block is not centered it is all to the left of the block is there a way to center the block content? here is the code

Code:
<?php

if (eregi("block_serverstats.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$content = file_get_contents("http://www.comp.wotns.com/stats/si2.php");
?>
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12373


PostPosted: Tue Sep 06, 2005 12:20 pm Reply with quoteBack to top

Use the center tags
Code:

$content = "<center>".file_get_contents("http://www.comp.wotns.com/stats/si2.php")."</center>";

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guest







PostPosted: Tue Sep 06, 2005 12:37 pm Reply with quoteBack to top

hmm i think my nuke is possesed it seems to center the block but not the content bringing up the file directly its centered but when added to the block using center tags content is still on the left Sad
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12373


PostPosted: Tue Sep 06, 2005 1:23 pm Reply with quoteBack to top

Show us where it is on your site

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Guest







PostPosted: Tue Sep 06, 2005 1:37 pm Reply with quoteBack to top

http://www.pocclan.com/index.php First one on the right says Server on it.

Thanks!
Find all posts by Anonymous
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12373


PostPosted: Tue Sep 06, 2005 7:35 pm Reply with quoteBack to top

Unfortunately this won't work, because there's already a set TABLE there.

Code:

<CENTER><link rel='stylesheet' type='text/css' href='inc/si_stylesheet.css' />
      <TABLE width='170' class='si_background'>
        <TR>
            <TD class='si_title'>
            24/7 Office/Italy www.pocclan.com
            </TD>
        </TR>
        <TR>
            <TD class='si_ip'>
            <nobr>
            <img title='Counter-Strike: Source' width='16' height='16' border='no' align='middle' src='pics/css.gif'>
            <a class='si_link' title='Join this server now!' href='steam: "-applaunch 240 +connect 69.13.214.184:27015"'>
            69.13.214.184:27015
            </a>
           
            </nobr>
            </TD>
        </TR>
        <TR>
            <TD class='si_notext'>
            <img title='Map cs_office
currently played' align='middle' src='mappics/cs_office.jpg'>
            </TD>
        </TR>
        <TR>
            <TD class='si_notext'>
            <nobr><a href='mailto:timtebeek@gmail.com'><img  title='Script by Tim te Beek!'align='middle' border='no' src='pics/f-orange.gif'></a><img align='middle' title='Kills   Name
(0)   Punk Fred
(10)   Punk Ferris
(9)   Dodger
(6)   {PoC}Twirls
(20)   {PoC}Comp
(4)   Punk Neil

.....

            </TD>
        </TR>
      </TABLE></CENTER>

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
-[U4G]- Tim
Guest






PostPosted: Thu Sep 08, 2005 2:35 am Reply with quoteBack to top

Hey it's me, the Tim that made this scirpt...
I suggest you either run the script in an
iframe or that you strip the table declaration...
Those should both work, although the iframe
has my personal preference...

Greets, Tim
(Ps: Found this thread through Google if you're wondering)
Find all posts by Anonymous
Guest







PostPosted: Thu Sep 08, 2005 3:15 pm Reply with quoteBack to top

cool, ok thanks both of u!
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.394 Seconds - 242 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::