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

Home » FUDforum Development » Bug Reports » bug in Template Editor
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon4.gif  bug in Template Editor [message #13993] Mon, 03 November 2003 04:48 Go to next message
gladiator is currently offline  gladiator   China
Messages: 61
Registered: June 2002
Location: Beijing
Karma: 0
Member
In pre_reg.tmpl, the contents of "forum_rules_13" and "forum_rules" are the same when clicked: {MSG: forum_rules_13}

any clue?
Re: bug in Template Editor [message #14001 is a reply to message #13993] Mon, 03 November 2003 14:35 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
This sounds like a bug in the older releases. In 2.6.0 snapshot it works fine. The other possibility that in the language you are using the text is infact the same.

With english localization in latest CVS I cannot replicate the bug.


FUDforum Core Developer
Re: bug in Template Editor [message #14034 is a reply to message #14001] Tue, 04 November 2003 07:21 Go to previous messageGo to next message
gladiator is currently offline  gladiator   China
Messages: 61
Registered: June 2002
Location: Beijing
Karma: 0
Member
Ilia wrote on Mon, 03 November 2003 22:35

This sounds like a bug in the older releases. In 2.6.0 snapshot it works fine. The other possibility that in the language you are using the text is infact the same.

With english localization in latest CVS I cannot replicate the bug.


I use 2.60rc2, upgraded from 2.5.x, and I use chinese localization.

sections in pre_reg.tmpl is:
... ...
{SECTION: forum_rules_13}
{MSG: forum_rules_13}
{SECTION: END}
 
{SECTION: forum_rules}
{MSG: forum_rules}
{SECTION: END}
... ...


I noticed that in tmpllist.php, function fetch_section(),
you use
$p = strpos($data, '{SECTION: '.$section);

to match the sections.
in the above example, seems it doesn't matter the value of $section is 'forum_rules' or 'forum_rules_13', it will always match the first section(which in this case is section forum_rules_13).
could this be a bug?

[Updated on: Tue, 04 November 2003 07:21]

Report message to a moderator

Re: bug in Template Editor [message #14052 is a reply to message #14001] Tue, 04 November 2003 18:58 Go to previous messageGo to next message
gladiator is currently offline  gladiator   China
Messages: 61
Registered: June 2002
Location: Beijing
Karma: 0
Member

I tried with english locale, but the problem is still there, so I can't change the forum_rules's contents because both link(forum_rules and forum_rules_13) can only change forum_rules_13's contents.
Re: bug in Template Editor [message #14063 is a reply to message #14034] Tue, 04 November 2003 23:22 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: One extra jump in history
Next Topic: undefined function in RC3
Goto Forum:
  

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

Current Time: Mon Nov 25 02:49:17 GMT 2024

Total time taken to generate the page: 0.01872 seconds