Previous Thread
Next Thread
Print Thread
Rate Thread
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 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


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jul 2003
Posts: 273
Member
Member
Offline
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. tipsy

Thanks for this Allen.. smile

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 smile

hopefully pm's can be worked out next smile


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
Ummm.. tipsy

Note: You must change the cookie numnber

Sponsored Links
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 smile This is about as basic as it gets smile


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

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 smile


- Allen wavey
- What Drives You?
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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
Offline
Joined: Nov 2001
Posts: 745
nvrmind

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
instead of the first line being
Code
<script language=Javascript type=text/javascript>
change it to

Code
<script language="Javascript" type="text/javascript">

Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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?


- Allen wavey
- What Drives You?
Joined: Jul 2004
Posts: 132
Likes: 1
Journeyman
Journeyman
Offline
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 smile
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 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.


- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 745
Admin Emeritus
Admin Emeritus
Offline
Joined: Nov 2001
Posts: 745
I do have a PHP function that does the same thing if anyone might be interested...


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)