Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
tiggy
New Member
New Member


Joined: Sep 18, 2005
Posts: 8

PostPosted: Sun Sep 18, 2005 4:26 pm Reply with quote

Hi guys,

Is it possible that there are some conflicts between latest NS and PN 7.8 (with the fancy text editor).

It seems like that editor saves all data with <br \> at the end (like in Referer COnfig - every enter gets changed to <br \>) which really messed up the layout when lookup at the Blocked Referer list (all data is shown in one line).

I edited two lines of your code; lines below:

Code:
$RefererList = explode("\r\n",$blocker_row['list']);

changed to:

Code:
$RefererList = explode("<br />",$blocker_row['list']);


in includes/nukesentinel.php and modules/nukesentinel/public/...referer...

Which solves the layout problem but doesn't seem to make NS work correctly. I get 15-20 bots from casino sites visiting my site daily trying to post crap in the forums and with PN 7.6 and NS 2.3.x I immediately got me 10-20 mails about a referer I blocked some 2-3 minuts before; now I don't seem to get any; which makes me think NS isn't working Neutral

This is my main problem; my other question is if it is possible to block referers on a particular string; for example */poker.html (without specifying a domain ...)

Any help would be appreciated Smile

Greetz

Tiggy Only registered users can see links on this board! Get registered or login!


Last edited by tiggy on Tue Sep 20, 2005 1:23 pm; edited 1 time in total 
View user's profile Send private message
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Tue Sep 20, 2005 9:35 am Reply with quote

Open admin/modules/nukesentinel.php and find:
Code:
global $admin_file;

if(!isset($admin_file)) { $admin_file = "admin"; }
Right before it add:
Code:
$advanced_editor = 0;

define('NO_EDITOR', TRUE);


This turns the freaking WYSIWYG editor off in Patched 3.1 sites.

_________________
Bob Marion
Codito Ergo Sum
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion
PostPosted: Tue Sep 20, 2005 10:06 am Reply with quote

In admin/modules/nukesentinel/ABConfigSave.php find:
Code:
absave_blocker($xblocker_row);


Before it add:
Code:
$xblocker_row['list'] = str_replace("<br />", "\r\n", $xblocker_row['list']);

$xblocker_row['list'] = str_replace("<br>", "\r\n", $xblocker_row['list']);




In admin/modules/nukesentinel/ABMainSave.php find:
Code:
$admin_list = explode("\r\n", $xadmin_contact);


Before it add:
Code:
$xadmin_contact = str_replace("<br>", "\r\n", $xadmin_contact);

$xadmin_contact = str_replace("<br />", "\r\n", $xadmin_contact);




These two patches should cure any problems you are having with the WYSIWYG editor within NukeSentinel(tm) admin.
 
tiggy
PostPosted: Tue Sep 20, 2005 1:50 pm Reply with quote

Thx for the help ... this fixed it Smile

Seems like I wasn't getting any mail coz the editor added html tags to the emailadres in the config.

Greetz Only registered users can see links on this board! Get registered or login!

PS Sorry for the "word" I used ...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©