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, 57 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 - Forum problem [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
smicovic
Nuke Cadet
Nuke Cadet


Joined: Apr 24, 2005
Posts: 2


PostPosted: Sun Apr 24, 2005 5:31 am Reply with quoteBack to top

here is adress:

[url]http://www.counterstrike.co.yu/modules.php?name=Forums
[/url]

and here is the code:
Code:
 
TH_ADMIN: $result = $result || $is_admin; break; } $auth_user = $auth_user || $result; } } else { $auth_user = $is_admin; } return $auth_user; } ?> 
 



can anyone help me pls.

p.s. i was install sentinel 2.2.0
Find all posts by smicovicView user's profileSend private messageSend e-mailVisit poster's websiteICQ Number
Maximus-Sniper
Nuke Cadet
Nuke Cadet


Joined: Mar 26, 2005
Posts: 4

Location: Somewhere in Norway

PostPosted: Sun Apr 24, 2005 5:47 am Reply with quoteBack to top

Hi Smile

Did you follow the installation from the Readme.txt file?

here is the code:

ADMIN.PHP File Edits:
=====================
Be sure your admin.php file has the following as the 2nd or 3rd line:
define('ADMIN_FILE', true);


JAVASCRIPT.PHP File Edits:
==========================
1) Open your includes/javascript.php file and find:

##################################################
# Include for some common javascripts functions #
##################################################

2) Add these 5 lines:

Code:
global $sentineladmin;
   if($sentineladmin > 0) {
     echo "<script type=\"text/javascript\" src=\"includes/overlib.js\"><!-- overLIB
        (c) Erik Bosrup --></script>\n";
     echo "<script type=\"text/javascript\" src=\"includes/overlib_hideform.js\"><!--
        overLIB (c) Erik Bosrup --></script>\n";
   }


so that the result looks like:

##################################################
# Include for some common javascripts functions #
##################################################
Code:
global $sentineladmin;
if($sentineladmin > 0) {
  echo "<script type=\"text/javascript\" src=\"includes/overlib.js\"><!-- overLIB
        (c) Erik Bosrup --></script>\n";
  echo "<script type=\"text/javascript\" src=\"includes/overlib_hideform.js\"><!--
        overLIB (c) Erik Bosrup --></script>\n";
}



HEADER.PHP File Edits:
======================
NOTE: THIS WILL DISPLAY A REMINDER TO ADMINISTRATORS WHEN THEY HAVE THEIR SITE DISABLED.
1) Open your header.php file and find:

Code:
global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;


1-a) add $ab_config, to the global

so that it looks like:

Code:
global $ab_config, $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;

2) Next, find:

themeheader();

2-a) add BEFORE it:

Code:
if($ab_config['site_switch'] == 1) {
      echo "<center><img src='images/nukesentinel/disabled.png' border='0' width='120' height='34'></center><br />\n";
    }


So that it looks like:

Code:
if($ab_config['site_switch'] == 1) {
      echo "<center><img src='images/nukesentinel/disabled.png' border='0' width='120' height='34'></center><br />\n";
    }
    themeheader();



MAINFILE.PHP File Edits:
========================
1) Add the following to your mainfile.php file just after the opening <?

Code:
if (defined('FORUM_ADMIN')) {
  @include_once("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
  @include_once("../../includes/nukesentinel.php");
} else {
  @include_once("includes/nukesentinel.php");
}



1-a) The result should look Like this:

Code:
<?php
if (defined('FORUM_ADMIN')) {
  @include_once("../../../includes/nukesentinel.php");
} elseif (defined('INSIDE_MOD')) {
  @include_once("../../includes/nukesentinel.php");
} else {
  @include_once("includes/nukesentinel.php");
}



try to use this code in the MAINFILE.PHP

Code:
<?php
if ($forum_admin == 1) {
   include_once("../../../includes/nukesentinel.php");
} elseif ($inside_mod == 1) {
   include_once("../../includes/nukesentinel.php");
} else {
   include_once("includes/nukesentinel.php");
}


Hope that help Smile
Please make a copy of your MAINFILE.PHP before you add the code Smile
Find all posts by Maximus-SniperView user's profileSend private message
smicovic
Nuke Cadet
Nuke Cadet


Joined: Apr 24, 2005
Posts: 2


PostPosted: Sun Apr 24, 2005 6:26 am Reply with quoteBack to top

allready done all this
Find all posts by smicovicView user's profileSend private messageSend e-mailVisit poster's websiteICQ Number
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-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
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.425 Seconds - 292 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::