PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
pimpoff
New Member
New Member


Joined: Sep 25, 2003
Posts: 21

PostPosted: Tue Sep 30, 2003 7:19 pm Reply with quote Back to top

Hello, I have added a cgi irc client to my nuke site. I want to make it very simple so i have a login forum which fills the Nickname field with Anonymous, now would it be possible for me to retrive the name that person is under and fill the forum wtih it? Lets say i have this module only for regged people.

edit:
If the php file which contains this form has nothing really to do with nuke. It is just a index.php file I put in /modules/Chat
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Oct 01, 2003 11:28 am Reply with quote Back to top

This code will retrieve the username when called within a module (index.php) file, for instance. Make sure your index.php file has included mainfile.php.
Code:
global $user, $cookie;
if (is_user($user)) {
    cookiedecode($user);
    $username = $cookie[1];
}
else $username = "Anonymous";

Now, you can just pass the username via the url to your irc client. The client will have to extract the username.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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