Customizing SMF > Graphics and Templates

How to delete index.template parts from profile.template?

(1/1)

ContLock:
How to delete index.template parts from profile.template?

I want to delete and put my custom header for profile and not use some elements frome index.template.

Gazmanafc:
Code in index.template.php loads regardless of where the user is located on the forum, so to block it from the profile page would require restricting it so that it doesn't appear with an if statement in that file.

Something like this should cover what you're after but I've not tested it or anything.


--- Code: ---if($_REQUEST['action'] != 'profile')
{
  // Code that does not appear on profile pages here
}

--- End code ---

Navigation

[0] Message Index

Go to full version