Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.219
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 - Whats the best way to make your custom block from scratch
Whats the best way to make your custom block from scratch

2 Replies / 1267 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Blocks

View previous topic :: View next topic


visual_productions
Reputation: 0.1 Add RepSubtract Rep
Local time: 5:40 AM

usa.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Jul 07, 2008
Last Visit: 07 Jul 2008
Posts: 1
Points: 100 

Post Whats the best way to make your custom block from scratch Posted: Mon Jul 07, 2008 1:14 pm

im not new to php,But im wodering what is a good start to create a cool block,which i can create new stuff on my own?
 

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

floppy
Reputation: 2088.8 Add RepSubtract Rep
votes: 22
Local time: 5:40 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.17 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 03 May 2012
Posts: 2353
Points: 132516 

Post Whats the best way to make your custom block from scratch Posted: Mon Jul 07, 2008 3:59 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

http://www.clan-themes.co.uk/php-nuke-tools-Block.html

Becareful, it tends to strip out the first few characters on some lines.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 93.7 Add RepSubtract Rep
votes: 37
Local time: 11:40 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3672
Points: 191886 

Post Re: Whats the best way to make your custom block from scratc Posted: Mon Jul 07, 2008 7:09 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

lol took me about 12 months to work that out you know..

As floppy says..

this is an example, lets just say were going to make 2 tables with 2 columns in each table

this is the code im going to place into the link above (to the block maker)

Code:
<table border="1" width="100%">
   <tr>
      <td>Some text here</td>
      <td>And some more text here</td>
   </tr>
</table>
<br />
<table border="1" width="100%">
   <tr>
      <td>Some text here</td>
      <td>And some more text here</td>
   </tr>
</table>


Very straight forward.. until we convert it and actually take a closer look at the code in detail

here it is
Code:
<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) updated for nuke patch by Mental Modz ###
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
$content  =  "<table border=\"1\" width=\"100%\">";
$content  .= "<tr>";
$content  .= "   <td>Some text here</td>";
$content  .= "   <td>And some more text here</td>";
$content  .= "</tr>";
$content  .= "/table>";
$content  .= "br />";
$content  .= "table border=\"1\" width=\"100%\">";
$content  .= "<tr>";
$content  .= "   <td>Some text here</td>";
$content  .= "   <td>And some more text here</td>";
$content  .= "</tr>";
$content  .= "/table>";
?>


Looks great to a novice ! but if you actually look it has removed some of the first letters (in this case just a < ) of code of certain lines. normally just subsequent first letters that are placed on the first line in this case
Code:
$content  .= "/table>";
$content  .= "br />";
$content  .= "table border=\"1\" width=\"100%\">";


and
Code:
$content  .= "/table>";


this can be extremely annoying when making blocks that have java i found the actual easiest to combat it is when pasting the code into the first box, just add a space to the offending lines BEFORE you hit convert..

Obviously the best way is to just play, but at least you now know before it actually happens !

so my amended code to paste into the converter would be like so

Code:
 <table border="1" width="100%">
   <tr>
      <td>Some text here</td>
      <td>And some more text here</td>
   </tr>
 </table>
 <br />
 <table border="1" width="100%">
   <tr>
      <td>Some text here</td>
      <td>And some more text here</td>
   </tr>
 </table>


note how i just added a space Dont Know hope ive not confused you Dont Know
 

 
View user's profileSend private messageSend e-mail Reply with quote

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


 
2 Replies / 1267 Views
Page 1 of 1
All times are GMT
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