Author |
Message |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Wed Jun 15, 2005 3:37 am |
|
hi all,
im using ravens Forums Collapsing block and that normally works fine but since a few days i have another piece of java script code on the site that shows a helpdesk button.
Problem is that the forum block doesnt work anymore when both codes are used on the index.
the code below is ripped apart to avoid security conflicts but i think you get the idea..
Code:
scri pt lang age="JavaSc ript" type="text/JavaS cript" src="livehelp/include/jav ascript.php"></sc ript>
a href="livehelp/index.php" target="_blank" onclick="openLiveHelp(); closeInfo(); return false"><img src="livehelp/include/status.php" id="LiveHelpStatus" name="LiveHelpStatus" border="0" onmouseover="openInfo(this, event);" onmouseout="closeInfo();"/></a>
|
can anyone see any reason why it should have a conflict so it disables the forum block? |
|
|
|
 |
64bitguy
The Mouse Is Extension Of Arm

Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Wed Jun 15, 2005 10:34 am |
|
Yes.
Check your livehelp/include/java....php file.
PHP-Nuke already has a default include for java and the contents of the livehelp should actually be in the php-nuke include instead.
There may be direct conflicts as you are calling two seperate includes and one may have something the other doesn't like, but in any event, you should always ONLY use PHP-Nuke's includes/jabascript.php
Anyway, once done, you can delete that section of code that calls for the <s-c-r-i-p-t> through </s-c-r-i-p-t> as it is already a nuke include call and thus you don't need to repeat it.
Hope this helps! |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 12:15 pm |
|
hi ,
thanks for the help and idea but that wont do..
i cannot put that java part inside the one nuke is using...simple because the helpdesk is root inslled and paths cannot be changed...
the file itself calls a lot of other stuff to...
There must be another solution....?
As for the javascript in includes...
What does it have to do with ravens block?
and why doesnt it work then? |
|
|
|
 |
64bitguy

|
Posted:
Wed Jun 15, 2005 12:25 pm |
|
That makes no difference.
That one include is simply pointing to another set of java includes. By NOT CALLING FOR IT there (and having all of that content in your baseline include), you aren't changing anything of the application, you are merely not calling for that include at that location, but are instead using the baseline include which is automatically included.
In other words, wherever you would find the call to that include file in nuke in a <s-c-r-i-p-t> and then the closing </s-c-r-i-p-t>, you would merely delete the call as defined in my last post. Problem solved.
I think what you are going to find is that there is a direct conflict between the contents as in one is saying to do one thing, and the other.. another using the same function name. Thus, only the latter one would work. If they are all in one file, you would be deleting the replication and fixing the problem. |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 12:30 pm |
|
so what your saying is to try to add the contents of the helpdesk javascript file to put that in the one of nuke?
No other conflict?
the file of the helpdesk is 22kb  |
|
|
|
 |
64bitguy

|
Posted:
Wed Jun 15, 2005 12:37 pm |
|
My helpdesk had an include/java....php
I copied all of the contents into the nuke include/java...php
Then I deleted the helpdesk include and all of the calls to it as detailed above.
Problem solved.
Now... note... if you have any conflicting functions (same name, different function) post them, I'll recode them into a single function and send them back to you. |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 12:41 pm |
|
ok hold on..im putting the code in see what happens... |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 12:48 pm |
|
well we can forget about that idea..
its a fully mixed file java / php
its not completely java...
Sorry i didnt looked at the file before...
But i cannot in any way put that in javascript.php
Do you know of any other good looking block...?..with some nice table design in it? |
|
|
|
 |
64bitguy

|
Posted:
Wed Jun 15, 2005 12:52 pm |
|
Zip up the include and send me a link to it.
I'll see what I can do to fix it.
Steph |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 12:53 pm |
|
was double post...hold on... |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 1:03 pm |
|
i jusat send you in private the link for the java..
btw i just disabled the java include and indeed then the block works,but also the helpdesk still works but the popup is gone then...it opens in a big window..
well see what you come up with..  |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 3:06 pm |
|
|
|
 |
64bitguy

|
Posted:
Wed Jun 15, 2005 5:05 pm |
|
I'm not sure about this one as I found a lot of hanging opens in the code, but go ahead and try this one (after make a backup of the original which you already have in your original zip).
I'm not sure how this file is supposed to be called. Where is the include? In your header?
I get the impression that this instead should be called as an include in your includes/java...php in nuke instead.
As in a line that says, include("modules/whereveri-it-is/java....php");
Anyway, try it however the way you were doing before and if that doesn't cut it, comment out that code I said before and call for it from your includes/java...php
The modified version is at: http://64bit.us/downloads/javascript-new.zip
Please advise of any problems.
Hope this helps.
Steph |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 5:13 pm |
|
well i will try it...
but the helpdesk has nothing to do with nuke....
but you know that.....? |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 5:18 pm |
|
well thanks for trying but no change...
but im beginning to have this feeling you thought this was a nuke module or block...
but it isnt...its a standalone full helpdesk script that is installed on my root.
the idea of including the java script is the same as having nukescripts approved button om my site... |
|
|
|
 |
64bitguy

|
Posted:
Wed Jun 15, 2005 5:34 pm |
|
No, I know that it is not a nuke module. |
|
|
|
 |
hitwalker

|
Posted:
Wed Jun 15, 2005 5:41 pm |
|
well thanks for trying...
il try to find another forum block .... |
|
|
|
 |
|