Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
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
 



 
mimoson999Send private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
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 programmerSend private message  
Back to topPage bottom
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
 



 
mimoson999Send private messageVisit poster's website  
Back to topPage bottom
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 programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Insert Code In The <head> For A Specific Page 
 
BTW, that solution doesn't work
 



 
mimoson999Send private messageVisit poster's website  
Back to topPage bottom
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 programmerSend private message  
Back to topPage bottom
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.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron