You can customize your site by creating your own particle boxes.
These can be used for quotes, statistics, or even content such as Google's Add Sense. Just by changing a few things, you could create just about any particle box you want...
BEFORE PROCEEDING WITH THE FOLLOWING INSTRUCTIONS, BACK UP THE FOLLOWING FILES:
includes/common.php
language/*/common.php
templates/fusionbb/header _left.php
templates/fusionbb/ footer_both.php
templates/fusionbb/ footer_right.php
- Create a title for your referral particle box:
Open your language/*/common.php file and, toward the end before the ?> , add the following line:
$lang_str['REFERRAL']= 'Referrals';
- Create a template var called PARTICLE_REFERRAL.
Open your includes/common.php file.
Look for:
$template->setTemplate Var("PARTICLE_RECENT_PICT URES",$particle->creat eThumbPicBox());
Then below that add:
$template->setTemplate Var("PARTICLE_REFERRAL",$ particle->createReferr alBox());
Note:You'll have to do that step twice (once for the send header function, and once for the send footer function).
- Now create a function called createReferralBox.
Find:
} $cache_data=null; return $this->particlebox['TH UMBPICS']; }
And below that add:
function createReferralBox() { global $session,$conf,$FBB_SESS, $template,$lang_str,$skin ;
$referral = @implode('',@file(FBB_ROO T . "/custompb/referral_box.php"));
$this->particlebox['RE FERRAL'] = str_replace("<!--BLANK _TITLE-->",$lang_str[' REFERRAL'],$this->part iclebox['BLANK']); $this->particlebox['RE FERRAL'] = str_replace("<!--BLANK _CONTENT-->",$referral ,$this->particlebox['R EFERRAL']);
return $this->particlebox['RE FERRAL'];
}
Note: Take a close look at the lines starting with $this.
The first line uses the