Topic: Adding markup to <head> for one PunBB page

I know that I can add markup to the <head> using a template, or by editing header.php.  But how would I add markup that appears in the <head>, only when a certain page is being used (for me, it's profile_fields.php from the Easy Profile Fields mod, but I guess this applies to any page)?

Sorry for asking such a n00bish question.

Thanks in advance.

Re: Adding markup to <head> for one PunBB page

The simplest way I can think of... create a file like this under whatever name you want and save it to include/user:

<?php
if (basename($_SERVER['PHP_SELF']) == 'profile_fields.php') {
?>
PLACE MARKUP HERE
<?php
}
?>

then include it between the <head> tags in main.tpl using <pun_include> as described in the docs.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: Adding markup to <head> for one PunBB page

That works, thank you.