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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 how can i programing a private page ???
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sbai
New Member

Morocco
71 Posts

Posted - 04 June 2010 :  19:22:00  Show Profile  Visit sbai's Homepage  Reply with Quote
hello every one !

I'd like to open a page for a member whose I select his number from the adminstration !


so I do this in config.asp :
Dim strIdMember
strIdMember = Application(strCookieURL & "STRIDMEMBER")


and i do this in admin_config_features.asp :

<td class=""h"" align=""center""><b>Enter The member id</b></td>" & vbNewLine & _
" <td class=""f2ts"">" & vbNewLine & _
" <input type=""text"" name=""strIdMember"" size=""45"" maxLength=""50"" value=""" & chkExistElse(strIdMember,"0") & """>" & vbNewLine & _
" <a href=""pop_config_help.asp?mode=features"">" & getCurrentIcon(strIconSmileQuestion,"","") & "</a></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr valign=""middle"">" & vbNewLine & _


now i want the condition wich allow the member id which i enter it to acces a page !!!!

It's like this :

if MemberID = chkString(strIdMember, "0") then

please help me !!

Edited by - sbai on 05 June 2010 19:17:41

AnonJr
Moderator

United States
5768 Posts

Posted - 04 June 2010 :  22:59:51  Show Profile  Visit AnonJr's Homepage  Reply with Quote
First, you're not likely to get too many people to see what they can do to help with a subject of "help *plz*" - we kinda figured you were looking for help when you posted to this forum, so maybe use something a little more descriptive.

Which leads to the second thing, I have no idea what you're trying to do... I know its hard when English isn't your first language, but could you try to give us a little more detail on what you are trying to do?
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 05 June 2010 :  09:14:56  Show Profile  Reply with Quote
Did you add STRMEMBERID to the CONFIG_NEW table in the Database?

If you're not going to be changing the id number a lot, you could hard code it in config.asp like this:
Dim strMemberID: strMemberID = Member ID here

    _-/Cripto9t\-_

Edited by - cripto9t on 05 June 2010 09:16:00
Go to Top of Page

sbai
New Member

Morocco
71 Posts

Posted - 05 June 2010 :  19:15:34  Show Profile  Visit sbai's Homepage  Reply with Quote
quote:
Originally posted by AnonJr

First, you're not likely to get too many people to see what they can do to help with a subject of "help *plz*" - we kinda figured you were looking for help when you posted to this forum, so maybe use something a little more descriptive.

Which leads to the second thing, I have no idea what you're trying to do... I know its hard when English isn't your first language, but could you try to give us a little more detail on what you are trying to do?



I'm trying to programming a page that no body can acces it , except the member who i set his ID in the adminstration
Go to Top of Page

sbai
New Member

Morocco
71 Posts

Posted - 05 June 2010 :  19:19:22  Show Profile  Visit sbai's Homepage  Reply with Quote
I want to programming a private page which controlled from the adminstration !!
Go to Top of Page

leatherlips
Senior Member

USA
1838 Posts

Posted - 05 June 2010 :  20:13:01  Show Profile  Visit leatherlips's Homepage  Reply with Quote
You can set the forum to Allowed Member List (Hidden) and then select the members you want to access it.

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 06 June 2010 :  10:48:26  Show Profile  Reply with Quote
Try again

if MemberID <> cLng(strIdMember) then Response.Redirect("default.asp")

    _-/Cripto9t\-_
Go to Top of Page

sbai
New Member

Morocco
71 Posts

Posted - 06 June 2010 :  16:33:45  Show Profile  Visit sbai's Homepage  Reply with Quote
quote:
Originally posted by cripto9t

Try again

if MemberID <> cLng(strIdMember) then Response.Redirect("default.asp")




thank you , I will try to do this condition !

Edited by - sbai on 06 June 2010 16:34:08
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07