Jump to content

Adding Awards to the Pilots Profile


tgycgijoes

Recommended Posts

I have created awards for our va and have no problem adding them to the pilots and they display just fine when you click the pilot id. What I would like to have and don't know how to code this so please help if you can, what do I need to add where to get the awards to appear in a horizontal row under each pilot when anyone guest or not clicks the Pilots tab on the main page of the phpvms of our va site.

Link to comment
Share on other sites

tgycgijoes

You must enter the code were horizontal in

Pilot_Public_profile or Profile_main?

*Enter this code in your page profile_main.tpl

<?php

					 if(!$allawards) {

						 echo 'This pilot did not receive awards';

						 } else {

						 foreach($allawards as $award){
							 ?>
	 <img src="<?php echo $award->image; ?>" alt="<?php echo $award->descrip; ?>" />
	 <?php
								 }
							 }		

					 ?>

*Enter this code in your page Pilot_public_profile.tpl

<?php
	 if(!$allawards)
	 {
		 echo '<center><img src="http://www.voegolv.n...g_recusado.png" border="0" /><br><font face="Trebuchet MS" size="2">Piloto sem Awards.</font></center>';
	 }
	 else
	 {

		 /* To show the image:
			 <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />
		 */

	 ?>
 <?php foreach($allawards as $award){ ?>
 <img src="<?php echo $award->image?>" alt="<?php echo $award->name ?> - <?php echo $award->descrip?>" />

 <?php } ?>

 <?php
	 }
	 ?>

GLO0004.png

Website: www.voegolv.net

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

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