Insert Code In The <head> For A Specific Page »  Show posts from    to     

Icy Phoenix


Old Support Topics - Insert Code In The <head> For A Specific Page



mimoson999 [ Wed 12 Sep, 2007 20:50 ]
Post subject: Insert Code In The <head> For A Specific Page
Hello, I have to insert some tags in the head section of a specific page (viewtopic.php)

the tags are

<meta http-equiv="imagetoolbar" content="no">

for the disabling of the internet exploder image toolbar

and some external js and ccs sheets

it's this possible or I have to change overall_header.tpl??

thanks


novice programmer [ Wed 12 Sep, 2007 23:55 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
mimoson999 wrote: [View Post]
Hello, I have to insert some tags in the head section of a specific page (viewtopic.php)

the tags are

<meta http-equiv="imagetoolbar" content="no">

for the disabling of the internet exploder image toolbar

and some external js and ccs sheets

it's this possible or I have to change overall_header.tpl??

thanks


only use the fuction header() in this way:
Code: [Hide]
  1. header('meta http-equiv="imageroolbar" content="no"');
  2.  

just set the command without the <>


mimoson999 [ Sat 15 Sep, 2007 17:08 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
but this code is for sending HTTP headers, I want to inser code in the <head>...</head> section of the page


novice programmer [ Sat 15 Sep, 2007 18:07 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
mimoson999 wrote: [View Post]
but this code is for sending HTTP headers, I want to inser code in the <head>...</head> section of the page


I think the HTTP headers are between the <head></head> HTML code


mimoson999 [ Sat 15 Sep, 2007 18:18 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
BTW, that solution doesn't work


novice programmer [ Sat 15 Sep, 2007 18:24 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
and why not to try this code in the file:

Code: [Hide]
  1. print('<head>')
  2. print('<meta http-equiv="imagetoolbar" content="no">')
  3. print('</head>')
  4.  


Mighty Gorgon [ Mon 17 Sep, 2007 01:57 ]
Post subject: Re: Insert Code In The <head> For A Specific Page
You can do it in page_header.php

Code: [Hide] [Select]
$phpbb_meta = '<meta name="title" content="' . $page_title . '" />' . "n";
$phpbb_meta .= '<meta name="author" content="' . $lang['Default_META_Author'] . '" />' . "n";


You can create a new var in viewtopic before page_header is called, so you can dynamically assign META fields.




Powered by Icy Phoenix