PHP Nuke Tools - Block Creator Help

Let's assume that we have this html
 
Code:

<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<p align="center"><font size="7">PHP-Nuke tools</font></p>
<p align="center">by</p>
<p align="center"><a href="http://www.disipal.net/"><font size="7">Disipal site</font></a></p>
</body>
</html>

 

Remove this

Code:
 
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>

</body>
</html>


 


And now the code looks like this

Code:

<p align="center"><font size="7">PHP-Nuke tools</font></p>
<p align="center">by</p>
<p align="center"><a href="http://www.disipal.net/"><font size="7">Disipal site</font></a></p>

 

To make the block, we copy and paste in the Block Creator top block

We click on "Create Block" and as a result we have

Code:

<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Block_Creator.php",$ PHP_SELF)) {
Header("Location: index.php");
die();
}
$ content = "<p align=\"center\"><font size=\"7\">PHP-Nuke tools</font></p> ";
$ content .= "<p align=\"center\">by</p> ";
$ content .= "<p align=\"center\"><a href=\"http://www.disipal.net/\"><font size=\"7\">Disipal site</font></a></p> ";
?>
 


Change the line



Change the line

Code:

if (eregi("block-Block_Creator.php",$ PHP_SELF)) {
 

 

To

Code:

if (eregi("block-whatever.php",$ PHP_SELF)) {
 


Now open notepad and paste the code given in the Block Creator bottom block, and save it as block-whatever..php


And you are ready!!
Activate the block from http://www.yoursite.com/admin.php?op=blocks
 



  [  Back to Block Creator  ]