|
|
 |
|
 |
 |
 |
Main Menu |
 |
|
 |
Quick Links |
 |
|
 |
Other Options |
 |
|
 |
Information |
 |
|
 |
NukeForums |
 |
|
 |
Top10 Links |
 |
|
 |
Site Visitors |
 |
Membership:
Latest: Vanquistador
Today: 1
Yesterday: 1
Overall: 15103
Visitation:
Guests: 614
Members: 0
Total: 614
 You are Anonymous user. You can register for free by clicking here |
|
|
|
|
 |
Sponsor Links |
 |
|
|
 |
Adding Banners to phpNuke Themes |
 |
Over the past month or so many people seem to be having troubles adding banners to their sites using some themes that have not added to ability to autodetect if the administrator has turned on the banners in the preferences.
The Banner Code does not have to be placed in the themes/ThemeName/theme.php file function called "themeheader()" however this is the most popular place as it places the banners at the top of your site.
There are 2 things specifcally that will make the banners work from the Administrative preferences area. One is the global variable called $banners and the other is the actual php code.
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $thename;
As you can see from the example php code above the $banners global variable is in place just below the "themeheader()" function.
Once you have the variable in place you need to place the banner php code in this "themeheader()" function as well.
if ($banners) {
include("banners.php");
}
The best place to find out where to place the banner php code is to view the example themes in your theme directories that come with phpNuke with the default installation.
If you would like to place the banners in the center of both left and right columns, like is used at Nuke United, you need to search for "blocks(left);" in the same function at the bottom and place the banner php code just above the last closing brace as shown:
blocks(left);
echo " |
 |
";
if ($banners) {
include("banners.php");
}
}
Let me know if you have found this short introduction helpful in getting your banners working for your themes or others.
|
|
|
|
|
Posted on Monday, October 08, 2001 @ 11:35 PM CDT by NukeResources |
|
|
|
 |
Multi-Site Search
|
 |
 |
Sponsor Links
|
 |
|
| |
 |
Related Links |
 |
|
 |
Article Rating |
 |
Average Score: 4 Votes: 2

|
|
|
|
|
 |
Options |
 |
|
|
Re: Adding Banners to phpNuke Themes (Score: 1) by frost001 on Wednesday, November 13, 2002 @ 9:45 PM CST (User Info | Send a Message) | I make all this step but nuke say error in line 88 in theme, and 46 in header.php
i have nuke 6!
thank's t help me |
|
|
|
|
|
:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::
| | |