UBB.Dev
Posted By: AllenAyres [6.7] [beta] Hello Username [logout] - 12/31/2003 8:09 PM
Modification Name: Hello Username [logout]

Author(s): AllenAyres

Description: This will give you the more-than-famous:

Hello, AllenAyres [ log out ]

most any place you decide to use it for those who are logged in, for those not logged in it will harrass them to do so tipsy

Demo: https://ubbdev.com

Download Link: https://www.ubbdev.com/ubb/upload/00000494/ubblogin.txt

Credits: Charles Capps

You need to change the urls and cookie number in the scripts to match your own.

Tested on 6.7, it may work on other versions... I can't support those other versions due to lack of time tho tipsy
cool.... can I get one that phones the user if they fail to log in? For example they visit the page, but don't log in. Once their browser session ends they get a phone call that says, "Why the f**k didn't you log in?!"

I think this would be very helpful. tipsy

Thanks for this Allen.. smile
Posted By: Ruben Rocha Re: [6.7] [beta] Hello Username [logout] - 12/31/2003 10:32 PM
Very nice. I was just asking for something like this. It is a lot cleaner than what I came up with. The next step would be to show private messages. I have not been able to get it working correctly in a htm or asp page.I see you set the "haspms" to 0 to turn it off.

Any chance of enhancing the PM part?
Posted By: AllenAyres Re: [6.7] [beta] Hello Username [logout] - 12/31/2003 10:50 PM
thanks guys, you're welcome smile

hopefully pm's can be worked out next smile
Posted By: Ron M Re: [6.7] [beta] Hello Username [logout] - 12/31/2003 11:50 PM
Ummm.. tipsy

Note: You must change the cookie numnber
Posted By: AllenAyres Re: [6.7] [beta] Hello Username [logout] - 12/31/2003 11:56 PM
is this the same thing you did Ron? I haven't looked at your code in a while and am not sure smile This is about as basic as it gets smile
Posted By: Ian Spence Re: [6.7] [beta] Hello Username [logout] - 01/01/2004 12:06 AM
Allen, here's a version I had posted in the forum integration forum a while ago, a tad shorter.

https://www.ubbdev.com/ubb/upload/00020028/4HAVOQ.txt
Posted By: AllenAyres Re: [6.7] [beta] Hello Username [logout] - 01/01/2004 2:13 AM
I see, mine still has some extraneous stuff in it that should prolly be cleaned out smile
Posted By: driv Re: [6.7] [beta] Hello Username [logout] - 07/20/2004 6:24 PM
Hi
Has anyone had any problems with their pages not validating when using this code?

The validator at www.w3.org reports there being a closing "/script" tag when there isn't an opening "script" tag.

It suggests that there may be an unescaped character in the HTML embeded in the javascript.

I've tried escaping some of the closing tags, but really, I'm getting nowhere fast.

Any thoughts on this?
d.
Posted By: Ron M Re: [6.7] [beta] Hello Username [logout] - 07/20/2004 6:43 PM
nvrmind
Posted By: Ian Spence Re: [6.7] [beta] Hello Username [logout] - 07/20/2004 6:46 PM
instead of the first line being
Code
<script language=Javascript type=text/javascript>
change it to

Code
<script language="Javascript" type="text/javascript">
Posted By: driv Re: [6.7] [beta] Hello Username [logout] - 07/20/2004 11:36 PM
Thanks again Ian.
That works. But, I still needed to escape the three end anchor tags.

(Just pointing that out for anyone else with the same problem)
Posted By: AllenAyres Re: [6.7] [beta] Hello Username [logout] - 07/21/2004 5:18 AM
I updated the file with the quotation marks, it's kinda difficult to test the (x)html validation. Are you using xhtml 1.0 transitional or some other doctype to validate against?
Posted By: driv Re: [6.7] [beta] Hello Username [logout] - 07/21/2004 10:24 PM
Hi Allen
Sorry, I should have mentioned that I am still rooted firmly in the Stone-Age and am using...

"http://www.w3.org/TR/html4/loose.dtd">

But hey - thanks for a great mod smile
d.
Posted By: AllenAyres Re: [6.7] [beta] Hello Username [logout] - 07/22/2004 5:47 AM
Welcome smile

hhmmm.... it's been a few years since I've validated anything against that doctype. It *should* still be valid code, but I know there are times when you validate a page against 4.01 and it throws errors yet when you switch to xhtml 1.0 transitional the errors disappear.
Posted By: Ron M Re: [6.7] [beta] Hello Username [logout] - 07/22/2004 5:57 AM
I do have a PHP function that does the same thing if anyone might be interested...
© UBB.Developers