Jump to content

edmundk

Members
  • Posts

    407
  • Joined

  • Last visited

Posts posted by edmundk

  1. ok sorry for the wait

    check in your profile_main.tpl

    search this

    <strong>My Awards</strong><br />
    		<?php
    		if(!$allawards)
    		{
    			echo 'No awards yet';
    		}
    		else
    		{
    
    		?>	

    and after delete all and add this:

    <?php 
    
    $break = 5;
    $i=0;
    
    foreach($allawards as $award){ ?>
    
    
    <img src="<?php echo $award->image?>" title="<?php echo $award->descrip?>" />
    
    <?php 
    
    {
       $i++;
    
       if($i%$break == 0)
           echo "<br />";
    
    
    }
    
    ?>

    my full code is:

    <p>
    
    		<strong>My Awards</strong><br />
    		<?php
    		if(!$allawards)
    		{
    			echo 'No awards yet';
    		}
    		else
    		{
    
    		?>	
    
    
    
    <?php 
    
    $break = 5;
    $i=0;
    
    foreach($allawards as $award){ ?>
    
    <img src="<?php echo $award->image?>" title="<?php echo $award->descrip?>" />
    
    <?php 
    
    {
       $i++;
    
       if($i%$break == 0)
           echo "<br />";
    
    
    }
    
    ?>
    			<?php } ?>
    
    
    
    		<?php
    		}
    		?>
    	</p>
    
    </td>
    
    </tr>
    </table>
    </div>
    </div>

    Nvm! Works now! Thanks for the code +1 :)

  2. sorry, I didn't understand

    This is the link:

    www.yoursite.com/index.php/pilotshop/pilotHomePage

    in my pilot center (profile_main.tpl) I added this:

    <li><a href="<?php echo url('/PilotShop/pilotHomePage'); ?>">View My purchases</a></li>

    OMG!! THANKS!! Your a life saver!

    • Like 1
  3. I have the Aword Images Showing in the pilot Center but how do i make so only a certain amount of awords are shown per line? I tis starting to look really bad when a pilot has too many awords. I am using this code..

    <ul style="margin-top: 0px; margin-left: 2px;">

    <?php foreach($allawards as $award){ ?>

    <img src="<?php echo ($award->image);?>" alt="<?php echo ($award->descrip);?>" />

    <?php } ?>

    </ul>

    <?php } ?>

    Thanks!

  4. Customizing a page to your liking is not a hard task to do on your own. I have customized my whole site to my liking; including the profile_main.tpl file. 99% of all the pages in your site involves tables, which are easy to do in HTML. I cannot (or will not) do it for you, but can give you a few helpful hints and ideas so you can learn to do it yourself. In the past, I have helped PIAS Virtual NUMEROUS times, and every few days they change the work that was done, so I refuse to do anything for you for free.

    Yep... I did mine in a couple of days... And i could say it looks preatty good :)

×
×
  • Create New...