Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Voodoo Tech and Scripter's Den of Scriptniquity > Passing current username to external script
536985018_Inactive (New Admin) 7/30/2004 4:56 AM EST : Passing current username to external script
536985018_Inactive
Posts: 329
Fingers of Fury!

Is it possible for GuildPortal to pass the currently logged in user name to a script it calls to generate XML/XSL.  For purposes of identifying which user is requesting the data, and customizing it?
TopBottom

536985018_Inactive (New Admin) 7/30/2004 5:31 AM EST : RE: Passing current username to external script
536985018_Inactive
Posts: 329
Fingers of Fury!

I found a partial solution.  So far, I have some small javascript that can be embeded into an XML/XSL file and read the currently logged in user.

doc=document.body.innerHTML.match(/Welcome, (.[^:]*) :/);
alert(“You are “ + doc[1]);
</script>

It's a start at least...
TopBottom

536895502_Inactive (New Admin) 10/6/2004 9:49 AM EST : RE: Passing current username to external script

Image Blocked

536895502_Inactive
Posts: 2688
Zomgawsh Poster

I am trying to do this.. but I am very very new at web stuff..

I tried just copying what u had in prev post into my welcome message.. 

Nothing shows however..

What am Idoin wrong


Signature blocked by Forum Admin!
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%