Icy Phoenix

     
 

Insert Code In The <head> For A Specific Page

Insert Code In The <head> For A Specific Page

Article
Reply with quote    Download Post  
Post 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



 
mimoson999 - View user's profile Send private message  
mimoson999 [ Wed 12 Sep, 2007 20:50 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Insert Code In The <head> For A Specific Page

Comments
Reply with quote    Download Post  
Post 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 <>



 
novice programmer - View user's profile Send private message  
novice programmer [ Wed 12 Sep, 2007 23:55 ]
Reply with quote    Download Post  
Post 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



 
mimoson999 - View user's profile Send private message  
mimoson999 [ Sat 15 Sep, 2007 17:08 ]
Reply with quote    Download Post  
Post 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



 
novice programmer - View user's profile Send private message  
novice programmer [ Sat 15 Sep, 2007 18:07 ]
Reply with quote    Download Post  
Post Re: Insert Code In The <head> For A Specific Page 
 
BTW, that solution doesn't work



 
mimoson999 - View user's profile Send private message  
mimoson999 [ Sat 15 Sep, 2007 18:18 ]
Reply with quote    Download Post  
Post 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.  




 
novice programmer - View user's profile Send private message  
novice programmer [ Sat 15 Sep, 2007 18:24 ]
Reply with quote    Download Post  
Post 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.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Mon 17 Sep, 2007 01:57 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 
 




 


 

  cron