Jump to content

Custom data fields


savagegrave

Recommended Posts

Ok,

So I think I'm getting somewhere with 2 big books on sql and php, utill ive spent the entire night trying to place the IVAO and VATSIM callsigns into the private profile page of the website.

THe code I'm using is the one laid out within the public profile tables, so i know there is a logical way to display it.

The code I'm using is:

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign')

However,

It doesnt work in the profile_main.tpl files and maybe this is a reason it wasnt there to start with?

Please could someone steer me in the correct direction?

Not to worry I fixed it by changing $pilot to $userinfo... Must be tired lol!

Link to comment
Share on other sites

Lol

I copied the code from the public profile page, took me ages of reading through all the sql you coded.. (Learnt alot in doing so tho).

Eventually the eurka moment happend and changed the variable.

:)

Thanks for providing such an indepth and advanced system!

I think you dont realise how much code goes into it untill you start looking at it

Cheers

Steve =)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...