Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports
Author Message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Tue Aug 03, 2004 9:43 pm Reply with quote

Hello all,

Since I upgraded to the latest version of Sentinel, my WYSIWYG editor for posting News articles does not work properly anymore. I keep getting JS errors. This drove me nuts for about a day or so, but tonight I found what causes it.

When I delete the 2 files (overlib.js and overlib_hideform.js) from the "includes" directory, everything works ok. Slow but ok.

So now when I want to post News, I FTP in and delete these 2 files. I then can post my News like I could before. Once I am done, I re-upload those 2 files.

I would leave the files deleted and just not have the new "pop-up help menus" in Sentinel, but it slows the whole site down to where I have to put them back.

What can I do to avoid these conflicts and keep my site running fast?

Thanks.
 
View user's profile Send private message Visit poster's website
manunkind
PostPosted: Tue Aug 03, 2004 10:33 pm Reply with quote

Well, for now I just deleted those 2 lines in javascript.php.

The WYSIWYG editor is working fine now. I just lost all the pop-ups in Sentinel.

Any way of making them both get along?
 
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Tue Aug 03, 2004 10:48 pm Reply with quote

I don't know but I was just posting to let you know somebody was reading this.

Java (other then coffie) and me don't get along well.

_________________
------------------------------------------
To strive, to seek, to find, but not to yield!
I don't know Kara-te but I do know cra-zy, and I WILL use it! 
View user's profile Send private message Visit poster's website
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Aug 03, 2004 10:48 pm Reply with quote

You must have it setup to use all text area's?
That might be a problem. I think if it was only being loaded into named text areas it should play nice but I could be wrong.

Which WYSIWYG are you using htmlArea? And which version number?

Ravens a java junky if nothing else wait n see what he has to say on this one.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
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 Aug 03, 2004 10:49 pm Reply with quote

I'll look at making it only load those files if your in NukeSentinel Admin.

_________________
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
sixonetonoffun
PostPosted: Tue Aug 03, 2004 10:53 pm Reply with quote

You might try adding those lines into the top of admin/modules/sentinel.php and see if it works any better that way. I forget its being loaded from the includes/javascript.php now. IE is pretty forgiving of where it reads script from dunno about the rest but...

Worth a try at least.
 
sixonetonoffun
PostPosted: Tue Aug 03, 2004 10:55 pm Reply with quote

Oh wow Bobs on it can't beat that! I was rambling there spose the path would need to be tweaked. But since I am rambling its bed time for this one!
 
BobMarion
PostPosted: Tue Aug 03, 2004 11:22 pm Reply with quote

Here's the way to make the two js files only load in NukeSentinel Admin Smile

First open includes/javascript.php in a text editor and find:
Code:
  echo "<s cript type=\"text/javascript\" src=\"includes/overlib.js\"><!-- overLIB (c) Erik Bosrup --></s cript>\n";

  echo "<s cript type=\"text/javascript\" src=\"includes/overlib_hideform.js\"><!-- overLIB (c) Erik Bosrup --></s cript>\n";
Now replace those with:
Code:
global $sentineladmin;

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


Next open admin/modules/sentinel.php in a text editor and find:
Code:
<?php
Now make it like:
Code:
<?php

$sentineladmin = 1;


This will make the js files only load when you are in NukeSentinel admin. Also notice that I had to write <s cript and </s cript> in the top two code boxes. This was so I didn't trip NukeSentinel Smile Just remove the blank space from between s and cript.
 
Dacubz
Worker
Worker


Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois

PostPosted: Wed Aug 04, 2004 5:50 am Reply with quote

Would this enable use of javascript in blocks? I've been trying to run Adhearus ads in a block, but Sentinel doesn't like me trying to do that.
 
View user's profile Send private message Visit poster's website
manunkind
PostPosted: Wed Aug 04, 2004 6:30 am Reply with quote

Bob,

Thank you so much! It worked perfectly!

And thank you everybody else for trying to help me.

Sentinel rocks! Razz
 
BobMarion
PostPosted: Wed Aug 04, 2004 10:20 am Reply with quote

Dacubz wrote:
Would this enable use of javascript in blocks? I've been trying to run Adhearus ads in a block, but Sentinel doesn't like me trying to do that.
This would prevent Sentinel's js files from interfering with other javascript on your site by only loading when your in Sentinel's Admin.
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ Bug Reports

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 ©