• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 824
  • Last Modified:

linking photo tagging script to database

I am using the image tagging script available at http://www.fotonotes.net/#installations

it stores the image tagging data in a xml file. I have successfully implemented the image tagging functionility. But I want to link it to my database so that it works like orkut or facebook. ie, when I tag an image, I want that when a user clicks on that tag, he should be taken to that users profile.

I'm not sure if I have explained it properly. But if you look at orkut image tagging, you will understand what I mean.

Explaination:

a user uploads a snap that has two friends. (both the friends are users of my website: user A and User B). I tag my friends in that image with their names, ie User A and User B. Currently, when any user moves his mouse pointer over that image, it displays their names properly. But what I want is, if any user clicks on the User A tag, he should be taken to his profile page on my website.


Please guide. Also please let me know if you need any further details.
0
technortus
Asked:
technortus
1 Solution
 
Tyler LaczkoCommented:
on the image place an onclick='document.location=\"linktoprofile\"'

based on your site structure your links will be dependant on some variable that you can link to eg

domain.com/profile.php?userid=a
domain.com/profile.php?userid=b
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now