Banner Manager Tutorial
PHP-Fusion has a Banners Admin page that allows you to do some sweet stuff, if you haven't discovered this feature yet, here is a bit of information to get you started.
PHP-Fusion v7.x comes with a 'Banners' link in the Admin Panel as shown in Figure 1. Selecting this Admin Page brings up an editor page to the center panel. This is where we insert our banner code. If we split our header section in two, Banner 1 is the left part, while Banner 2 is the right part, both showing up inside the header limits of your selected theme.
Banner 1 has a trick to it and it is that the logo you set up in the main settings, (which is also the same logo you see when loging in, and when you set the maintenance mode to On) will be replaced in the header with whatever you set in Banner 1. (Replacement only takes place in the header, the logo you set in Main settings will still show up on maintenance page, and login/out pages.)
Getting your hands dirty with some PHP code...
This might be intimidating for the new user, and for the beginner to PHP, but it is rewarding to give this a shot and play around with the customization power of PHP. Using some PHP code along with our banner, PHP-Fusion makes it easy to distinguish between regular Members (registered users), Guests (visitors who have not registered yet), and Admins (the guys who wear the top hats and are always in control - ok almost always). By using a little PHP in the Banner code, you can target different banners to your users and display only one at a time depending on what type of user is accesing your site.
Now, lets go over the PHP code that you would use to get this functionality for your banner:
The code above is an example of how we can target our code to different user levels. This can be ad campaign code, social network links, images, linking guests to registration page, anything you may need. The example above can also be used on Custom Pages, Custom Panels, in short, it fits anywhere if the CMS allows PHP input. You will be able to notice if PHP input is allowed if you see a button with <?php ?> in it (and TinyMCE is not activated - note that the Banners input will not use TinyMCE even if it is activated).
A practical example, step by step
Ok, so far, you should have a very basic grasp of what you can do with your banners. Now, we will go over a simple Facebook 'Like' box, or button. We are going to place that in our banner. First, we need to get the code from Facebook.
This example uses the standard Like button, which includes a string of text recounting how many people like the page, and also displays the avatars of those who like the page. This is all customizable in the button maker from the Facebook page linked above.
So, by now you should have the code and all you need to do is copy & paste it into the Banner 2 section of your PHP-Fusion site's Banner Admin page.
And so, without too much embellishment, and plain out of the Facebook code maker, our brand spanking new Like button is up there in the header, spreading the selected URL throughout Facebook via the Like button presses your visitors make.
A practical example: Final Result
After saving that banner code onto Banner 2 your site should look like this: