Hello, After upgrading to the latest Raven Nuke; my Scrolling block isn't showing the banned Ips. The block shows up fine. Can anyone tell me where the communication break mybe. I have tried to re-install the block with no luck.
I am running 2.5.17 on
Only registered users can see links on this board! Get registered or login to the forums!
mgc_painkiller - it is not necessary to post the same question in multiple forums.
@ gremmie - yes he has several and I suggested he try disabling the others to see what happened in one of his other posts
Sorry. for the multiple post. After I had found this topic I thought I would get more help on this issue.
I will go try and test the disabling of the other scrolling blocks. These have always worked with it in the past. It just did stop after the update of the RavenNuke this past weekend.
Ok, I have all disabled but the NS Scrolling block with no change. It still isn't scrolling any of the 36 blocked IPs. I checked my database and the ips are still listed. As well in the NS Admin panel. What else you got for me?
LOL, Man I must be getting burned out on this. Sorry about that. But, Yes your right. It didnt work with DeepBlue. And I have not tested it on FireFox. I am on my Work laptop and I can't download Firefox to this PC. I will have to wait to get on my own and try it. Inless someone else out there has and sees it working or not before I can test it.
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Wed Apr 30, 2008 2:49 pm
Well I don't use that block myself, but I would be surprised if it didn't work on the latest RN. But I will try it out at home myself and see what it does for me.
Ok, I tried it in Fire Fox and it isn't working with it either. I do know that it works with the lastest RN. I am using it on My other site at
Only registered users can see links on this board! Get registered or login to the forums!
. Only this was a freash install instead of the upgrade. The upgrade on the mgcclan.com was a RN version as well. So I'm not sure. I don't really care if I use the block as much as I just would feel better if the NS is working the way it should. We have been attacked alot as of late to try and get into our forums database.
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Wed Apr 30, 2008 3:14 pm
Well, I think you know this, but I'm not sure from your previous post, but the block doesn't *do* anything but display blocked IP's. It isn't providing the protection.
I just did a view source on your site. There isn't anything in the marquee tag contents. Are you sure you have banned IP addresses in the database table? Perhaps there is a problem with a table.
Yah, I checked the NS Admin and the Database file and both are showing the same 36 blocked IPs. I guess I could write them down and drop the Table and re-install NS as a freash in-stall to see if that fixes it. Just didnt want to have to enter in all the IPs again. Really be upset if this dosnt fix it. lol
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Wed Apr 30, 2008 3:47 pm
You don't have to re-enter the IP's again. Just export them from phpMyAdmin and reimport them when it is re-installed.
But yeah, that looks weird. It looks like it is trying to get the table out of what I presume is your donations database? Are your settings in config.php correct for your database?
I just did a test and copied the database table to the donations one and the scrolling block is reading them now. So, this narrows it down to it looking at the wrong dataase for the blocked Ips. As far as I know the config file is setup right because the rest of the site wouldn't be working if it wasn't. There has to be a NS config somewhere that some how got the wrong DB information during the install.
lol, I did about 20 times now. It has the right DB listed for the rest of the site. The Donations one is use for it only. The donations DB isnt even listed in there as it has its on Config files in the module to run it. Other then finding out that the NS side blocks are talking to the wrong DB some how I am lost on this one now.
Is NukeScripts the creater of this and if so how do I get support on the site? There are no forums as far as I can see.
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Wed Apr 30, 2008 6:15 pm
This site provides forums support for NukeSentinel. I think someone is going to have to poke around on your site and look at some settings to resolve this.
You said you upgraded this site. Did you totally obliterate the old site or did you just copy over the old files?
I just went to you site with latest FF, IE, Opera and Safari and I see no issues. Your block is scrolling just fine...
HI Montego,
You would have to read a few post up to get the full update. Long story short I found that the NS side blocks are looking for the wrong data base. They are trying to use my Donations database for the blocked ips. So when I copied the table to my Donations DB they started scrolling the IPs and now im trying to find out why they are reading from the wrong DB when the rest of NS is reading from the right one.
Joined: Apr 06, 2006 Posts: 2401 Location: Iowa, USA
Posted:
Thu May 01, 2008 8:26 am
mgc_painkiller, the NS blocks just don't decide to use a different database. They use the same $db object that all other blocks and modules do which is built from information in config.php.
(To caveat what I said: Some really old or poorly coded blocks sometimes don't use the $db database variable and make mysql_* calls directly. But the NS blocks don't do this.)
As I said, I think someone is going to have to inspect your system to debug this further. What other tables do you have in your donations database?
mgc_painkiller, the NS blocks just don't decide to use a different database. They use the same $db object that all other blocks and modules do which is built from information in config.php.
(To caveat what I said: Some really old or poorly coded blocks sometimes don't use the $db database variable and make mysql_* calls directly. But the NS blocks don't do this.)
Gremmie I know what you have been saying and I'm not mis-understanding you. I am just stateing what it is doing and my test of putting the Blocked IPs table in the Donations DB proves that NS is looking at two different DBs somewhere.
Here is the coding for my current Config file
Code:
<?php
//#####################################################################
// PHP-NUKE: Advanced Content Management System
// ============================================
//
// Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com)
// http://phpnuke.org
//
// This module is to configure the main options for your site
//
// This program is free software. You can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License.
//#####################################################################
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'config.php')) {
Header('Location: index.php');
die();
}
//#####################################################################
// Database & System Config
//
// dbhost: SQL Database Hostname
// dbuname: SQL Username
// dbpass: SQL Password
// dbname: SQL Database Name
// $prefix: Your Database table's prefix
// $user_prefix: Your Users' Database table's prefix (To share it)
// $dbtype: Your Database Server type. Supported servers are:
// MySQL, mysql4, postgres, mssql, oracle, msaccess,
// db2 and mssql-odbc
// Be sure to write it exactly as above, case SeNsItIvE!
// $sitekey: Security Key. CHANGE it to whatever you want, as long
// as you want. Just don't use quotes.
// $gfx_chk: Set the graphic security code on every login screen,
// You need to have GD extension installed:
// 0: No check
// 1: Administrators login only
// 2: Users login only
// 3: New users registration only
// 4: Both, users login and new users registration only
// 5: Administrators and users login only
// 6: Administrators and new users registration only
// 7: Everywhere on all login options (Admins and Users)
// NOTE: If you aren't sure set this value to 0
// $subscription_url: If you manage subscriptions on your site, you
// must write here the url of the subscription
// information/renewal page. This will send by
// email if set.
// $admin_file: Administration panel filename. "admin" by default for
// "admin.php". To improve security please rename the file
// "admin.php" and change the $admin_file value to the
// new filename (without the extension .php)
// $tipath: Path to where the topic images are stored.
// $display_errors: Debug control to see PHP generated errors.
// false: Don't show errors
// true: See all errors ( No notices )
//
//#####################################################################
$dbhost = "localhost";
$dbuname = "********";<==left out my data
$dbpass = "******";<==left out my data
$dbname = "mgcclanc_mgc1killer2";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "***********************";<==left out my data
$gfx_chk = 7;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$display_errors = false; //This should only be used (set to "true") when testing locally and not in a production environment
/*********************************************************************/
/* You have finished configuring the Database settings. Now you can */
/* change all you want in the Administration Section. To enter, just */
/* point your web browser to http://yourdomain.com/admin.php */
/* */
/* Remember to go to Settings section where you can configure your */
/* new site. In that menu you can change all you need to change. */
/* */
/* Congratulations! now you have an automated news portal! */
/* Thanks for choosing PHP-Nuke: The Future of the Web */
/*********************************************************************/
// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING
$reasons = array('As Is','Offtopic','Flamebait','Troll','Redundant','Insightful','Interesting','Informative','Funny','Overrated','Underrated');
$badreasons = 4;
$AllowableHTML = array('b'=>1,'i'=>1,'u'=>1,'div'=>2,'a'=>2,'em'=>1,'br'=>1,'strong'=>1,'blockquote'=>1,'tt'=>1,'li'=>1,'ol'=>1,'ul'=>1);
$CensorList = array('f***','cunt','f***er','f***ing','pussy','cock','c0ck','cum','twat','clit','bitch','fuk','fuking','motherfucker');
// Nuke Patched 3.2 (modified by the RavenNuke Team)
// Further enhanced by Raven at http://ravenphpscripts.com
/*********************************************************************/
/* The configuration options for RavenNuke(tm) have been moved to a */
/* separate file here: */
/*********************************************************************/
require_once('rnconfig.php');
?>
Here is my current RN_Config
Code:
rnconfig.php
PHP script text
--------------------------------------------------------------------------------
<?php
/**
Written and solely owned by Raven Web Services, LLC
Not for distribution other than by Raven Web Services, LLC
Copyright 2005-2008
**/
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'rnconfig.php')) {
Header('Location: index.php');
die();
}
//
// Version define added by montego - can be used by scripts to identify RN CMS and version
// Do not change this for your site as it might mess up future features and add-ons
define('RAVENNUKE_VERSION', '022001');
//Inspired by phoenix-cms at website-portals.net
//Enhanced by Raven at ravenphpscripts.com
if (!defined('NUKE_BASE_FOLDER')) {
$path_parts = pathinfo($_SERVER['PHP_SELF']);
define('NUKE_BASE_FOLDER', str_replace('\\/', '/', $path_parts['dirname'].'/')); //montego - modified slightly to work on some windows platforms
}
//Absolute Nuke directory
if (!defined('NUKE_BASE_DIR')) define('NUKE_BASE_DIR', dirname(__FILE__) . '/');
//Absolute Nuke directory + includes
if (!defined('NUKE_BLOCKS_DIR')) define('NUKE_BLOCKS_DIR', NUKE_BASE_DIR . 'blocks/');
if (!defined('NUKE_IMAGES_DIR')) define('NUKE_IMAGES_DIR', NUKE_BASE_DIR . 'images/');
if (!defined('NUKE_INCLUDE_DIR')) define('NUKE_INCLUDE_DIR', NUKE_BASE_DIR . 'includes/');
if (!defined('NUKE_LANGUAGE_DIR')) define('NUKE_LANGUAGE_DIR', NUKE_BASE_DIR . 'language/');
if (!defined('NUKE_MODULES_DIR')) define('NUKE_MODULES_DIR', NUKE_BASE_DIR . 'modules/');
if (!defined('NUKE_THEMES_DIR')) define('NUKE_THEMES_DIR', NUKE_BASE_DIR . 'themes/');
if (!defined('NUKE_ADMIN_DIR')) define('NUKE_ADMIN_DIR', NUKE_BASE_DIR . 'admin/');
if (!defined('NUKE_CLASSES_DIR')) define('NUKE_CLASSES_DIR', NUKE_BASE_DIR . 'classes/');
if (!defined('NUKE_ADMIN_MODULE_DIR')) define('NUKE_ADMIN_MODULE_DIR', NUKE_ADMIN_DIR . 'modules/');
if (!defined('NUKE_FORUMS_DIR')) define('NUKE_FORUMS_DIR', (defined('IN_ADMIN') ? './../' : 'modules/Forums/'));
/*********************************************************************************
* PHP Error Reporting Levels:
*
* Mainly used in mainfile.php and is directly related
* to the $display_errors setting in the main config.php file. If $display_errors
* is set to "true" then this setting will be used by PHP. Otherwise it will be
* ignored. Below are the possible settings:
*
* Value Constant Description
* ------ -------------------------------- ------------------------------------------------------------------------------------
* 1 E_ERROR (integer) Fatal run-time errors. These indicate errors that can not be recovered from,
* such as a memory allocation problem. Execution of the script is halted.
* 2 E_WARNING (integer) Run-time warnings (non-fatal errors). Execution of the script is not halted.
* 4 E_PARSE (integer) Compile-time parse errors. Parse errors should only be generated by the parser.
* 8 E_NOTICE (integer) Run-time notices. Indicate that the script encountered something that could
* indicate an error, but could also happen in the normal course of running a script.
* 16 E_CORE_ERROR (integer) Fatal errors that occur during PHP's initial startup. This is like an E_ERROR,
* except it is generated by the core of PHP. (Since PHP 4.)
* 32 E_CORE_WARNING (integer) Warnings (non-fatal errors) that occur during PHP's initial startup. This is like
* an E_WARNING, except it is generated by the core of PHP. (Since PHP 4.)
* 64 E_COMPILE_ERROR (integer) Fatal compile-time errors. This is like an E_ERROR, except it is generated by the
* Zend Scripting Engine. (Since PHP 4.)
* 128 E_COMPILE_WARNING (integer) Compile-time warnings (non-fatal errors). This is like an E_WARNING, except it is
* generated by the Zend Scripting Engine. (Since PHP 4.)
* 256 E_USER_ERROR (integer) User-generated error message. This is like an E_ERROR, except it is generated in
* PHP code by using the PHP function trigger_error(). (Since PHP 4.)
* 512 E_USER_WARNING (integer) User-generated warning message. This is like an E_WARNING, except it is generated
* in PHP code by using the PHP function trigger_error(). (Since PHP 4.)
* 1024 E_USER_NOTICE (integer) User-generated notice message. This is like an E_NOTICE, except it is generated in
* PHP code by using the PHP function trigger_error(). (Since PHP 4.)
* 2048 E_STRICT (integer) Run-time notices. Enable to have PHP suggest changes to your code which will ensure
* the best interoperability and forward compatibility of your code. (Since PHP 5.)
* 4096 E_RECOVERABLE_ERROR (integer) Catchable fatal error. It indicates that a probably dangerous error occured, but did
* not leave the Engine in an unstable state. If the error is not caught by a user
* defined handle (see also set_error_handler()), the application aborts as it was
* an E_ERROR. (Since PHP 5.2.)
* 8191 E_ALL (integer) All errors and warnings, as supported, except of level E_STRICT in PHP < 6.
* 6143 in PHP 5.2 and 2047 previously
*********************************************************************************/
$error_reporting = E_ALL^E_NOTICE; // This is the default and means: All errors except Notices
/*********************************************************************************
* SQL Logging to Text Log File:
* Calls through db/mysql.php only are logged.
* loglevel = 0 -> no logging (default setting)
* loglevel = 1 -> logs sql errors (with associated IP address) only
* loglevel = 2 -> logs ALL sql query statements and errors and is intended for
* development testing purposes only as the log file can grow
* rather quickly!
* set up a dblog file in your /rnlogs directory with privileges of 666 to use this
*********************************************************************************/
$loglevel = 0;
/*********************************************************************************
* Visual Captcha Configuration for Modules (to help prevent spam):
* You need to have GD extension installed:
* 0 = No Security Code
* 1 = Require Code for Anonymous ONLY
* 2 = Require Code for Registered ONLY
* 3 = Require Code for BOTH Anonymous and Registered
* NOTE: If the module name is present (defined here), then it means that module has
* had the new visual captcha applied to it and is controlled by setting the code
* value based on the above values.
**********************************************************************************/
$modGFXChk = array(
'Downloads' => 3,
'Feedback' => 3,
'News' => 3,
'Recommend_Us' => 3,
'Reviews' => 3,
'Submit_News' => 3,
'Surveys' => 3,
'Web_Links' => 3
);
/*********************************************************************************
* nukeWYSIWYG Copyright (c) 2005 Kevin Guske http://nukeseo.com
* img tag update by Nopsych November 2006 http://www.nopsych.it
* kses developed by Ulf Harnhammar http://kses.sf.net
* kses enhancement ideas contributed by sixonetonoffun http://netflake.com
* FCKeditor by Frederico Caldeira Knabben http://fckeditor.net
* Original FCKeditor for PHP-Nuke by H.Theisen http://phpnuker.de
*
* Advanced Editor (nukeWYSIWYG) Configuration Options:
*
* The $advanced_editor setting controls whether or not nukeWYSIWYG(tm)
* will be used. The site-level setting is below. But adding a similar
* setting to the modules/xxxx/index.php allows the editor to be enabled
* or disabled at the module level.
*
* The $AllowableHTML array definitions will override/overlay the $AllowableHTML
* array definitions in the standard config.php file. This is intentional and is
* required for correct operation of the Editor.
**********************************************************************************/
$advanced_editor = 1; // 0=Editor is turned OFF, 1=Editor is turned ON
$AllowableHTML = array(
'a' => array('href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
'b' => array(),
'blockquote' => array(),
'br' => array(),
'center' => array(),
'div' => array('align' => 1),
'em' => array(),
'font' => array('face' => 1, 'style' => 1, 'color' => 1, 'size' => array('minval' => 1, 'maxval' => 7)),
'h1'=>array(),
'h2'=>array(),
'h3'=>array(),
'h4'=>array(),
'h5'=>array(),
'h6'=>array(),
'hr' => array(),
'i' => array(),
'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
'li' => array(),
'ol' => array(),
'p' => array('align' => 1),
'pre' => array('align' => 1),
'span' =>array('class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),
'strong' => array(),
'strike'=>array(),
'sub'=>array(),
'sup'=>array(),
'table' => array('align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
'td' => array('align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
'tr' => array('align' => 1),
'tt'=>array(),
'u' => array(),
'ul' => array(),
);
/*********************************************************************************
* NukeSentinel(tm) Configuration Options:
*
* $bypassNukeSentinelInvalidIPCheck: Debug control to bypass NukeSentinel(tm)
* InvalidIP check when set to "true". Leave
* this "false" for production sites.
* $bypassInstallationFolderCheck: Debug control to bypass RavenNuke(tm)
* setup/runtime check when set to "true". Leave
* this "false" for production sites.
**********************************************************************************/
$bypassNukeSentinelInvalidIPCheck = false; // This should only be used (set to "true") when testing locally and not in a production environment
$bypassInstallationFolderCheck = false; // This should only be used (set to "true") when testing locally and not in a production environment
/*********************************************************************************
* TegoNuke(tm) ShortLinks Configuration Options:
**********************************************************************************/
$tnsl_bUseShortLinks = false; // Setting this to "true" will cause RavenNuke(tm) to shorten the URLs in GoogleTap/GTNG fashion.
$tnsl_bAutoTapBlocks = false; // Setting this to "true" will cause RavenNuke(tm) to shorten the URLs automatically for block files.
$tnsl_bAutoTapLinks = false; // Setting this to "true" will cause RavenNuke(tm) to search for additional untapped links and attempt to shorten them - could slow down your site
$tnsl_bDebugShortLinks = false; // Setting this to "true" will cause the ShortLinks function to display debugging information.
/*********************************************************************************
* Dynamic Titles Configuration Options:
**********************************************************************************/
$useDynamicTitles = false; // Setting this to "true" will cause RavenNuke(tm) to create Dynamic Titles by module.
/*********************************************************************************
* Force username to lowercase only:
**********************************************************************************/
$forceLowerCaseUserName = false; // Setting this to "true" will force new usernames to be lower case only.
/*********************************************************************************
* Turn on auto-activate (i.e., no registration activation emails are sent):
**********************************************************************************/
$autoActivateUsers = true; // Setting this to "true" will auto-activate users.
/*********************************************************************************
* Turn on email/user drop down box in YA admin:
* This presents a list of users that you can select one from to edit or delete.
* Note that for sites with thousands of users one may want to consider keeping this
* off ("false").
**********************************************************************************/
$ya_dropdown = true; // Setting this to "true" will turn on drop down box
$sortbyusername = true; // Default sort order is by email address. Set this to "true" to sort by username instead.