Author |
Message |
diabluntd
Hangin' Around

Joined: Mar 19, 2004
Posts: 31
|
Posted:
Mon May 10, 2004 5:55 pm |
|
I use the very common User Info for my php-nuke and the Site Messenger module from flashnukers.com. Instead of using Site Messengers block (Which shows online users which you can click on to send a site message to) i'd like to make the link inside the User Info open up a new site message window. I'm really not a coder so i'm stuck trying to create a sized window with no title bar, scroll bar, etc.
Here is the code from the user info. Right now it functions but it opens the new site message window in a regular browser window. Can someone tell me how i can have it open with the specs i stated above?
Code:$who_online_now .= " 0$i: <A HREF=\"modules.php?name=Site_Messenger&file=buddy&op=compose&to=$session[uname]\" target=\"_blank\">$session[uname]</a><br>\n";
|
Thanks in advance. |
|
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Mon May 10, 2004 6:12 pm |
|
Not to be a pain here but try google search on:
onload resize |
|
|
|
 |
JGNYC
New Member


Joined: Oct 17, 2002
Posts: 5
|
Posted:
Mon May 10, 2004 7:06 pm |
|
Great idea!
I'm stumped though, I tried installing it and the popup SM works fine only while browsing the forums. Not on any other page (including the main page)
I get a javascript error (object expected)
Anyone have any ideas? |
|
|
|
 |
sixonetonoffun

|
Posted:
Mon May 10, 2004 7:19 pm |
|
Taking a wild whack here but that usually means somethings not there its expecting to be like maybe the java function ? Try view source and see if something is missing thats there while viewing the forum. |
|
|
|
 |
JGNYC

|
Posted:
Mon May 10, 2004 7:21 pm |
|
The forum has a popup for guidelines (while using java)
In order for this to work on other pages, is there a generic file i could put the java code in? |
Last edited by JGNYC on Mon May 10, 2004 10:15 pm; edited 1 time in total |
|
|
 |
diabluntd

|
Posted:
Mon May 10, 2004 7:29 pm |
|
Thanks for your help six. like i said, i'm not much into the actual code so something simple like that wasn't as easy for me to notice. I just came looking for a little wise advice and it seems that's exactly what i got. Thanks again! |
|
|
|
 |
sixonetonoffun

|
Posted:
Mon May 10, 2004 7:41 pm |
|
JGNYC wrote: |
In order for this to work on other pages, is there a generic file i could put the java code in? |
includes/javascript.php
Everything has to be converted (Quotes to single quotes mostly) to work in php echo's. Its not real hard though.
Or just create a myfile.js and include it in header.php (Easier if your not real familar with php and java. (Java's not my thing either been hoping no serious java questions come up for a while ) |
|
|
|
 |
JGNYC

|
Posted:
Mon May 10, 2004 7:44 pm |
|
That sounds impossible for me.
What about putting the java code into header.php? |
|
|
|
 |
sixonetonoffun

|
Posted:
Mon May 10, 2004 9:10 pm |
|
This is the easiest way to get that done.
Quote: |
Or just create a myfile.js and include it in header.php
include("myfile.js");
|
myfile.js would just be the contents of the script without the opening and closing <script tags |
|
|
|
 |
|