Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
diabluntd
Hangin' Around



Joined: Mar 19, 2004
Posts: 31

PostPosted: Mon May 10, 2004 5:55 pm Reply with quote

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 .= "&nbsp;&nbsp;0$i:&nbsp;<A HREF=\"modules.php?name=Site_Messenger&file=buddy&op=compose&to=$session[uname]\" target=\"_blank\">$session[uname]</a><br>\n";


Thanks in advance.
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon May 10, 2004 6:12 pm Reply with quote

Not to be a pain here but try google search on:
onload resize
 
View user's profile Send private message
JGNYC
New Member
New Member



Joined: Oct 17, 2002
Posts: 5

PostPosted: Mon May 10, 2004 7:06 pm Reply with quote

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







PostPosted: Mon May 10, 2004 7:19 pm Reply with quote

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







PostPosted: Mon May 10, 2004 7:21 pm Reply with quote

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







PostPosted: Mon May 10, 2004 7:29 pm Reply with quote

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







PostPosted: Mon May 10, 2004 7:41 pm Reply with quote

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 Exclamation )
 
JGNYC







PostPosted: Mon May 10, 2004 7:44 pm Reply with quote

That sounds impossible for me.
What about putting the java code into header.php?
 
sixonetonoffun







PostPosted: Mon May 10, 2004 9:10 pm Reply with quote

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

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 ©