|
You might say, this is silly, why would I want to know the easiest thing in phpnuke. Well, you might want to know that this tutorial will save you alot of headaches later. There are a couple ways to add a block and I will explain them.
Steps :
The first and easiest way to add your block is from the nuke admin panel, although this way is limited. You can only add text with some simple html tags '<br>'. If you want to add javascript you will need to edit the mainfile.php to allow it. The steps and images below show you how to add a block with this method.
Step:1
Go to your blocks configuration in Nuke admin panel and scroll down to the bottom where you will see "Add A New Block " (fig1).
Fig1.

The only fields to be used are
Title: Give your block a name
Content: Add all the contents you want to be shown inside your block.
Position: Choose where you want the block to be shown, right, left, center.
Activate? Decide if you want the block to be active.
Expiration: Choose the number in days for the block to expire [ This feature is only present in newer versions of nuke ].
After Expiration: Decide what happens after block expire if the above is set. [ This feature is only present in newer versions of nuke ].
Refresh Time: This as it says is only for headlines so in most cases you won't use it.
Who can View This? Select who can view your new block.
Visible to Subscribers? If you use the subscription feature in nuke then select whether they should see the block.
Click Create Block.
You have now successfully created your first block. Now the next step is to place the block exactly where you want it on your page.
Step2:
You will now see your block in the list of all the active and non-active blocks. (fig2)
Fig2.
You can use the arrows to move the block up or down. You can also edit, delete, deactivate and show the block if its on the right side.
That's it! Check back soon for tutorials on the other ways to add blocks.
|