Print Page | Close Window

My favorites link

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20289
Printed Date: 29 March 2026 at 12:41pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: My favorites link
Posted By: urko
Subject: My favorites link
Date Posted: 12 June 2006 at 8:47pm
I have saved and renamed 3 pages:
- pm_buddy_list.asp
- pm_add_buddy.asp
- pm_delete_budy.asp
to create  page to save my favorites links.

When you're reading news you have a link to save the link to my favorites link.

I have also made a new table in db ( tblMyLinks), change the recordset in new created pages.

Now...when I click  add to my favorite link from news page it goes to new page MyLinks.asp, it show the title name in textfield where it usually shows username.
However, when I want to submit it to my favorite links, it gives my javascript error:

My link can not be found in DB. Check you havent misspelled member username.

Now this where my knowledge stops Cry...If any of you could point me in right direction I would very much appreicated.

Thanks,Big smile





-------------
Urko



Replies:
Posted By: Ali Bilgrami
Date Posted: 13 June 2006 at 4:43pm
well if its a java script error u might want to look at any java scripts runnin on the pages


Posted By: urko
Date Posted: 13 June 2006 at 4:45pm
it is. but i think i must change something inside the code to enter the link.

I have delete the javascript and still I couldnt submit the link...empty results.



-------------
Urko


Posted By: Ali Bilgrami
Date Posted: 14 June 2006 at 7:51am
with out having a look at the code its rather difficult to sort what is the problem...


Posted By: Scotty32
Date Posted: 14 June 2006 at 10:08am
it sounds like, since your using the Buddy pages that the page is checking the "link" against the usernames in the database, and i doubt any member has the username of a link your entering, so its coming back with that message.


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: urko
Date Posted: 14 June 2006 at 10:16am
exactly.. Is there a way to do it so that you could add to my favorite links?




-------------
Urko


Posted By: urko
Date Posted: 15 June 2006 at 9:46am
I have made my quick list Smile, but I noticed I need to wirte some code so that users will not be able to read other users quicklist.

Example:

If you're logged in forum you can go to your quick list by clicking Myquicklist.

But I noticed that if you change for example in the toolbar where it shows:

http://mysite.com/myquicklist.asp?Author_ID=12
to 2
you can see quicklist from the user that has ID 2.

What should i write so that if user changes the ID in toolbar it will point him to a certain page ( like insufficient_permission.asp )??





-------------
Urko


Posted By: Scotty32
Date Posted: 15 June 2006 at 10:39am
well instead of getting the users ID from the querystring, (am guessing your using the WWF common.asp file) just get the users id using

lngLoggedinUserID

that'll be the current logged in users ID


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: urko
Date 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


Posted By: Scotty32
Date 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 - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net