Author |
Message |
manunkind
Client

Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM
|
Posted:
Tue Aug 03, 2004 9:43 pm |
|
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. |
|
|
|
 |
manunkind

|
Posted:
Tue Aug 03, 2004 10:33 pm |
|
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


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK
|
Posted:
Tue Aug 03, 2004 10:48 pm |
|
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! |
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Tue Aug 03, 2004 10:48 pm |
|
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 |
|
|
 |
BobMarion
Former Admin in Good Standing

Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)
|
Posted:
Tue Aug 03, 2004 10:49 pm |
|
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! |
|
|
 |
sixonetonoffun

|
Posted:
Tue Aug 03, 2004 10:53 pm |
|
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

|
Posted:
Tue Aug 03, 2004 10:55 pm |
|
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

|
Posted:
Tue Aug 03, 2004 11:22 pm |
|
Here's the way to make the two js files only load in NukeSentinel Admin
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: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 Just remove the blank space from between s and cript. |
|
|
|
 |
Dacubz
Worker


Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois
|
Posted:
Wed Aug 04, 2004 5:50 am |
|
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. |
|
|
|
 |
manunkind

|
Posted:
Wed Aug 04, 2004 6:30 am |
|
Bob,
Thank you so much! It worked perfectly!
And thank you everybody else for trying to help me.
Sentinel rocks!  |
|
|
|
 |
BobMarion

|
Posted:
Wed Aug 04, 2004 10:20 am |
|
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. |
|
|
|
 |
|