Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Where is file located?

Asked Modified Viewed 2,030 times
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
asked
Super Admin

I've been searching for hours for this function. Someone update the SVN please, or did I miss it?

Quote


if (function_exists("get_head_tags"wink) { echo get_head_tags(); }

I need to to see this get_head_tags() function.

It's not in output_handling_include.php

Can anybody advice?
0 replies

10 posts

A
Archer
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

Its it a custom defined fiction in themes ? Look at ddrsg
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Which function outputs add_to_head() then?
0 replies
A
Archer
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

thats in output_handling_include.php
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Sorry Archer, what I mean is which functions outputs the header tags.
0 replies
A
Archer
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]function handle_output($output)
{
global $fusion_page_head_tags ,$fusion_page_footer_tags, $fusion_page_title, $fusion_page_meta, $fusion_page_replacements, $fusion_output_handlers, $settings;

if(!empty($fusion_page_footer_tags))
{
$output = preg_replace("#</body>#", $fusion_page_footer_tags."</body>", $output, 1);
}
if(!empty($fusion_page_head_tags))
{
$output = preg_replace("#</head>#", $fusion_page_head_tags."</head>", $output, 1);
}
if($fusion_page_title != $settings['sitename'])
{
$output = preg_replace("#<title>.*</title>#i", "<title>".$fusion_page_title."</title>", $output, 1);
}
if(!empty($fusion_page_meta))
{
foreach($fusion_page_meta as $name => $content)
{
$output = preg_replace("#<meta (http-equiv|name)='$name' content='.*' />#i", "<meta \\1='".$name."' content='".$content."' />", $output, 1);
}
}
if(!empty($fusion_page_replacements))
{
eval($fusion_page_replacements);
}
if(!empty($fusion_output_handlers))
{
eval($fusion_output_handlers);
}
return $output;
}[/syntaxhighlighter]

then in templates

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false] echo handle_output($output);[/syntaxhighlighter]
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Yeah, that makes sense. I did but its not showing on the admin templates.

$output is what?

Do you include $output=""; where? But that will make all add_to_header() not displaying at all.
I'm wondering why $output and not $output=false. What about undefined error?
0 replies
A
Archer
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

Templates define $output. see below

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$output = ob_get_contents();
if (ob_get_length() !== FALSE)
{
ob_end_clean();
}
echo handle_output($output);[/syntaxhighlighter]
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

Oh it caches everything. I see now.

Thanks Archer, I will see if I can fix it now.
0 replies
A
Archer
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

NP :D
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
answered
Super Admin

No wonder it is in the footer. It should be the last code there is then, especially if it caches everything. I'll have the atom

add_to_css and add_to_jquery function put in before that.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Started this discussions
  • Answered 6 questions
A
A
Archer 9
  • Member, joined since
  • Contributed 115 posts on the community forums.
  • Started 7 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet