php forum
php mysql forum
php mysql smarty
 
Page 2 of 2 < 1 2
Topic Options
#53383 - 07/25/02 05:37 AM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Great option guys!!

I use PHP and I used it keeps telling me "Sorry, you're not logged in."

am i missing someting?

http://www.latinfreestyle.com/test.php

Top
#53384 - 07/25/02 06:39 AM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
Did you change $ubber2452191_1937 for your own cookie number?

You also need to make sure you replace the dot with the underscore.
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53385 - 07/25/02 06:58 AM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Thanks for the quick reply Paulus,

I changed the dot to the underscore

My own cookie number? , how can I find out what my cookie number is

Top
#53386 - 07/25/02 07:33 AM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Never mind I wasn't thinking I got it tipsy

Top
#53387 - 07/25/02 08:51 AM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Now that it is working how to implement this ?

I saw on Paulus his site (wich is awsome btw) that he made a pop up to log in when the user wants to view a member erea.

Top
#53388 - 07/25/02 09:31 AM Re: Log-in Sequence for Other Areas of a Site
yosaid Offline
User

Registered: 07/13/01
Posts: 34
Loc: minneapolis
Paulus, you are amazing. Great thinking. Thanks so much for the tip.

your site if off the hook. Good work.

I saw the pop-up login window for the pictures area, how did you integrate that with the FORUM login ?

Thanks

Top
#53389 - 07/25/02 01:16 PM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
On my previous design I blocked access to pages so I used to check for the login, if not logged in use the PHP header function to redirect to "login.php?referred=pictures.php"

The login.php script would then accept the username/password, test them against the UBB member files and if correct, set the UBB cookies and then use the $referred value to redirect the user back to the page they came from. The login.php script still has code in to set the "Ell" cookie but this was used by the Who's Online Hack I had on v6.05. You don't need to set this cookie for v6.3.

With the site redesign I chose not to block pages, just particular features so there is now code in the pages that presents an invitation to login if the cookie isn't present. This popups the login.php page, if all is correct it sets the cookie and reloads the opening page. All the login stages are reported into an access log. It was useful for debugging but it still runs today but it means I can see how many people login outside the forums.

Here's login.zip which contains login.php and common.php that it includes which has got a few site-wide variables and functions defined in it. Login.php is identical to the one on the site, common.php is just a cut down version.
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53390 - 07/25/02 02:43 PM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Thanks Paulus!!

I got it running, it checks the member profile and log in, but somhow it don't set the cookie.
Test page

any idea what could be wrong?

Top
#53391 - 07/25/02 03:55 PM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
Did you change $cookiename for your cookie number, with the dot in it this time?

i.e. $cookiename = "2452191.1937";
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53392 - 07/25/02 04:01 PM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
haha yes this time I did that, somehow it do not set the cookies hmm

Top
#53393 - 07/25/02 04:09 PM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Never mind Paulus, I found it, forgot to change it to my url....it is always those easy things I over see tipsy

Thanks for everything, now I am gonna see how I am going to use it smile

Maurice

Top
#53394 - 07/25/02 04:16 PM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
Did you change the www.teamnicole.com to your own domain? Does it try to set the cookie? If you change your security settings on IE you can get it to tell you when a Cookie is trying to be placed on your PC.

You can also use things like Cookie Pal to browse your cookies and see what's happening. Does the access log reveal anything interesting? Maybe your absolute path to the UBB member file isn't set correctly, you can check this from within UBB. There are lots of things that can go wrong so you may want to add a few echo("Stage 1"); types of commands into the script to see where it gets to.
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53395 - 07/25/02 04:17 PM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
Ah I see, got there in the end. smile
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53396 - 07/25/02 04:27 PM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
LoL yeah smile

One more thing do.

I never worked with cookies and all before so this is kinda new.

When the user log in how can I direct them to the private pages ?

When the user go to a member-only page what do I have to put in the page so that they only see the "You have to log in" text/page and not the whole contend

Hope that made any sense...lol

Top
#53397 - 07/25/02 04:43 PM Re: Log-in Sequence for Other Areas of a Site
Paulus Magnus Offline
Content Kidman

Registered: 10/15/01
Posts: 80
I've sent you the 3 older files I used by email. This may be more appropriate if you want to block complete pages rather than parts of them or extra features on them.
_________________________
» Team Nicole | UBB v6.3.0 «

Top
#53398 - 07/25/02 04:50 PM Re: Log-in Sequence for Other Areas of a Site
maurice Offline
Member

Registered: 02/15/01
Posts: 230
Darn..I see I got an old mail addy in my profile.

Can you send it to molatinfreestyle@zonnet.nl please.

Thanks 4 your time thumbsup

Top
#53399 - 07/26/02 02:23 PM Re: Log-in Sequence for Other Areas of a Site
yosaid Offline
User

Registered: 07/13/01
Posts: 34
Loc: minneapolis
paulaus, can you send that file to me too. Thanks.

saidawil@hotmail.com

Top
#53400 - 07/28/02 06:57 PM Re: Log-in Sequence for Other Areas of a Site
rabriar Offline
Member

Registered: 12/17/01
Posts: 39
Same here Paulus.
I think I might be able to use it big time, if I can get it to work on my site :-(
rabriar@aol.com.
Thank you
rabriar

Top
#53401 - 07/29/02 07:32 PM Re: Log-in Sequence for Other Areas of a Site
yosaid Offline
User

Registered: 07/13/01
Posts: 34
Loc: minneapolis
Thank you very much Paulus. Truely appreciate it.

Thanks

Top
Page 2 of 2 < 1 2


Moderator:  Gizmo 
Who's Online
1 registered (Deb), 28 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
How to hide sub forums from summary page
by Ruben Rocha
Today at 02:58 PM
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks