Jump to content

[SOLVED]Pilot Public Profile remove PIREPS List


Recommended Posts

Posted

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 :wub:

Posted

Delete

$this->render('pireps_viewall.tpl');

From core/modules/Profile/Profile.php

It should be around line 94. :)

Hope it helps Colin.

Good luck!

  • Thanks 1
Posted

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

Posted

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.

  • 2 weeks later...
Posted

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

Posted

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.

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