FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Strange behaviour of templates compiler
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Strange behaviour of templates compiler [message #24402] Wed, 27 April 2005 13:46 Go to next message
akie is currently offline  akie   Russian Federation
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):

{REF: selmsg.tmpl}


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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
akie is currently offline  akie   Russian Federation
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 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Update user settings without password
Next Topic: a little textarea for news on top of Home page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 18:05:08 GMT 2024

Total time taken to generate the page: 0.02132 seconds