You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 311 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - include file in Theme (Deepblue) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
boyz008
Private
Private


Joined: Jul 06, 2008
Posts: 48


PostPosted: Tue Jul 22, 2008 8:49 am Reply with quoteBack to top

Hello all,

I use DeepBlue Theme and I try to include file under header, let call that file is "google_search.html" I use the following code to limite its appearing on the page...

Code:
if ($name=='Forums' || $name=='Your_Account') {
    /* Don't display it. */
   }
   else {
    include("includes/google_search.html");
   }


I want to know how we limite its appearing in Admin Area ?

Thanks
Find all posts by boyz008View user's profileSend private message
wHiTeHaT
Private
Private


Joined: May 31, 2003
Posts: 41


PostPosted: Tue Jul 22, 2008 12:11 pm Reply with quoteBack to top

Code:
if ($name=='Forums' || $name=='Your_Account' || is_admin($admin)) {
    /* Don't display it. */
   }
   else {
    include("includes/google_search.html");
   }


Put in the function you choosed from your original code also the $admin global so you will have:
$name, $admin , $db etc etc etc if you not use the $admin global it wont work.
Also keep in mind adds NEVER show up as admin @all , if still want to see in all the othger pages you must referer to the $admin_file ... depand on what version of nuke you use.

if you use a version where you have setted up $admin_file in your config.php then use the folowing code:
Code:
if ($name=='Forums' || $name=='Your_Account' || defined('ADMIN_FILE')) {
    /* Don't display it. */
   }
   else {
    include("includes/google_search.html");
   }


Grtzz wHiTeHaT Wink
Find all posts by wHiTeHaTView user's profileSend private messageVisit poster's website
boyz008
Private
Private


Joined: Jul 06, 2008
Posts: 48


PostPosted: Tue Jul 22, 2008 8:22 pm Reply with quoteBack to top

Hi wHiTeHaT

Thanks it works now Wink
Find all posts by boyz008View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.046 Seconds - 58 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::