Author |
Topic |
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 21 October 2006 : 20:34:25
|
hallo! I have a dilemma was wondering if you could help with.
I have two parts to me site, the main site, and the forum part.
Now, here is what I am trying to achieve:
1. Login to forum via mainsite (this has been achieved already).
2. Now once logged in, I would like a link from the mainsite to the users forum profile page. obviously this means a link to the following page:
forum/pop_profile.asp?mode=display&id=(number of logged in user)
is there anyway I can call up the number of the logged in user and put into a link like:
<a href="forum/pop_profile.asp?mode=display&id=(call logged in user ID)">
or is there a simple way of doing this.
so far all i have is an
<!--#INCLUDE FILE="Forum/inc_func_common.asp" --> in the main site header (as well as the bits that allow you to login simultaneously with ony login form)
any help from some clever people coz i clearly dont know what i doing lol
thannkkyoou!! |
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 21 October 2006 : 21:45:15
|
in other words, how do i link to a specific users profile page from an outside (non forum page) assuming the user has already logged in? :) thanks all!! |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 22 October 2006 : 04:39:48
|
How are you doing the login? could you post an example of the code you are using |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 22 October 2006 : 06:15:30
|
Wouldn´t this work; <a href="forum/pop_profile.asp?mode=display&id=memberID"> ?
|
rf/www.avgifter.com |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 22 October 2006 : 06:19:08
|
not from a non forum page no , since a non forum page wouldn't know about memberID, that's why I need to know how ScrubUp is doing the login. |
|
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 22 October 2006 : 07:35:21
|
hallo.
the login process is within the header.asp file of my website. a third party did the code and I am not too hot on coding but can struggle by with the basics after hours of trial and error lol.
i have created a .txt file to view:
http://www.scrubbingup.com/header.txt
I am making quite an intricate community site I hope and looking to really utilise snitz as much as i can :) |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 22 October 2006 : 08:05:57
|
ok, you probably want to do <a href='forum/pop_profile.asp?mode=display&id=Session("UserId")'> |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 22 October 2006 : 08:13:42
|
quote: Originally posted by HuwR
not from a non forum page no , since a non forum page wouldn't know about memberID, that's why I need to know how ScrubUp is doing the login.
OK, but by including config.asp, inc_sha256.asp and inc_header_short.asp in own non forum pages I get access to memberId (I use universal login mod). I have not noticed any shortcomings by doing it that way - are there any? |
rf/www.avgifter.com |
|
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 22 October 2006 : 08:46:37
|
hi, thanks, unfortunately thats not working. however i think my stupid custom universal login thing isnt working so i suspect thats the problem.
how difficult is it to install the universal login, reading round the subject it seems quite a task - i dont wanna ruin my custom login if it is only minor tweak that is needed.
|
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 22 October 2006 : 09:03:39
|
Installing universal login was very easy as I remember it ( I also read about all issues with the mod but everything worked fine at once). However I would wait for Huw or another Snitzer to have one more look at your header.txt before doing a new login routine. |
rf/www.avgifter.com |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 22 October 2006 : 10:34:31
|
you could try session("Customerid") instead, but without seeing the rest of you code I can't really say |
|
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 22 October 2006 : 11:55:13
|
nope that didnt work either unfortunately
what other code did you need to see? maybe the entire login code is duff :( |
|
|
ScrubUp
Starting Member
United Kingdom
45 Posts |
Posted - 22 October 2006 : 19:19:15
|
ok lets just presume there is no automatic login at all and start from scratch. how would you go about linking to someones profile from an outside page (assuming they had already logged into the forum) - does that make sense? |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 23 October 2006 : 04:25:39
|
You'd need to include inc_func_common.asp, dim a variable called MemberID and then call the chkUser function.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
|
Topic |
|