View Full Version : standard_error css headinclude not working?
al3bed
02-22-2009, 07:19 AM
hello,
I have this code:
if ($vbulletin->options['ain_opera'] AND is_browser('opera')){
eval(standard_error(fetch_error('ain_noopera_text' )));}
it's work fine but without css? any one can tell me what is the problem?
I try many hooks and still show me without headinclude, header and footer templates?
what's wrong guys? :o
--------------- Added 1235321720 at 1235321720 ---------------
add: any help is appreciate :)
Lynne
02-22-2009, 03:58 PM
Is this on a custom page and does it have a header/footer? Or is it on an existing page?
al3bed
02-22-2009, 04:22 PM
I use this code with existing page showthread template
standard_error template already have headinclude, header and footer tags?
fetching error is completely done but without (headinclude, header and footer).
as I know "standard_error(fetch_error())" show standard_error template but why this happen?
Lynne
02-22-2009, 05:01 PM
The STANDARD_ERROR template does have the headinclude and header template included but there is a conditional on whether the navbar is shown. Are you sure that is the template being used? Check - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. Sometimes the template is the one mentioned at the very top of the page source.
al3bed
02-22-2009, 05:37 PM
at start
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- BEGIN TEMPLATE: STANDARD_ERROR -->
at the end
<!-- END TEMPLATE: STANDARD_ERROR --><!-- Page generated in 0.21103 seconds with 7 queries -->
this confuse me !
Lynne
02-22-2009, 05:49 PM
And have you checked the STANDARD_ERROR template to make sure it hasn't been modified to not include certain things?
al3bed
02-22-2009, 06:11 PM
yes I'm sure.
and this is the head part
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<if condition="$show['search_noindex']"><meta name="robots" content="noindex,follow" /></if>
$headinclude
<title>$pagetitle</title>
$headinsert
</head>
<body>
$header
<if condition="$navbar">
$navbar
<else />
<br /><br /><br />
</if>
every things are correct but I get this:
https://vborg.vbsupport.ru/external/2009/02/31.jpg
also I check this with other browsers and i get same result
Lynne
02-22-2009, 08:18 PM
Have you looked in your page source to see what is showing up there? Is the style sheet being called?
al3bed
02-23-2009, 10:53 AM
do you think this picture have css?
http://i43.tinypic.com/2ymf2qd.jpg
yes I looked in page source and no style sheet is up there.
please, check this simple plugin on 3.8.x for IE browser and see if is it work with you or not?
it's just example to test if my localhost have the problem or this code have it.
I test many hooks it's the same.
I test on 3.8,3.7,3.6 it's the same.
there is something wrong, but I don't know what.
thanks for respond
Lynne
02-23-2009, 02:28 PM
I can tell the image has no css. What I am wondering is what is in the source code. Is it calling the css but the url is wrong? Is it calling anything from the headinclude file? The page source is an enormous source of information if you just look at it.
I can't check anything for an IE browser as I don't have IE installed.
al3bed
02-23-2009, 02:50 PM
I am wondering too
ok you can check it now for any browser .. just take a look..
also source code attached. there are no css codes or headinclude, header, footer data.
maybe I use this function in wrong way?!
Lynne
02-23-2009, 03:16 PM
Change the hook location to "global_setup_complete" If you eval it at "global_start", like you are, then it is done before anything gets done and thus none of the templates have been evaled. (Always check out where your hook is located before picking it for your plugin.)
al3bed
02-23-2009, 05:44 PM
is all about hook place .. it's make me crazy
thanks a lot Lynne
you are very helpful
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.