In the server should be a class that handles object clicks. In that class you have to add the object id of the portal and make it so it adds xp to a skill.
If you look at one of your skills server sided you can find out how giving xp works, if you can't figure it out then try to find some code, so we can figure it out.