Allan Posted December 30, 2010 Report Share Posted December 30, 2010 Is there any way to change the the layout of the downloads page? Can some please drop a code for me thanks Regards, Allan Quote Link to comment Share on other sites More sharing options...
Jon Posted December 30, 2010 Report Share Posted December 30, 2010 You can edit download_list.tpl in your core/templates folder this is the exisitng code: <h1>Downloads</h1> <?php if(!$allcategories) { echo 'There are no downloads available!'; return; } foreach($allcategories as $category) { ?> <p><h2><strong><?php echo $category->name?></strong></h2></p> <ul> <?php # This loops through every download available in the category $alldownloads = DownloadData::GetDownloads($category->id); if(!$alldownloads) { echo 'There are no downloads under this category'; $alldownloads = array(); } foreach($alldownloads as $download) { ?> <li> <a href="<?php echo url('/downloads/dl/'.$download->id);?>"> <?php echo $download->name?></a><br /> <?php echo $download->description?><br /> <em>Downloaded <?php echo $download->hits?> times</em></li> <?php } ?><br /> </ul> <?php } ?> Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted December 31, 2010 Report Share Posted December 31, 2010 I actually liked the look of the downloads list in the admin section so I jacked that code and used it for my downloads list that the pilots see. I have to remove a bit of code such as editing the files and such, but it worked out good. So if you like the list in the admin section, copy the structure from there and use it. Quote Link to comment Share on other sites More sharing options...
Allan Posted December 31, 2010 Author Report Share Posted December 31, 2010 K thanks will give a try Regards, Allan Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted January 2, 2011 Report Share Posted January 2, 2011 Let us know if it works out for you. I had no problems with it at all. I had to rework a bit of css too. I failed to mention that to you. In the end, it looked much better then the default look. As I said, there are a few things you should omit from the code though such as editing files and all that. If you have any issues, I could probably pastebin my code for you. Well, Nabeel's code that I simply copied and pasted. Quote Link to comment Share on other sites More sharing options...
Allan Posted January 2, 2011 Author Report Share Posted January 2, 2011 Ya im not much a coder, Simpilot has done my site, I will have to contact him to help me I think. Thanks for the support Regards, Allan 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.