PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
diabluntd
Hangin' Around


Joined: Mar 19, 2004
Posts: 31

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

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: 2499

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

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 Back to top

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
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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


Joined: Oct 17, 2002
Posts: 5

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

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
View user's profile Send private message
diabluntd
Hangin' Around


Joined: Mar 19, 2004
Posts: 31

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

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!
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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 )
View user's profile Send private message
JGNYC
New Member
New Member


Joined: Oct 17, 2002
Posts: 5

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

That sounds impossible for me.
What about putting the java code into header.php?
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2499

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

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
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum