http://www.icyphoenix.com/viewtopic.php?f=32&t=7521
-----------------------------------
victory1
Tue 07 Dec, 2010 00:29

Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
I noticed the number on the Menu is slightly below the text in Chrome & Safari Web Browsers for Black Pearl.  I looked at the menu block in template and can't see the problem.  Safari is just like Chrome.  How do I fix that?


-----------------------------------
TheSteffen
Tue 07 Dec, 2010 00:57

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
Are you using IcyPhoenix or phpBB3?


-----------------------------------
victory1
Tue 07 Dec, 2010 02:43

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
[quote user="TheSteffen" post="50937"]Are you using IcyPhoenix or phpBB3?[/quote]

I'm using phpBB3 and I just noticed I put it in the wrong forum!  Sorry about that, I was trying to post this before running an errand.  Please move it to the phpBB3 forum.  Thanks


-----------------------------------
Joshua203
Tue 07 Dec, 2010 15:49

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
done  :D 

Hi and welcome to icyhoenix,

well looking at your top picture you got a worse case ..or does my menubar look the same to you in safari? (see sig for link), i think my safari shows it a bit off too but not this much

if it looks equal it may be in the browser settings, i m not sure


-----------------------------------
victory1
Tue 07 Dec, 2010 21:19

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
[quote user="Joshua203" post="50942"]done  :D 

Hi and welcome to icyhoenix,

well looking at your top picture you got a worse case ..or does my menubar look the same to you in safari? (see sig for link), i think my safari shows it a bit off too but not this much

if it looks equal it may be in the browser settings, i m not sure[/quote]

Here's the website so you can take a look: [url=http://www.sonyreaderboards.com/portal.php?style=2]Sony Reader Forum


-----------------------------------
Joshua203
Wed 08 Dec, 2010 01:38

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
Hi again Lilly  ( i asume  :wink:  ),

I completely overlooked the fact that to view that you need to be registered and logged in  :lol:  :lol: 

anyway i did some searching and experimenting on my own board (where it did not look as bad as in you pic) and you could try something, however i did not test this fully in all browsers but i gave it a quicky


in the language files common.php find :
[code linenumbers=false]
	'NO_NEW_PM'			=> '<strong>0</strong> New Private',[/code]
replace with:
[code linenumbers=false]    'NO_NEW_PM'            => '0 New Private',[/code]


and find:
[code linenumbers=false]	'NEW_PM'			=> '<strong>%d</strong> New Private',
	'NEW_PMS'			=> '</strong>%d</strong> New Private',[/code]
and replace with:
[code linenumbers=false]	'NEW_PM'			=> '%d New Private',
	'NEW_PMS'			=> '%d New Private',[/code]

then fully test it and let me know cause i'm curious too  :mrorange: 

GoodLuck,
..Joshua203


-----------------------------------
mort
Wed 08 Dec, 2010 01:47

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
Maybe you could also try adding this to the style.css so that Chrome doesn't have to use its own rendition of <strong etc.

strong, b {
font-weight: bold;
}

It's worth a try - Because there are lots of things that Chrome doesn't handle very well?


-----------------------------------
victory1
Wed 08 Dec, 2010 03:20

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
I tried both methods and Joshua203 suggestion of removing the strong tags seems to fix the problem.


-----------------------------------
Joshua203
Wed 08 Dec, 2010 03:27

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
the funny thng is these strong tags are used all over the place

for instance .. index page at the bottom ... "the newest member is <strong>NAME OF USER</strong>

and here it causes no trouble at all as far as i can see anyway


-----------------------------------
mort
Wed 08 Dec, 2010 12:30

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
I would be inclined to remove the spaces and test this to see if it keeps the 0 bold and aligns the string?

But I neither use phpBB3 or Chrome.  :mryellow: 

<strong>0</strong>&nbsp;New Private

<strong>%d</strong>&nbsp;New Private
</strong>%d</strong>&nbsp;New Private

Other than that - Whatever it is, it's not obvious in the script?  :(


-----------------------------------
Joshua203
Wed 08 Dec, 2010 13:19

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
to be honest i don t even see the difference between a strong 0 and one with the removed tags  :oops: 

but i will probably try the space replacement you suggest too Mort ..just not today  :lol: thanks


-----------------------------------
Joshua203
Mon 13 Dec, 2010 01:28

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
FYI ... the &nbsp; does not do the trick either  :wink:


-----------------------------------
Tree of Life
Sun 11 Mar, 2012 01:08

Re: [SOLVED]   Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
[quote user="Joshua203" post="50949"]Hi again Lilly  ( i asume  :wink:  ),

I completely overlooked the fact that to view that you need to be registered and logged in  :lol:  :lol: 

anyway i did some searching and experimenting on my own board (where it did not look as bad as in you pic) and you could try something, however i did not test this fully in all browsers but i gave it a quicky


in the language files common.php find :
[code linenumbers=false]
	'NO_NEW_PM'			=> '<strong>0</strong> New Private',[/code]
replace with:
[code linenumbers=false]    'NO_NEW_PM'            => '0 New Private',[/code]


and find:
[code linenumbers=false]	'NEW_PM'			=> '<strong>%d</strong> New Private',
	'NEW_PMS'			=> '</strong>%d</strong> New Private',[/code]
and replace with:
[code linenumbers=false]	'NEW_PM'			=> '%d New Private',
	'NEW_PMS'			=> '%d New Private',[/code]

then fully test it and let me know cause i'm curious too  :mrorange: 

GoodLuck,
..Joshua203[/quote]



Thanks Joshua203,

My results are as follows:

1. Reviewing some of my uploaded 48 languages I found that at least several of those language files have the same problem.

2. Searching for the string "'<strong>0</strong> " I found 95 hits in 48 languages, all in their respective common.php files. Not quite half of them pertaining to "'NO_NEW_PM'                    => '<strong>0</strong>" and not quite half of them pertaining to "'NO_UNREAD_PM'                => '<strong>0</strong> "...   In addition the same strings were found 4 more times in the eu language folder, and 3 more times in the fr and he language folders, and a total of 8 times in the vi language folder.

3. I replaced all 95 instances of  "'<strong>0</strong> " with  "'0 " 

4. Similarly I found and replaced 192 items of "'<strong>%d</strong>" with "'%d". This replacement included not only the respective common.php files, but also a few odd install.php files, a few mcp.php files, and a few viewtopic.php files.

5. A total of 52 files were affected by the above edits. They were all uploaded to their respective folders...

6. The above procedure seems to be successful so far as I can tell after double checking a handful of languages...

7. Thanks for your help and assistance in getting the above bug taken care of...

8. Just curious though, and seeing that the above thread is well over a year old while Black Pearl is listed as last updated on Jan 21, 2012, Why is it that these fixes have not been included in that last update as posted at http://www.phpbb.com/customise/db/style/black_pearl/  ???    :oops: 


Shalom


-----------------------------------
Joshua203
Sun 11 Mar, 2012 01:27

Re: Number Of Message Display In Chrome & Safari For Black Pearl Problem
-----------------------------------
Well I think you went a little overboard there, I don't think using strong tags causes a problem in every instance, and sometimes strong is nice  :wink: 

I've never noticed or heard of any other than the mainbar problem in only Google Chrome & Safari.

I think it's just been overlooked, maybe I should've mentioned it to Mighty Gordon right before the last releases  :oops: 

Anyway glad you fixed it your way  :mrblue:


