Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hello is there any hack out there that'll work with cookies on, and will logout users for 5.47e ubb? Thanks in advance!

Sponsored Links
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
I use the good old login/logout hack, but ive changed the logout code to wipe out all cookies and it works just fine. The link should link to
http://www.domain.com/cgi/ubbmisc.cgi?action=clearcookies

This does the trick for my purposes!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
There isn't one. It will only work if Cookies are disabled.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
No, it will still log you in, but the logout finction doesnt work, so I modded it as described in my above post. Works nicely!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
quote:
Originally posted by BassTeQ:
No, it will still log you in, but the logout finction doesnt work, so I modded it as described in my above post. Works nicely!



Yeah I know. Sorry I didn't specify what didn't work.

Sponsored Links
Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
quote:
Originally posted by BassTeQ:
No, it will still log you in, but the logout finction doesnt work, so I modded it as described in my above post. Works nicely!



Do tell...

Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
ugh I need to learn how to read heheheh, ok what if people don't logout ?

Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hi BassTeq, can you please post the modified code to enable the logout for cookies please? That is pretty much what I need. Thanks as usual.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Yep, Ill post the code when I get home tonight for you!


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yes, I would like the code too.

Sponsored Links
Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
me three

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Here is my IF statement that Ive modified

if ($cookie{UserName}) {
$LoginText = qq(Hello, $cookie{UserName} [ Logout ]);
} else {
$LoginText = qq(You are not logged in. Login or Register ;
}


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Great. Thanks for the code BassTeQ.

Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hi Bassteq thx for posting the code. Is this the only mod need to Arlo's login/logout hack to makeit work with cookied users??

Thx!

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
No probs guys, yeah thats the only mod you need to do. If you want the hack to grab the users cookied username value you will need to put
[code][/code]
before you use that code.
Note, there should be no space between the 'get' and 'cookie' The board wont let me post if there is no space in there.


I can't afford a good signature editor frown
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Thanks for that too.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Nps mate!


I can't afford a good signature editor frown
Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
Thanks dude, works great
Now all I have to do is figure out how to add the Hello, login boxes to all the pages

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Just put a "Hello" in front of the Username variable so it would display like this. "Hello, (username) [Logout]

Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
lol, thanks lord but I meant it is on 6.0 series.
In all the scripts..

Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hi Bassteq, as always a great hack

IT seems to be working great. Thanks man!

Regards,

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yeah it works fine on mine too.

Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
Thanks Bassteq, works for me three
I dunno why I don't upgrade..

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Upgrade to what version?

Joined: Aug 2000
Posts: 569
Member
Member
Offline
Joined: Aug 2000
Posts: 569
6.0 beta I think, my licence run out before 6.1 came out. I'll renew licence when I see something better than 5.47e come out.


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
WebGuy 2
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)