Log in

View Full Version : Font size problem ... Please help


Midohash
09-02-2012, 09:09 PM
When a member copy a text in the forum and paste it in different post it appears like that:

SIZE=?4]و اللى بيعتنق دين فده بيكون لأن الله سبحانه و تعالى شرح صدره لهذا الدين.

How can I get rid of the size tags (marked in red color) appearing?

Thank you for advise

Lynne
09-02-2012, 10:08 PM
Since that doesn't happen here, then I can only assume it is someone on your site. Can we get a link to your site and test account and also a link to a test thread we may test this out in.

Midohash
09-03-2012, 11:51 AM
Since that doesn't happen here, then I can only assume it is someone on your site. Can we get a link to your site and test account and also a link to a test thread we may test this out in.

Thanks a lot Lynne. It really happens with many members not with a particular one when they do copy text from a post and paste it on a different post reply. It doesn't happen when they quote properly.

Here is an example page:

http://www.almatareed.org/vb/showthread.php?t=265868&page=13

Username: Test
Password: 654321

Many thanks for advise.

Midohash
www.almatareed.org/vb

Lynne
09-03-2012, 03:22 PM
You have this at the beginning of all your posts:
<div id="post_message_1208203">

<!-- دعوه لموضوعي -->
<br>
<!--/ دعوه لموضوعي -->

<p align="center"><font size="?4" face="Times New Roman"><font size="4" face="Arial" color="#22229C"><div style=" margin:5px; ">

So if somebody goes to copy/paste the text, it is going to have that font size added in there.

Midohash
09-03-2012, 08:45 PM
You have this at the beginning of all your posts:
<div id="post_message_1208203">

<!-- دعوه لموضوعي -->
<br>
<!--/ دعوه لموضوعي -->

<p align="center"><font size="?4" face="Times New Roman"><font size="4" face="Arial" color="#22229C"><div style=" margin:5px; ">

So if somebody goes to copy/paste the text, it is going to have that font size added in there.

That is true ... but why the size tag only appears when someone copies and pasted the text? ... As far as I remember, I have implemented an add on long time ago to avoid new members typing in very small default font size ... Should I stop this add on to sort out the problem? ... and is there an alternative to set the default font values for all members? ... Many thanks

Lynne
09-03-2012, 10:24 PM
You can try disabling your add-on and then see if the problem gets fixed.

This is not valid html and could be your problem:
<font size="?4"

http://www.w3schools.com/tags/att_font_size.asp

Midohash
09-03-2012, 11:08 PM
You can try disabling your add-on and then see if the problem gets fixed.

This is not valid html and could be your problem:
<font size="?4"

http://www.w3schools.com/tags/att_font_size.asp

I am very grateful to you Lynne ... I have added the missing tag <font size="?4"> in my postbit_legacy template ... I hope this will fix the problem ... It doesn't change the errors in the older posts but I'll monitor the new posts to see if the problem is sorted out permanently ... My thanks again

Lynne
09-04-2012, 01:59 AM
I was only quoting part of the line to say that the size was invalid (which is why I linked to the page about it). The full line was:
<font size="×4" face="Times New Roman">

But x4 is not valid.

Midohash
09-04-2012, 06:35 AM
I was only quoting part of the line to say that the size was invalid (which is why I linked to the page about it). The full line was:
<font size="?4" face="Times New Roman">

But x4 is not valid.

Thanks Lynne, I had another look on http://www.w3schools.com/tags/att_font_size.asp

Is line like that is OK, and do you expect it to fix my size tag problem:

<p align="center"><font size="4" face="arial">$post[message]</font></p>

Lynne
09-04-2012, 03:35 PM
size="4" is valid. I will recommend though that you move to CSS instead since <font> is actually deprecated.

Deprecated tags in HTML 4.0 -
http://www.htmlgoodies.com/tutorials/html_401/html4-ref/article.php/3460291/Deprecated-Tags-in-HTML-40.htm

Midohash
09-05-2012, 03:53 PM
size="4" is valid. I will recommend though that you move to CSS instead since <font> is actually deprecated.

Deprecated tags in HTML 4.0 -
http://www.htmlgoodies.com/tutorials/html_401/html4-ref/article.php/3460291/Deprecated-Tags-in-HTML-40.htm

It sounds after 24 hours monitoring of new posts that the problem is sorted out after adding the missing size tags and removal of x letter as you recommended :up: ... Thank you very much indeed ... I am not familiar with CSS technology and happy with my old <font> method :D