NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List 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
Need to find your IP fast?
Need to find your IP fast?

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.
Nuke Themes
Posted on Monday, October 08, 2001 @ 11:35 PM CDT by NukeResources

Multi-Site Search
Google
Web NukeResources.com
NukeFixes.com NukeSecurity.com
 

Sponsor Links
 

 
Related Links
· More about Nuke Themes
· News by NukeResources


Most read story about Nuke Themes:
New Flash Theme for PHP-Nuke 5.4

Article Rating
Average Score: 4
Votes: 2


Please take a second and vote for this article:

Excellent
Very Good
Good
Regular
Bad

Options

 Printer Friendly Page Printer Friendly Page


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


Game Quest Online - Games and more!


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.26 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::