Insert Code In The <head> For A Specific Page


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

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: [Download] [Hide]
  1. header('meta http-equiv="imageroolbar" content="no"');
  2.  

just set the command without the <>

Profile PM  
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

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

Profile PM  
Subject: Re: Insert Code In The <head> For A Specific Page
BTW, that solution doesn't work

Subject: Re: Insert Code In The <head> For A Specific Page
and why not to try this code in the file:

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

Profile PM  
Subject: Re: Insert Code In The <head> For A Specific Page
You can do it in page_header.php

Code: [Download] [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.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 1.0043s (PHP: 2% SQL: 98%)
SQL queries: 15 - Debug Off - GZIP Enabled