Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - My favorites link
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

My favorites link

 Post Reply Post Reply Page  <12
Author
urko View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2004
Location: Slovenia
Status: Offline
Points: 160
Post Options Post Options   Thanks (0) Thanks(0)   Quote urko Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2006 at 11:46am
Yes Im using the common.asp file in myquicklink.asp file.
I just dont exactly know how to write the code.

this is part of the code that I use so when users are logged this link shows up as Iframe in heaader file.

<% If lngLoggedInUserID <> 0 AND lngLoggedInUserID <> 2 Then
Response.write("<font color=""#990000""><b>»</b></span>&nbsp;<a href=""/mysite/_myquicklink.asp?Author_ID=" & lngLoggedInUserID &""" target=""_top"">My QuickLinks</a><br>")
end if  %>


This is the code that I have so that guests cant view the quicklink:

<% If intGroupID = 2 then

      Response.Redirect "/sks/dostop1.asp?MP=True"

End If %>


Now I just need this code so that users wont be able to look other users links.


Urko
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2006 at 12:09pm
yeah what i ment was

in the "_myquicklinks.asp" you have

memberid = Request.QueryString("author_id")


(note, only the red part is the part am talkin about, as i dont know wot you have for memberid)

all you do is change it so that it looks like:

memberid = LngLoggedInUserID


this way, it stops taking it from the Querystring (address bar) and is just the logged in users id


S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.