When I go to see a topic, a weird '''' shows up at the top of my forums.
Has it something to do with my Display.php ?
(http://www.decashare.com/images/Ne7nEtx3A-4.jpg)
Hopefully someone could help me with this.
Hi, does it do this on all pages or just when viewing a topic?
If you switch to the default theme does this still happen?
Does it do this if you switch to English? Is your forum set to use UTF8?
Quote from: Kays on November 20, 2010, 09:13:14 AM
Hi, does it do this on all pages or just when viewing a topic?
If you switch to the default theme does this still happen?
Does it do this if you switch to English? Is your forum set to use UTF8?
Hi,
It only appears when I'm actually looking at a topic. Not at index or at PM's, just during watching a topic.
It does not happen when I'm switching to the defualt theme. Default language is Dutch, not UTF8.
And if you switch to English, is it still there?
If so, the file to look in would probably be Display.template.php in the theme you are using. Look for any code which might be before the opening <?php at the top of the page, or after the closing ?> at the bottom.
If you can't find anything suspicious, attach that file to a post please. Also, which theme is that? Gotta link to it?
That symbol is probably at the very top of either the boardindex.template or messageindex.template of your custom theme before the opening php tag. I would start by searching those files. It could also be after the closing php tag.
Hmm, I had to delete the cache and somehow the problem dissapeared..
Thanks for your quick answers
Glad ya got it solved. :)
"" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.
Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into one of the files.
Hmm, this is really awkward, it just came back out of nothing. Really, I don't like this ''' above my header.
Quote from: flapjack on November 20, 2010, 07:11:48 PM
"" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.
Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into one of the files.
hmm, as a not-English person I don't know what u are saying. What do u suggest? :)
Quote from: Bigguy on November 20, 2010, 10:33:40 AM
That symbol is probably at the very top of either the boardindex.template or messageindex.template of your custom theme before the opening php tag. I would start by searching those files. It could also be after the closing php tag.
Can you also please attach Display.template.php.
Quote from: Kays on November 21, 2010, 11:35:37 AM
Can you also please attach Display.template.php.
Sure :)
Yep, that's the culprit. It was as Flapjack suspected, saved as UTF8.
Try this copy, I changed the encoding on it. Do clear your file cache after uploading it.
Quote from: Kays on November 21, 2010, 12:24:36 PM
Yep, that's the culprit. It was as Flapjack suspected, saved as UTF8.
Try this copy, I changed the encoding on it. Do clear your file cache after uploading it.
Thanks! It helped!
In what line was the problem? :)
Sounds like the encoding of the whole file was the problem.
Ah, but oh, now all the modifications i've done on display.template.php are going even as the Username at profile which is now smaller?
Before: (http://www.decashare.com/images/gLZUy08Ep-Untitled-1.jpg)
Now: (http://www.decashare.com/images/PjYNaTrp5-Untitled-2.jpg)
How can I change it back to 'before'?
Compare the two files and make the necessary changes. Winmerge is good for comparing two files.
Hmm, no I was wrong. The mods are still in the display.template.php. Now there's only this 'Before' and 'After' problem.
With Winmerge there is nothing to compare because the original has no mods and the Display.template.php which has Kays uploaded are having mods.
any lead where I can find the Username-name problem at this file?
All I changed was the encoding on the file and nothing else.
The first image looks like it's from the default theme. The second from a custom theme as it's using stars rather than the block ((http://www.simplemachines.org/community/Themes/default/images/star.gif))
Did you add the mods to your custom theme also?
Quote from: Kays on November 21, 2010, 01:13:08 PM
All I changed was the encoding on the file and nothing else.
The first image looks like it's from the default theme. The second from a custom theme as it's using stars rather than the block ((http://www.simplemachines.org/community/Themes/default/images/star.gif))
Did you add the mods to your custom theme also?
Yes.
But it's weird because the usernames were like 'before' (http://skinmod.eu/themedemo/index.html and click on Soft Cartoon) And after I overwrited the Display.template.php & delete cache the Usernames are like 'after'.
Is there a way to set it back?
Maybe, I just noticed something which might mess things up
look for:
<div class="poster" style="text-align: center;>
And change it to
<div class="poster" style="text-align: center;">
Other than that your file is very similar to the default file. Except for the addition of your mods.
Quote from: Kays on November 21, 2010, 01:31:57 PM
Maybe, I just noticed something which might mess things up
look for:
<div class="poster" style="text-align: center;>
And change it to
<div class="poster" style="text-align: center;">
Other than that your file is very similar to the default file. Except for the addition of your mods.
Thanks for the help! :)
Hmm, I updated it to RC5 and it seems to be it is back..
(http://www.decashare.com/images/JvMEeutxL-Untitled-2.jpg)
Try this copy. It looks like the encoding had changed to UTF-8.
It that still the same theme?
I'm using Zutzu's Soft Cartoon theme but it hasn't a Display.template.php.
I think a modification has caused the problem?
Thanks, it helped! :)
Which part was the problem?
The page it self was encoded as UTF-8 rather than ANSI. Not the same problem as earlier.
Which mods do you have installed?
(http://www.decashare.com/images/C64VdyBeW-1.png)
(http://www.decashare.com/images/exR0sNwkK-Untitled-3.png)
I have the feeling the problem is caused by the Member Color Link or the Hide Tag.
Every user also has this problem:
8: Undefined index: bbc_hide
please open a separate topic for that issue, that is not related to the rest of this thread, and since this thread is marked solved it will be ignored by support staff.
Hmm, it is related since I just asked for that info.
That's a few too many mods to be looking through. So lets hope it doesn't happen again.
As for that error, what's the entire error message? I can't see that string in your Display.template.php file so it would be nice to know the file and line number involved. But however, that's not what's causing causing the problem.
Ah, I see :)
Well, As an admin I'm allowed to see errors. S when I go to someone profile - clicking on their IP, this is the error I get on every user:
(http://www.decashare.com/images/MDRTvYrkC-Untitled-2.png)
If you go into the error log in the Admin CP you should see more details. Just post the text, no need for a screenshot.
Can you also attach Post.php to a post as the error seems to be in that file.
8: Undefined index: bbc_hide
Pas filter toe: Toon alleen fouten van dit bestand
Bestand: ~/forum/Sources/Subs-Editor.php
Regel: 1732
Thanks for attaching Subs-Editor also.
Can't quite find the mod responsible. But to resolve the issue, add the following to Post.english.php.
$txt['bbc_hide'] = 'Hide';
Or if just using Dutch, you can ship the English and add the translation to the Post.dutch.php file
Quote from: Kays on March 17, 2011, 10:02:04 AM
Thanks for attaching Subs-Editor also.
Can't quite find the mod responsible. But to resolve the issue, add the following to Post.english.php.
$txt['bbc_hide'] = 'Hide';
Or if just using Dutch, you can ship the English and add the translation to the Post.dutch.php file
Thank you so much :)
You're welcome. :)
Just out of curiosity, are you using UTF-8 or not?
Quote from: Kays on March 17, 2011, 10:13:51 AM
You're welcome. :)
Just out of curiosity, are you using UTF-8 or not?
No, just the default :)
Thanks, let's hope that the problem doesn't re-occurred. :)
Indeed.
Thanks by the way! :)
No problem. :)
I don't read the replies at this post; For resolved your probled you must open the files of your theme, and convert this at "ANSI", you should use a notepad++
Regards
Today I just updated my forums to SMF 2.0.1 and am now too having the  issue.
I have went back and uninstalled all mods that I installed after the update, one by one, and the  still appears above the header.
I tried reading through these current replies, but can't seem to get a grip on what it is I should be looking for.
I have attached my current Display.Template.php. Where do I look in there for the  issue?
Any and all help would be greatly appreciated.
please open a separate thread for your issue this thread belongs to someone else and is marked solved
also please dont bump old threads.