weird error showing up
Posted by Greg King
weird error showing up May 30, 2009 05:37PM |
Registered: 14 years ago Posts: 2 |
I upgraded to 5.2.11 yesterday and worked on customizing it a bit today.
I have only changed the header.tpl and footer.tpl in the classic templates.
When reading a message without being logged in, the box that says "Sorry, only registered users may post in this forum." has the word "Array" above it.
see [www.tybb.org]
to see what I mean. I've searched to find what code prints that box so I could verify I didn't confuse it, but don't know where it is at.
It is inside of a div statement as follows
<div class="PhorumFloatingText">Array</div>
Your help is appreciated!
I have only changed the header.tpl and footer.tpl in the classic templates.
When reading a message without being logged in, the box that says "Sorry, only registered users may post in this forum." has the word "Array" above it.
see [www.tybb.org]
to see what I mean. I've searched to find what code prints that box so I could verify I didn't confuse it, but don't know where it is at.
It is inside of a div statement as follows
<div class="PhorumFloatingText">Array</div>
Your help is appreciated!
Re: weird error showing up May 31, 2009 09:05AM |
Admin Registered: 19 years ago Posts: 8,532 |
That looks like a bit of old template code that was not cleaned up in the classic template. I fixed the issue in our code tree, so the next version won't have this issue. For now, you can edit templates/yourtemplate/message.tpl and remove the three lines that use the {MESSAGE} template variable. You can find the exact lines to delete in changeset 4241.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: weird error showing up May 31, 2009 12:09PM |
Registered: 14 years ago Posts: 2 |
Thanks for the quick reply!
In a side note, I noticed that there is an if statement for displaying the Forum List in the headers. Since I only have one forum in that board, and jump right to it, I wanted to remove the Forum List from the display. How would I set that variable?
{IF URL->INDEX}<a class="PhorumNavLink" href="{URL->IND
EX}">{LANG->ForumList}</a>•{/IF}
so that I don't have to edit every tpl file to remove that?
Thanks again!
In a side note, I noticed that there is an if statement for displaying the Forum List in the headers. Since I only have one forum in that board, and jump right to it, I wanted to remove the Forum List from the display. How would I set that variable?
{IF URL->INDEX}<a class="PhorumNavLink" href="{URL->IND
EX}">{LANG->ForumList}</a>•{/IF}
so that I don't have to edit every tpl file to remove that?
Thanks again!
Sorry, only registered users may post in this forum.