Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Lice
New Member
New Member



Joined: Sep 03, 2004
Posts: 3

PostPosted: Fri Sep 03, 2004 4:02 am Reply with quote

Hello Guy im lice but you can call me Brandon. I am in need of some help.

I am trying to make a custom block. So i have the black made. I just dont know where or how to add text to it. you can see the block at my site. Forumsplat.com its the clan matches block. All i need to do is add text to it. Any Suggestions?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Sep 03, 2004 4:34 am Reply with quote

Well, if you mean how would you put a meassage in the block, you would add all text to the variable $content. The BLOCK mechanism in nuke automatically displays what is in $content. So, a simple 'Hello World' example would be
Code:
<?

if (eregi("block-Sample_Block.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
$content = "Hello World";
?>


Last edited by Raven on Fri Sep 03, 2004 4:36 am; edited 1 time in total 
View user's profile Send private message
Lice







PostPosted: Fri Sep 03, 2004 4:35 am Reply with quote

Holy Crap raven. You replyed so fast you are the man. Now lets see if i can get this
 
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Fri Sep 03, 2004 8:16 am Reply with quote

Goodness, I was hoping it wasn't going to be me that said it, but that should read:
Code:
<?

if (eregi("block-Sample_Block.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
$content = "Hello World";
?>


Please note that both ways will work, the way I describe merely involks the latest security patch method.

Oh, don't forget to save that file as: block-Sample_Block.php
once you are finished editing it.

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
Lice







PostPosted: Fri Sep 03, 2004 5:00 pm Reply with quote

umm man. I know all that stuff i just wasnt sure how to add text.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

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 ©