The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[str_replace] Problem in vb4
Hello every one ,
i used that code but not worked Hook : parse_templates code : PHP Code:
i know that "<!-- / CSS Stylesheet -->" not found in template headinclude , but i add it and still code not worked Where the problem, thank you |
#2
|
||||
|
||||
exactly where in the headinclude template did you add the "<!-- / CSS Stylesheet -->" ?
|
#3
|
||||
|
||||
I've solved a part of problem
But , What I want to do now is to put the code at the end of the template headinclude Instead of searching for " <!-- / CSS Stylesheet --> " Because it does not existthe in template headinclude PHP Code:
|
#4
|
|||
|
|||
If you want to add something to the end of the headinclude template, you can use the headinclude_css template hook instead of doing a str_replace, like:
Code:
$ain_nocopy = '<SCRIPT LANGUAGE="JavaScript"> CODE </SCRIPT>'; $ain_nocopy_css = '<style type="text/css">.ain_unselectable{CODE}</style>'; $template_hook['headinclude_css'] .= $ain_nocopy_css.$ain_nocopy; |
#5
|
||||
|
||||
thnx , kh99 ... for ur code
i try something and worked good PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|