Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Jun 15, 2005 3:37 am Reply with quote

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?
 
View user's profile Send private message
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Wed Jun 15, 2005 10:34 am Reply with quote

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. 
View user's profile Send private message
hitwalker







PostPosted: Wed Jun 15, 2005 12:15 pm Reply with quote

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







PostPosted: Wed Jun 15, 2005 12:25 pm Reply with quote

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







PostPosted: Wed Jun 15, 2005 12:30 pm Reply with quote

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 Sad
 
64bitguy







PostPosted: Wed Jun 15, 2005 12:37 pm Reply with quote

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







PostPosted: Wed Jun 15, 2005 12:41 pm Reply with quote

ok hold on..im putting the code in see what happens...
 
hitwalker







PostPosted: Wed Jun 15, 2005 12:48 pm Reply with quote

well we can forget about that idea.. Sad
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







PostPosted: Wed Jun 15, 2005 12:52 pm Reply with quote

Zip up the include and send me a link to it.

I'll see what I can do to fix it.

Steph
 
hitwalker







PostPosted: Wed Jun 15, 2005 12:53 pm Reply with quote

was double post...hold on...
 
hitwalker







PostPosted: Wed Jun 15, 2005 1:03 pm Reply with quote

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.. Smile
 
hitwalker







PostPosted: Wed Jun 15, 2005 3:06 pm Reply with quote

any luck 64bitguy ?
 
64bitguy







PostPosted: Wed Jun 15, 2005 5:05 pm Reply with quote

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: [ Only registered users can see links on this board! Get registered or login! ]

Please advise of any problems.

Hope this helps.
Steph
 
hitwalker







PostPosted: Wed Jun 15, 2005 5:13 pm Reply with quote

well i will try it...
but the helpdesk has nothing to do with nuke....
but you know that.....?
 
hitwalker







PostPosted: Wed Jun 15, 2005 5:18 pm Reply with quote

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







PostPosted: Wed Jun 15, 2005 5:34 pm Reply with quote

No, I know that it is not a nuke module.
 
hitwalker







PostPosted: Wed Jun 15, 2005 5:41 pm Reply with quote

well thanks for trying...
il try to find another forum block ....
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

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 ©