Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-11-2003, 12:34 PM   #1
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
Looking for a java script

A friend at a forum I frequent regulary has a java script in her signature that uses the id of whomever has opened that string.

ie: if I open it her sig would read something like,

Hi Eaglefeather, good to see you again.

If you open the string it would use your name.

Has any one seen this script somewhere or know of a good script site where I might find it? Sure would appreciate the help I would like to pull a neat little surprise on her, but need that script to do it.
__________________
Cheers
Eaglefeather

My favourite hobby, it seems to me,
Is crashing my PC.
Eaglefeather is offline   Reply With Quote
Old 01-12-2003, 10:04 AM   #2
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
To whomever sent me the email with the suggestion, thanks. I should have thought of that myself.
Eaglefeather is offline   Reply With Quote
Old 01-12-2003, 10:35 PM   #3
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,379
Hmm... That sounds interesting. Would you mind posting it?
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 01-13-2003, 12:04 PM   #4
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
Sorry, must have been asleep. It was suggested that I open the page in question and go to View/Source.

I have been tied up with another problem since then and have not been able to get to the page to check it out, but it should work.
Eaglefeather is offline   Reply With Quote
Old 01-13-2003, 09:17 PM   #5
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,379
Where's the page?
Force Flow is offline   Reply With Quote
Old 01-13-2003, 09:52 PM   #6
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
The script is being used by a couple of ladies in their signatures at Graphics Central, an EZBoard forum.

http:\\pub76.ezboard.com/bgraphicscentral

What the script does is display the ID of the viewer in the signature. For example I could add the following line to my signature here at PCMechanic and if you were reading the post it would read:

Hi force_flow2002, my favourite hobby it seems to me is.......

or I could change it completely to something such as:

Thank you force_flow2002, your advice and assistance were greatly appreciated.

It kind of personalizes the post.
Eaglefeather is offline   Reply With Quote
Old 01-13-2003, 09:56 PM   #7
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,379
Wouldn't it be almost easier just to type in the name?

[edit]: Btw, I have to sign-up to gain access. And I don't really want to sign-up.
Force Flow is offline   Reply With Quote
Old 01-13-2003, 10:09 PM   #8
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
Yeah, sorry I forgot that new members are now screened. Many of the ezboards have been having trouble with people that like to cause problems.

You may be right Force_flow, this thing with the signature is probably something only us older folk find amazing anyway. I still marvel at the things that can be done with a PC.

I just went and picked up the script but now I have to figure out how to use it. But when you are in retirement you some how find the time to do things like this

Last edited by Eaglefeather; 01-13-2003 at 10:16 PM.
Eaglefeather is offline   Reply With Quote
Old 01-14-2003, 09:56 AM   #9
Member (14 bit)
 
reboot's Avatar
 
Join Date: Mar 1999
Location: Kelowna, B.C., Canada
Posts: 9,138
Instead of anyone having to register, wait, then try and log in, why don't you just post the script here?
__________________
Black holes are where God divided by zero...
Cheers, Jim

Jims Modems
reboot is offline   Reply With Quote
Old 01-14-2003, 12:16 PM   #10
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
Ok Jim, here you go. This is exactly as it came off of the source page.

It is in two parts the first part goes within, "head /head" the second part goes within, "body /body".

I just haven't figured out yet where exactly it goes in a forum, but I suspect the second part goes into the Signature box in your profile. But at the moment I am not sure where the first part goes.

Note I had to use * in place of < > to get the script to show.

*script language="JavaScript"*



function showEl(name,s)
{
if (document.getElementById)
{
var el = document.getElementById(name);
el.style.display = (s)?"":"none";
}
}

function setMode (mode)
{
var show = true;
switch (mode) {
case 0: g_html=false; show=false;break;
case 1: g_html=false; break;
case 2: g_html=true; break;
}
showEl ("insertcodes", show);
showEl ("textformatting", show);
}
/script


This is the second part.



*script langauge="JavaScript"*

*!-- hide me



var the_cookie = document.cookie;



var the_cookie = unescape(the_cookie);



var broken_cookie = the_cookie.split(";");



for (loop = 0; loop < broken_cookie.length; loop++)



{



var property_value = broken_cookie[loop];



var broken_info = property_value.split("=");



if (broken_info[0] == " ezbuser")



{



document.write("Thank you,!! " + broken_info[1]



+ "Your assistance is greatly appreciated.;



}





}





// show me --*



*/script*

Last edited by Eaglefeather; 01-14-2003 at 12:20 PM.
Eaglefeather is offline   Reply With Quote
Old 01-14-2003, 12:40 PM   #11
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Basically, they are just pulling info out of the cookie that is stored for the user. The head section is built in to the code for ezboard. I suppose the purpose is to pull out cookie vars. For more info, check here for using the cookie variable.

On a side note, I refuse to ever join an EZBoard forum. To me it is a privacy issue since they require, name, email address, address, city, state, zip, dob and sex. This is info that should be and on most boards is optional. I don't really have much to hide but I refuse to give out this much info if I don't have to.
mairving is offline   Reply With Quote
Old 01-14-2003, 01:09 PM   #12
Member (14 bit)
 
reboot's Avatar
 
Join Date: Mar 1999
Location: Kelowna, B.C., Canada
Posts: 9,138
Yup, that has to be incorporated into the web page you're on, you cannot do it from your computer.
Interesting bit of spying being done here
reboot is offline   Reply With Quote
Old 01-14-2003, 04:00 PM   #13
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,379
Quote:
Originally posted by Eaglefeather
Ok Jim, here you go. This is exactly as it came off of the source page.

It is in two parts the first part goes within, "head /head" the second part goes within, "body /body".

I just haven't figured out yet where exactly it goes in a forum, but I suspect the second part goes into the Signature box in your profile. But at the moment I am not sure where the first part goes.
The part that goeas in the head has to be written right into it. In other words, you have to add it into the page or it won't work.

[edit] That's an interesting site, mairving!
Force Flow is offline   Reply With Quote
Old 01-16-2003, 10:40 PM   #14
Member (9 bit)
 
Join Date: Apr 1999
Location: North Bay, Ont., Canada
Posts: 475
Send a message via Yahoo to Eaglefeather
Ummmm Mairving you have a good point, but there is no one there looking over your shoulder to make sure the information you place in those little boxes is correct, now is there. And just in case anyone wants to roast me over the coals for that statement,........... I am not listening.

I personally like the ezboard forums. I belong to 6 of them and Moderate and help Administer the Graphics Central forum. Aside from the things I like to do with Graphics I am deep into poetry. The ezboards have some excellent poetry sites, as that is my interest, that is where I go. If anyone knows of poetry forums other than at ezboard I would very happy to go and have a look.

And if you suggest, "Poetry. com", I will scream and yell and have temper tantrums. Been there, done that, don't want to do it again.
Eaglefeather is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:26 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2