| Author |
Topic Search Topic Options
|
ramone_johnny
Groupie
Joined: 13 May 2005
Status: Offline
Points: 87
|
Post Options
Thanks(0)
Quote Reply
Topic: What section of code validates logins? Posted: 16 May 2005 at 4:52am |
Im customizing the webwiz forum and would like to create an include file that contains only the code required that checks to see whether the user is logged in on other pages within my site. (Outside that of the forum)
Im currently using the webwiz login page.
Anyone?
John
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2005 at 4:58am |
|
The code that sees if a user is logged in is within the common.asp file
|
|
|
 |
ramone_johnny
Groupie
Joined: 13 May 2005
Status: Offline
Points: 87
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2005 at 6:44pm |
Umm, could you be a little more specific?
John
|
 |
ramone_johnny
Groupie
Joined: 13 May 2005
Status: Offline
Points: 87
|
Post Options
Thanks(0)
Quote Reply
Posted: 16 May 2005 at 7:15pm |
Ive tried adding the include file 'common.asp' but get this odd error?
Microsoft JET Database Engine error '80004005'
Could not use ''; file already in use.
/longlostfriends/forum/common.asp, line 260
Any suggestions?
John
|
 |
ramone_johnny
Groupie
Joined: 13 May 2005
Status: Offline
Points: 87
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2005 at 3:57am |
Im really beginning to become dissapointed with the level of support on this site.
Such a shame really as the board is quite impressive.
Again, what is the absolute minimum code required on a blank asp page to validate as to whether or not the user is logged in?
Thank you,
John
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2005 at 4:52am |
|
Sorry you feel that way, but I do have to work, as well as sleep at
some time and your questions came in after 11pm UK time last night when
I would have been a sleep.
If you have a look in the mods and add-ons forum other users have already written mods that do what you require.
The common.asp file does allot, not just the login part for the forum,
so just trying to place that file into your own will not work.
You need to look through fro the part that checks the user is logged
in. The code is commented on every line to tell you what it does to
make this type of thing easier.
The basic princiable of the login system is that in the database there
is a field call 'user_code' in the table tblAuthor. This user code is
also stored in a cookie on the users machine.
To check the user is logged in and who they are, the cookie is read in
from the users machine and then is used to get the users details from
the database by matching up the cookie with the user_code field.
|
|
|
 |
sfd19
Senior Member
Joined: 20 December 2004
Status: Offline
Points: 263
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2005 at 2:41pm |
ramone_johnny wrote:
Im really beginning to become dissapointed with the level of support on this site.
Such a shame really as the board is quite impressive.
|
100% disagreed. Borg as well as the moderators and members here are providing outstanding support and help. Especially their patience is stunning.
Also asking for help for a mod does not qualify as a common support
request for WWF and should have been posted in Mod forum. Borg's time
is much better spent on developing version 8 instead of providing help
for individual modifications that are of no use for anybody else.
Just my 2 cents.
|
|
|
 |
ramone_johnny
Groupie
Joined: 13 May 2005
Status: Offline
Points: 87
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 May 2005 at 6:47pm |
Fair enough. Perhaps I should apologise, as I did respond on that after having bashed away on this keyboard here trying to get it working for hours on end without any luck.
Ill take a look in the mods and add ons section....
Thanks.
|
 |