Store
Community Documentation

v3 Knowledgebase

How to make a welcome intro block

First, you want to add a new component to your site.



Here is what I entered for the welcome intro component



Next, create a file called welcomeintro.class.php



the contents of the file should be...
PHP:
<?php
 
class Core_Component_Block_Welcomeintro extends Phpfox_Component
{    
    public function 
process()
    {
 
    }
}
 
?>


Now you'll upload the file to the following directory

/module/core/include/component/block

Next create a file called welcomeintro.html.php


In this file, you can use HTML to form your welcome intro. For example, my welcome intro is only an image.
<img src="http://houfit.com/file/events/welcomeintro.png">

upload this file to the following directory
/module/core/template/default/block


Now you will be adding a new block via the admincp


I put the intro in block 2, but you can put it wherever you see fit.

Here is what my "manage blocks" screen looks like (notice I moved the user:register to block 1 and I unchecked invite:find




This is what my site looks like with the new welcome intro block
www.HouFIT.com