|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 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
|
|
|
|
Joined: Jul 2003
Posts: 273
Member
|
Member
Joined: Jul 2003
Posts: 273 |
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. Thanks for this Allen..
|
|
|
|
Joined: Jan 2000
Posts: 254 Likes: 4
Beta Tester
|
Beta Tester
Joined: Jan 2000
Posts: 254 Likes: 4 |
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?
There is no such thing as stupid questions. Just stupid answers.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
thanks guys, you're welcome hopefully pm's can be worked out next
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
Ummm.. Note: You must change the cookie numnber
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
is this the same thing you did Ron? I haven't looked at your code in a while and am not sure This is about as basic as it gets
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I see, mine still has some extraneous stuff in it that should prolly be cleaned out
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
instead of the first line being <script language=Javascript type=text/javascript> change it to <script language="Javascript" type="text/javascript">
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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)
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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?
|
|
|
|
Joined: Jul 2004
Posts: 132 Likes: 1
Journeyman
|
Journeyman
Joined: Jul 2004
Posts: 132 Likes: 1 |
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 d.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
Welcome 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.
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
I do have a PHP function that does the same thing if anyone might be interested...
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|