Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 tricky question regarding linking from outside
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 21 October 2006 :  20:34:25  Show Profile  Visit ScrubUp's Homepage
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  Show Profile  Visit ScrubUp's Homepage
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!!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 October 2006 :  04:39:48  Show Profile  Visit HuwR's Homepage
How are you doing the login? could you post an example of the code you are using
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 22 October 2006 :  06:15:30  Show Profile  Visit Roger Fredriksson's Homepage
Wouldn´t this work; <a href="forum/pop_profile.asp?mode=display&id=memberID"> ?

rf/www.avgifter.com
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 October 2006 :  06:19:08  Show Profile  Visit HuwR's Homepage
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.
Go to Top of Page

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 22 October 2006 :  07:35:21  Show Profile  Visit ScrubUp's Homepage
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 :)
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 October 2006 :  08:05:57  Show Profile  Visit HuwR's Homepage
ok, you probably want to do <a href='forum/pop_profile.asp?mode=display&id=Session("UserId")'>
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 22 October 2006 :  08:13:42  Show Profile  Visit Roger Fredriksson's Homepage
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
Go to Top of Page

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 22 October 2006 :  08:46:37  Show Profile  Visit ScrubUp's Homepage
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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 22 October 2006 :  09:03:39  Show Profile  Visit Roger Fredriksson's Homepage
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
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 22 October 2006 :  10:34:31  Show Profile  Visit HuwR's Homepage
you could try session("Customerid") instead, but without seeing the rest of you code I can't really say
Go to Top of Page

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 22 October 2006 :  11:55:13  Show Profile  Visit ScrubUp's Homepage
nope that didnt work either unfortunately

what other code did you need to see? maybe the entire login code is duff :(
Go to Top of Page

ScrubUp
Starting Member

United Kingdom
45 Posts

Posted - 22 October 2006 :  19:19:15  Show Profile  Visit ScrubUp's Homepage
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?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 October 2006 :  04:25:39  Show Profile
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.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07