Welcome to Geeklog, Anonymous Friday, January 10 2025 @ 09:25 am EST

Geeklog Forums

PHP 121 Instant message only works in right side block


Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
Hi,

I have semsuccessfully installed this very nice PHP Instant messenger called PHP 121. I pasted the code into a block anbd has been working well. However I can only get it to work in a left side block not the right side. I asked the developer at his site for some help but he had no knowledge of GL and said I should see if I could get some help here.This is the code that works in a left side block:

Text Formatted Code
<html>
<body>
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
if (window.focus)  
}
</SCRIPT>

<a href="javascript:poptastic('http://highschoolforthehumanities.org/php121_chat/php121im.php');">Instant Messenger</a>
<br>
<br>

<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />
</body>
</html>

 


Any help would be appreciated,

Jordy
 Quote

Status: offline

bjudson

Forum User
Junior
Registered: 01/01/04
Posts: 34
There doesn't seem to be any reason this wouldn't work;

You shouldn't have the



...




tags though.
 Quote

Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
You shouldn't have the



...




tags though.






Not sure what you mean. I did not see ... anywhere in the code. I have a friend that is having the same problem. Paste the code in one of your blocks and you may see that it works in the left side block only. I would be curious if someone could test this on their site cause I have tried a number of things with no luck.

Thanks,
Jordan
 Quote

Status: offline

bjudson

Forum User
Junior
Registered: 01/01/04
Posts: 34
I was sure I saw it in the preview!

Now its gone.. anywho..

you should have the html or body tags.
 Quote

Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
As stated in my post in the code view the HTML and Body tags are in fact present.
 Quote

Status: offline

suprsidr

Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Firstly you should put the function:
Text Formatted Code
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
}
</SCRIPT>

 
in your header.thtml between the head /head tags.
notice the removal of the window.focus line.
then place this code in your block:
Text Formatted Code
<a href="javascript:poptastic('http://highschoolforthehumanities.org/php121_chat/php121im.php');">Instant Messenger</a>
<br>
<br>

<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />

 

Notice the removal of the html & body tags, your page already has those Smile

Now it works anywhere on the page.
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
 Quote

Status: offline

jordydme

Forum User
Full Member
Registered: 11/03/05
Posts: 135
Suprsidr,

Thnks a lot for that info. It totally worked and I have no idea why but I wish i did. How did you figure that out?

Jordy
 Quote

All times are EST. The time is now 09:25 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content