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
wHiTeHaT Private
Joined: May 31, 2003
Posts: 36
Posted:
Tue Jul 22, 2008 12:11 pm
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");
}
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