Colin Posted July 27, 2012 Report Share Posted July 27, 2012 I would like to remove the Pireps list from the pilot public profile, would someone be able to tell me how to get rid of it please, the reason for wanting to remove it is so I can skin it, otherwise when the PIREPS list is called on the pilot public profile it will create a duplicate skin. As always any help appreciated Quote Link to comment Share on other sites More sharing options...
RogerB Posted July 27, 2012 Report Share Posted July 27, 2012 actually very easy... Quote Link to comment Share on other sites More sharing options...
Colin Posted July 27, 2012 Author Report Share Posted July 27, 2012 Thanks for that wonderful chestnut of information Roger really helpful cheers ! Quote Link to comment Share on other sites More sharing options...
Sava Posted July 29, 2012 Report Share Posted July 29, 2012 Delete $this->render('pireps_viewall.tpl'); From core/modules/Profile/Profile.php It should be around line 94. Hope it helps Colin. Good luck! 1 Quote Link to comment Share on other sites More sharing options...
Strider Posted July 29, 2012 Report Share Posted July 29, 2012 Much easier then that, as that will be overwritten in an update, just remove the code in the tpl file. Quote Link to comment Share on other sites More sharing options...
Sava Posted July 29, 2012 Report Share Posted July 29, 2012 As I recall (without opening the installation itself) is that the pirep list is not inside the actual pilot_public_profile.tpl but rather the controller calls the 2 .tpl files. If he was to remove the code from the pirep_list.tpl file (if that is what you are saying?) it would also mean it cannot be used for other places on the site, which he may does not want. I believe deleting it from the controller is a better solution. Quote Link to comment Share on other sites More sharing options...
Strider Posted July 30, 2012 Report Share Posted July 30, 2012 Then you have the problem of updates, an update will over write any changes made to modules that come with phpvms. Why don't you just style the pireps list, instead of removing it? Saves on all the hassle of having to repeat the code removal from the module. Quote Link to comment Share on other sites More sharing options...
Colin Posted August 9, 2012 Author Report Share Posted August 9, 2012 Thanks guys I think I've got it sorted, although possibly if there is an update it may be overwritten, but we'll see thanks for you help much appreciated, Colin Quote Link to comment Share on other sites More sharing options...
Sava Posted August 9, 2012 Report Share Posted August 9, 2012 Welcome Quote Link to comment Share on other sites More sharing options...
RogerB Posted August 9, 2012 Report Share Posted August 9, 2012 Colin save it to your skin folder so it isn't over written. the system looks for it in your skins folder and the core/templates directory. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted August 9, 2012 Report Share Posted August 9, 2012 Ah Roger you beat me to it. That is exactly what I was going to say. I never save a custom file to the core folder. It automatically goes in my skin folder to make sure it is never over written. 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.