Jump to content

Recommended Posts

Posted

That's not all that hard either. Check what Nabeel already added into the template for the pilot list:

/* 
	To include a custom field, use the following example:

	<td>
		<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>
	</td>

	For instance, if you added a field called "IVAO Callsign":

		echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');		
 */

You can find this in the your core/templates/pilots_list.tpl.

Posted

I have done this and have abit of problem, the vatsim id is on the table. Concluding from this the actual I.D isn't showing, even though it has been inserted on the profile of every pilot.

  • Administrators
Posted

Hey,

Can you try this real quick, where you put the GetFieldValue();, immediately after, if you put DB::debug(), what's the result?:

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); DB::debug() ?>

Can you paste it in?

Thanks!

Posted

I get this reply:

ezSQL (v2.03) Debug..

Query [7] -- [sELECT v.value FROM phpvms_customfields f, phpvms_fieldvalues v WHERE f.fieldid=v.fieldid AND f.title='VATSIM ID' AND v.pilotid=4]

Query Result..

    (row)	string 0
    value
    No Results

  • Administrators
Posted

Then you would do:

<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM.ID'); DB::debug() ?>

That field name must be exactly as you entered it

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...