Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ThomasA on November 11, 2013, 01:53:10 PM

Title: Admin Panel css
Post by: ThomasA on November 11, 2013, 01:53:10 PM
I have one strange (wierd  :o ) problem. On my 2.0.2 heavily modded forum when I install certain mods (Topic author or Fake online and Guests) everything works great, but my Admin panel goes wild, all my letters are twice in size. I have one test forum, with almost same mods, and that doesn't happen' there. So can anyone point in right direction to look for the problem.
Title: Re: Admin Panel css
Post by: Colin on November 11, 2013, 02:00:01 PM
Would you please attach good admin.css file.
Title: Re: Admin Panel css
Post by: Arantor on November 11, 2013, 02:09:42 PM
/me is willing to bet it is nothing to do with the CSS file at all but something being messed up by one of those mods adding characters it is not supposed to.
Title: Re: Admin Panel css
Post by: ThomasA on November 11, 2013, 02:11:12 PM
Quote from: Colin on November 11, 2013, 02:00:01 PM
Would you please attach good admin.css file.


Here you go...
Title: Re: Admin Panel css
Post by: ThomasA on November 11, 2013, 02:12:55 PM
Quote from: Arantor on November 11, 2013, 02:09:42 PM
/me is willing to bet it is nothing to do with the CSS file at all but something being messed up by one of those mods adding characters it is not supposed to.

Hmmm do you need the mods if it helps, I've tried to check them and they look good to me.
Title: Re: Admin Panel css
Post by: Illori on November 11, 2013, 02:19:46 PM
if you use firefox install the web developer addon and have it validate your local html that will tell more then anything.
Title: Re: Admin Panel css
Post by: ThomasA on November 11, 2013, 02:26:19 PM
OK, this is the most wierd thing now, in Firefox everything looks normal, only in Chrome the Admin css goes wild.
Title: Re: Admin Panel css
Post by: Shambles on November 11, 2013, 02:26:56 PM
But didn't you already figure out that it was the Topic Author mod?


Quote from: ThomasA on October 28, 2013, 02:39:00 PM
When I turn this mod ON everything works great, but my AdminPanel goes wild with BIG font, everything in my control is just too big, and when I uncheck and deactivate this mod, everything goes back. It not in just one theme it's in all of them.
Title: Re: Admin Panel css
Post by: Kindred on November 11, 2013, 02:32:44 PM
Also, you REALLY REALLY need to upgrade to 2.0.6
Title: Re: Admin Panel css
Post by: ThomasA on November 11, 2013, 02:50:33 PM
Quote from: Shambles on November 11, 2013, 02:26:56 PM
But didn't you already figure out that it was the Topic Author mod?


Yes, I did, but I was wondering if anyone knows why is this happening? I was OK with just one mod messing my forum up, but now it's happening with two mods. What am I doing wrong, or is my forum just reached breaking point  :-[
Title: Re: Admin Panel css
Post by: ThomasA on November 13, 2013, 01:30:11 PM
EUREKA:::  O:)  After few days of brainstorming what went wrong, simple "dot" was actually A MAJOR PROBLEM... For anyone that will encounter the same problem, the solution was in the language file.

In FakeGuests Mod in language file was a line

$txt['fguo_members_enable'] = 'Enable Fake Membernames in online memberlist.';


Notice the DOT at the end, when I removed it ... voila, everything works great

Now it looks like this:

$txt['fguo_members_enable'] = 'Enable Fake Membernames in online memberlist';



EDIT: And with the Topic Author mod it was also in the language file:

$txt['TopicAuthor_color_desc'] = 'Leave empty to use default color: #008000';


Should be:

$txt['TopicAuthor_color_desc'] = 'Leave empty to use default color #008000';
Title: Re: Admin Panel css
Post by: Arantor on November 13, 2013, 01:32:56 PM
There is absolutely no reason why that should be the case. It's almost certain that the reason is totally accidental and that putting the . back will not break it again.

More interesting would be how you edited the file exactly.
Title: Re: Admin Panel css
Post by: ThomasA on November 13, 2013, 01:36:06 PM
I've actually after many research went with the simple deductive method, turning off one function at the time, and then when I've found THE ONE, went line by line to see the problem. And believe, when I put back the "dot" it breaks again...  :o
Title: Re: Admin Panel css
Post by: Arantor on November 13, 2013, 01:38:03 PM
So are you putting the dot back by using the old file or putting it back by re-editing it? If so, I ask again: how are you editing the file exactly?
Title: Re: Admin Panel css
Post by: ThomasA on November 13, 2013, 01:50:46 PM
Quote from: Arantor on November 13, 2013, 01:38:03 PM
So are you putting the dot back by using the old file or putting it back by re-editing it? If so, I ask again: how are you editing the file exactly?

Via FTP client. Had the original file stored on my HDD, then edited one on the server, saved, refreshed the page...and when it is not the one, restored the original one, and started all over again. I was very stubborn  ;D . And now when I return the "original" one with the dot, it all is messed up, but when I erase the dot via FTP, and put it again and then store... IT works. OMG  :o. And the wierdest thing is that I have another forum that work without any changes... I think that something is broken in my main forum  :(
Title: Re: Admin Panel css
Post by: Kindred on November 13, 2013, 02:11:19 PM
it actually sounds like the file that you backed up - the one which was originally on your server when it was having problems - was corrupt, probably by some edits made iwth a bad editor.

By uploading a freshly saved file form a good editor, you fixed the problem
Title: Re: Admin Panel css
Post by: ThomasA on November 13, 2013, 04:30:39 PM
The ones I was replacing with were actually right out of zip file...unchanged... And when I've changed them with notepad++ at the end and uploaded it all worked like a charm....
Title: Re: Admin Panel css
Post by: Arantor on November 13, 2013, 04:45:07 PM
So the mod's file is damaged and the way you load/save it changes it - and exactly as predicted it's nothing to do with the . in that line, but the file's encoding which N++ is altering on your behalf for you.