Jump to content

Recommended Posts

  • Moderators
Posted

Why couldn't you done it by custom profile feilds, you can add thoes feilds from the admin?

You would need to change three files mostly. The Registration.php file, registration_mainform.tpl and the RegistrationData.class.php. It looks alot of work, and what if you updated your phpVMS and it will stop working because you edited the core files and it gets overwritten in updates.

  • Moderators
Posted

Yep. Let's say you had the field titled to VATSIM_ID and this would be the code.

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

  • 3 weeks later...
  • 1 month later...
  • 6 months later...
Posted

Guys, I need your help. I'd like to make the ID clickable, to send me to the pilot profile, but I donno what to insert after the DOT to replace XXX.

<a href="<?php echo('http://www.vataware.com/pilot.cfm?cid='.XXX);?>">
<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></a>

Now the VATSIM ID is showed, but the URL is not working completly.

Any help is appreciated.

Posted

It's simple.

<a href="http://www.vataware.com/pilot.cfm?cid=<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>"><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID');?></a>

  • Like 1

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