Strange behaviour of templates compiler [message #24402] |
Wed, 27 April 2005 13:46 |
akie
Messages: 12 Registered: March 2005 Location: Russia
Karma: 0
|
Junior Member |
|
|
Situation:
I try to edit {FUDFORUM_DATA}/thm/default/header.tmpl - I add one line at the beginning (I want to use sections from selmsg.tmpl in the header):
Then I try to rebuild theme in Theme Manager. Everything seems to be ok, no errors, but from this moment compiler stops to work normally: e.g., if i put work "test" to header.tmpl, then rebuild theme - I do not observe changes visually. I.e., no changes are available in theme. Moreover, if I roll-back to the initial version of header.tmpl and try to change it slightly (any word in header.tmpl) - these small changes do not appear in output after theme rebuilding.
I want to say, that adding the line mentioned above leads to strange behaviour of templates compiler. It stops to accept any (even small) changes, and to make it work I should to re-install entire FUDforum.
PHP Version: 5.0.4
Forum Version: 2.6.12
Web Server: Apache 1.3
Maybe I represent the situation not perfectly, but I am confused and do not understand the reasons of such a behaviour.
I would appreciate any help.
|
|
|
Re: Strange behaviour of templates compiler [message #24404 is a reply to message #24402] |
Wed, 27 April 2005 14:06 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
{REF: ...} elements should be added manually, because they reside outside of section tags and must be found near the top, right after file identifier tag.
FUDforum Core Developer
|
|
|
Re: Strange behaviour of templates compiler [message #24405 is a reply to message #24404] |
Wed, 27 April 2005 14:47 |
akie
Messages: 12 Registered: March 2005 Location: Russia
Karma: 0
|
Junior Member |
|
|
Thank you for quick reply.
Yes, I add {REF...} right after file id tag:
/***************************************************************************
* copyright : (C) 2001-2004 Advanced Internet Designs Inc.
* email : forum(at)prohost(dot)org
* $Id: header.tmpl,v 1.1 2005/04/25 14:07:18 iz Exp $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
***************************************************************************/
{REF: selmsg.tmpl}
{MAIN_SECTION: header forum page header}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
tttteeeesssssttttt
<head>
<title>{GVAR: FORUM_TITLE}{VAR: TITLE_EXTRA}</title>
{META-CONTENT-LANGUAGE}
<BASE HREF="{FULL_ROOT}">
/* the rest of file */
It doesn't work. I rebuild theme - but no changes in output ("tttteeeesssssttttt"). If I remove {REF: ...} and rebuild theme - it appears, everything is ok. What is wrong?
Btw, why Theme Manager doesn't show any warning/errors if something is wrong?
[Updated on: Wed, 27 April 2005 14:48] Report message to a moderator
|
|
|
Re: Strange behaviour of templates compiler [message #24406 is a reply to message #24405] |
Wed, 27 April 2005 14:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If there is an error it'll will show it, it simply "skips" what it does not consider to be tags silently, because they could very well occur in the content.
The header & footer are a bit unusual in the fact that they don't support internal references, because they are not being individually compiled but rather always inlined.
You can tell that is the case by the missing
{PHP_FILE: ...} directive found in other templates.
FUDforum Core Developer
|
|
|