Kieran Posted February 15, 2010 Report Share Posted February 15, 2010 Hey, If you would like an awards table if your site, use this code. The table is totally plain, but fully customisable using your standard table css/html. profile_mail.tpl <p> <strong>My Awards</strong><br /> <?php if(!$allawards) { echo 'No awards yet'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <ul> <table width="790" border="0" cellspacing="5" cellpadding="5"> <?php foreach($allawards as $award){ ?> <tr> <td width="25%"><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> <td width="25%"><center><?php echo $award->name ?></center></td> <td width="50%"><center><?php echo $award->descrip ?></center></td> </tr> <?php } ?> </table> </ul> <?php } ?> </p> pilots_public_profile.tpl <p> <strong><?php echo $userinfo->firstname; ?>'s Awards</strong><br /> <?php if(!$allawards) { echo $userinfo->firstname . 'has no awards yet.'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <ul> <table width="790" border="0" cellspacing="5" cellpadding="5"> <?php foreach($allawards as $award){ ?> <tr> <td width="25%"><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> <td width="25%"><center><?php echo $award->name ?></center></td> <td width="50%"><center><?php echo $award->descrip ?></center></td> </tr> <?php } ?> </table> </ul> <?php } ?> </p> 2 Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted February 15, 2010 Moderators Report Share Posted February 15, 2010 Can you post a picture of it please? I just want to see what is like before i put it on my site. Thank You Quote Link to comment Share on other sites More sharing options...
Kieran Posted February 15, 2010 Author Report Share Posted February 15, 2010 No problem, Coming right up. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 26, 2010 Moderators Report Share Posted February 26, 2010 Nice 1 Just added to mine. Quote Link to comment Share on other sites More sharing options...
Kieran Posted February 26, 2010 Author Report Share Posted February 26, 2010 Glad you like it I recommend some CSS Styles as this one is bland. Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted May 26, 2010 Moderators Report Share Posted May 26, 2010 hello!where i can find this 2 folders?? profile_mail.tpl and pilots_public_profile.tpl Quote Link to comment Share on other sites More sharing options...
TennShadow Posted May 26, 2010 Report Share Posted May 26, 2010 hello!where i can find this 2 folders?? profile_mail.tpl and pilots_public_profile.tpl They are in Core/Templates. But you should copy those files to lib/skin/YOUR_SKIN_NAME to edit them. Otherwise when you do an update they will be overwritten. Quote Link to comment Share on other sites More sharing options...
dale0404 Posted May 27, 2010 Report Share Posted May 27, 2010 Cool, works like a dream! Quote Link to comment Share on other sites More sharing options...
AUZ Posted June 3, 2010 Report Share Posted June 3, 2010 Thanks Very Much Quote Link to comment Share on other sites More sharing options...
Matthew Talbot Posted June 4, 2010 Report Share Posted June 4, 2010 Nice one Quote Link to comment Share on other sites More sharing options...
BastiDE Posted August 20, 2010 Report Share Posted August 20, 2010 wonderful, very easy and wunderful. I like it Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted September 10, 2010 Report Share Posted September 10, 2010 very usefull thank you so much Best Regards Thomas Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 23, 2011 Report Share Posted March 23, 2011 I've done something terribly wrong here. I am trying to set this in a table, but can't get it to lineup correctly. Can someone please help with this table? <table width="100%" border="1" bgcolor="#042233" id="tabledlist" class="tablesorter"> <thead> <tr> <th width="25%" border="0">Award</th> <th width="25%" border="0">Award Name</th> <th width="50%" border="0">Description</th> </tr> </thead> <?php if(!$allawards) { echo $userinfo->firstname . 'has no awards yet.'; } else { /* To show the image: <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /> */ ?> <ul> <table width="790" bgcolor="#042233" border="1" cellspacing="5" cellpadding="5"> <?php foreach($allawards as $award){ ?> <tr> <td width="25%"><center><img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></center></td> <td width="25%"><center><?php echo $award->name ?></center></td> <td width="50%"><center><?php echo $award->descrip ?></center></td> </tr> <?php } ?> </table> </ul> <?php } ?> I know how to do tables for everything else, but this one is being stubborn. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.