Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Rain Forest on November 20, 2010, 07:54:24 AM

Title: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 20, 2010, 07:54:24 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 20, 2010, 09:39:56 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on November 20, 2010, 10:02:48 AM
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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 20, 2010, 01:16:43 PM
Hmm, I had to delete the cache and somehow the problem dissapeared..

Thanks for your quick answers
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Bigguy on November 20, 2010, 06:55:24 PM
Glad ya got it solved. :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 11:22:39 AM
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? :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 11:25:38 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on November 21, 2010, 11:35:37 AM
Can you also please attach Display.template.php.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 11:44:37 AM
Quote from: Kays on November 21, 2010, 11:35:37 AM
Can you also please attach Display.template.php.

Sure :)

Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 12:39:30 PM
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? :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Bigguy on November 21, 2010, 12:46:14 PM
Sounds like the encoding of the whole file was the problem.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 12:58:50 PM
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'?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Bigguy on November 21, 2010, 01:00:41 PM
Compare the two files and make the necessary changes. Winmerge is good for comparing two files.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 01:10:12 PM
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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 01:18:37 PM
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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on November 21, 2010, 01:37:32 PM
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! :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 15, 2011, 05:31:12 PM
Hmm, I updated it to RC5 and it seems to be it is back..

(http://www.decashare.com/images/JvMEeutxL-Untitled-2.jpg)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 15, 2011, 07:22:18 PM
Try this copy. It looks like the encoding had changed to UTF-8.

It that still the same theme?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 16, 2011, 04:19:13 AM
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?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 16, 2011, 05:52:52 PM
The page it self was encoded as UTF-8 rather than ANSI. Not the same problem as earlier.

Which mods do you have installed?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 08:24:58 AM
(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
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Illori on March 17, 2011, 08:27:33 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 17, 2011, 08:58:09 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 09:20:36 AM
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)

Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 17, 2011, 09:35:28 AM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 09:40:42 AM
8: Undefined index: bbc_hide
Pas filter toe: Toon alleen fouten van dit bestand
Bestand: ~/forum/Sources/Subs-Editor.php
Regel: 1732


Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: 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
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 10:08:57 AM
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 :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 17, 2011, 10:13:51 AM
You're welcome. :)

Just out of curiosity, are you using UTF-8 or not?
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 10:17:28 AM
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 :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 17, 2011, 10:31:34 AM
Thanks, let's hope that the problem doesn't re-occurred. :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Rain Forest on March 17, 2011, 10:32:08 AM
Indeed.

Thanks by the way! :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Kays on March 17, 2011, 10:48:18 AM
No problem. :)
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: MPAparicio on March 17, 2011, 12:19:49 PM
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
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Existant on November 27, 2011, 02:52:39 PM
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.
Title: Re: [SMF 2.0 RC4] Weird '''' shows up at Top header in topicq
Post by: Illori on November 27, 2011, 02:54:56 PM
please open a separate thread for your issue this thread belongs to someone else and is marked solved

also please dont bump old threads.