bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 1:08 pm on Oct 31 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
hey spiderz,
those
"cannot
modify header
information...
" errors
can likely be
resolved with
to ob_start();
put ob_start as
the very first
code of your
page, right
after <?
on the
registration,
i'll check it
out- sometimes
the code is
hard to read.
If you cant
read it, just
hit refresh
before you fill
in any fields
and another
code will be
generated.
Again, i'll
check it out
and good luck
|
Viewed: 22,094 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 1:48 pm on Oct 31 2005
|
|
|
Unregistered
|
Hi its me again
Spiterz,
Which page do i
ad ob_start();
to? Because in
footer.php its
already there.
|
Viewed: 22,090 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 1:53 pm on Oct 31 2005
|
|
|
Unregistered
|
I tried to
register again
3 times and i
copied the
exact code but
its still didnt
work.
|
Viewed: 22,087 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 2:03 pm on Oct 31 2005
|
|
|
Unregistered
|
Ive sorted my
login thing
now, thanks.
Still cant
register.
A question
though, how
would i make it
so that when
the user is
logged in the
login box
dissapears and
instead there
is links. And
then when they
log out the
links dissapear
and the login
box comes
back?
Also how would
i make it so
they have an
account setup
page? And there
is member list,
listing all of
the members and
when you click
there name it
shows there
profile, which
is changed in
account setup?
|
Viewed: 22,083 Times | |  |
Spiterz |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 12:45 pm on Nov 01 2005
|
|
|
Member #: 98 Rank: User - (8) Since: 11/01/05 Posts: 8
|
Yay, i managed
to apply. Im
having trouble
on the logout
system now in
the member
coding.
|
Viewed: 22,072 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 5:53 pm on Nov 01 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
I think i
answered this
questions
indirectly in
my last post in
the other
thread you
started. If you
setup your
scripts like
this tutorial
indicates, you
will have a
session
variable calle:
$_SESSION['log
ged_in']. set
this variable
to 1 when
logged in, and
0 when logged
out.
Then on your
sitebar, show
login box if
$_SESSION['log
ged_in'] = 0,
ELSE show
member links
(logout, view
profile, member
only page
links, etc).
|
Viewed: 22,063 Times | |  |
Spiterz |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 7:48 pm on Nov 01 2005
|
|
|
Member #: 98 Rank: User - (8) Since: 11/01/05 Posts: 8
|
Right, ill give
it a go... did
i have to
manually set
these values...
or were they
already set in
the coding?
Edited at 07:49:26 pm on 11/01/05
|
Viewed: 22,060 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 11:02 pm on Nov 01 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
if you look at
the scripts,
they should be
set already
through the
processes. in
the login
script, their
should be code
somewhere that
says:
$_SESSION['log
ged_in'] =
1;
in the logout
script, their
should be code
that says:
$_SESSION['log
ged_in'] =
0;
so from that
point, in your
sidebar or
something you
can display
things if
they're logged
in, and other
things if
they're not.
|
Viewed: 22,055 Times | |  |
Spiterz |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 12:57 pm on Nov 03 2005
|
|
|
Member #: 98 Rank: User - (8) Since: 11/01/05 Posts: 8
|
Now its juts
logging out
thats not
working...
|
Viewed: 22,045 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 10:46 pm on Nov 03 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
show me what
you're using
for logout code
- remember to
use the bbcode
code tags so it
dont flood the
forum.
|
Viewed: 22,035 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 6:33 pm on Nov 04 2005
|
|
|
Unregistered
|
i use exactly
what it says in
your
tutorial...
except for the
yoursite.com
bit
|
Viewed: 22,029 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 6:40 pm on Nov 04 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
so do I, and it
works
just double
check
everything...
ob_start(); is
the first line
before ANYTHING
in your
page_header
and again, this
is the code:
Code:
$_SESSION['log
ged_in'] =
0;
setcookie('lo
gin_cookie',
"",
time() - 60,
'/',
'.yoursite.com
');
session_destro
y();
header("
Location:
http://www.your
site.com"<
img
src=/forums/ima
ges/smilies/win
k.gif
border=0>;
first line sets
the session
variable
'logged_in'
to zero,
because when
they login, you
give it the
value of
one.
the 2nd line is
the setcookie
function, but
notice the time
is negative, so
in essence it
is deleting the
cookie set when
logged in.
finally, the
session_destroy
function is
ending their
logged in
session
Edited at 06:48:21 pm on 11/04/05
|
Viewed: 22,026 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 1:47 pm on Nov 11 2005
|
|
|
Unregistered
|
Hi, i've
pasted the code
into the
login.php
script and it
returned:
Parse error:
parse error in
/home/www/jussa
v0.freefronthos
t.com/try/login
.php on line
8
why? all my
scripts is
copied from the
page where all
codes are i one
place.. what
shold i do?!
|
Viewed: 21,978 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 4:40 pm on Nov 11 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
what is the
code for line
8?
|
Viewed: 21,970 Times | |  |
Guest |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 4:20 am on Nov 28 2005
|
|
|
Unregistered
|
I keep getting
:
Parse error:
parse error,
unexpected
'`',
expecting ')'
in register.php
on line 20.
The line is
copied here:
Code:
//array of
invalid
characters
$junk =
array('.' ,
',' , '/' ,
'\' , '`'
, ';' , '['
, ']' ,
'-',
'*',
'&',
'^', '%',
'$', '#',
'@', '!',
'~', '+',
'(', ')',
'|',
'{', '}',
'<',
'>',
'?', ':',
'"',
'=');
I have played
with it but no
luck in getting
it to
work...
Great tutorial
none the
less...
|
Viewed: 21,918 Times | |  |
bs0d |
Subject: "re: I cant
Register and
Member Syst..."
Posted: @ 4:27 pm on Dec 01 2005
|
|
|
 Member #: 1 Rank: Admin. - (1,505) Since: 02/06/05 Posts: 600 From: USA
|
|
Viewed: 21,905 Times | |  |
Viewing Page: 1 of 1 |