Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML] Wyświetla numer tel (skype) zamiast liczb
--Grzesiek--
post
Post #1





Goście







Zrobiłem stronę, już prawie ją skończyłem, jednak mam pewien problem.
Otóż mam w pewnej części strony numer tefefonu w postaci (022) xxx xx xx/ xxx xx xx, a przeglądarki wyświetlają mi go jako coś takiego:
(IMG:http://img217.imageshack.us/img217/1415/beznazwy1va9.jpg) (numer przykładowy oczywiscie)

wstawiłem na stronę kod:
Kod
<META NAME="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>

<?php
...

?>


ale po tym nie przechodzi mi validacji strona. Bez tego kodu jest wszystko ok, a z tym kodem wyskakuje nagle 100 błędów.
Ma ktoś jakąś radę jak temu zaradzić?

Ten post edytował ayeo 16.11.2008, 05:05:46
Powód edycji: brak taga
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 13)
bogdan89
post
Post #2





Grupa: Zarejestrowani
Postów: 320
Pomógł: 36
Dołączył: 28.08.2006
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Cytat(-Grzesiek- @ 16.11.2008, 02:43:19 ) *
Ma ktoś jakąś radę jak temu zaradzić?


Ja mam... wyłącz dodatek Skype dla przeglądarki...
Go to the top of the page
+Quote Post
Mize
post
Post #3





Grupa: Zarejestrowani
Postów: 84
Pomógł: 6
Dołączył: 26.03.2008
Skąd: Łódź

Ostrzeżenie: (0%)
-----


Dokładnie, to żaden skrypt tylko plugin w Twojej przeglądarce.
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #4





Goście







no ok, może macie rację, ale chodzi o to że robię stronę dla kogoś, i chcę to zrobić tak żeby u każdego w przeglądarce tak samo się wyświetlało.
Ja mam ten plugin, ktoś inny zapewne też ma jak ma skypa zainstalowanego, a chce zrobić tak żeby zawsze numer się wyświetlał w postaci
Kod
"(022) xxx xx xx/ xxx xx xx"
Go to the top of the page
+Quote Post
bogdan89
post
Post #5





Grupa: Zarejestrowani
Postów: 320
Pomógł: 36
Dołączył: 28.08.2006
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


ok, jak wolisz...

tylko nie przesadzaj z tym:
Kod
<META NAME="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>

ten kawałek kodu może mieć najwyżej trzy błędy!

spróbuj tak:
Kod
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />


PS. nie wiem czy wiesz, ale ten dodatek Skype właśnie instaluje się po to żeby zamieniał te numery na linki Skype.
Jeśli nie podoba Ci się ten sposób przedstawiania ich na stronie, to możesz przejrzeć Skype.com i znajdziesz tam pewnie inne i ładniejsze rozwiązania takiego problemu, niż zablokowanie dodatku Skype.

Ten post edytował bogdan89 16.11.2008, 12:10:03
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #6





Goście







Wrzuciłem fragment tego kodu tylko akurat w tym miejscu co jest wyświetlany numer tel. i są tylko 2 błędy w walidacji...
Wolałbym wcale ich nie mieć, ale jak nie znajdę sposobu to i tak zostawię chyba...
Chyba, że może można jakoś coś wstawić żeby danego fragmentu np <div>xxxxxx</div> żadne pluginy nie dotyczyły lub coś podobnego....
Go to the top of the page
+Quote Post
bogdan89
post
Post #7





Grupa: Zarejestrowani
Postów: 320
Pomógł: 36
Dołączył: 28.08.2006
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


Wrzuć ten kod do sekcji head, tam gdzie powinien być. Jak kod będzie w dobrym miejscu, to błędów nie będzie.
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #8





Goście







wrzuciłem tak jak mówiłeś i 5 błędów wtedy wyskakuje.
i to błędy typu <br/> itp... nie wiem o co chodzi... trudno, niech sobie są te 2 błędy, przynajmniej wtedy validator znajduje błędy w tym kodzie do skypa, a nie niewiadomo dlaczego gdzieś indziej
Go to the top of the page
+Quote Post
erix
post
Post #9





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




Cytat
wrzuciłem tak jak mówiłeś i 5 błędów wtedy wyskakuje.

Przykro mi, ale moja szklana kula się właśnie roztrzaskała... :/

Błędów może być kilka tysięcy. (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #10





Goście







Cytat(erix @ 16.11.2008, 18:50:31 ) *
Przykro mi, ale moja szklana kula się właśnie roztrzaskała... :/

Błędów może być kilka tysięcy. (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)


pisałem odnośnie posta kolegi "bogdan89"...
Go to the top of the page
+Quote Post
mike
post
Post #11





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Cytat(-Grzesiek- @ 17.11.2008, 17:37:03 ) *
pisałem odnośnie posta kolegi "bogdan89"...
A co? On będzie miał szklaną kulę?
Podaj treści błędów. Przecież nikt się nie domyśli co masz teraz na ekranie.
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #12





Goście







no pisałem jakiego typu są błędy
<BR /> - głównie tego typu, tak jakby cos nie tak było z slashami na końcu znaczników typu <br/>
jak wstawiłem ten kod w miejsce gdzie akurat jest numer telefonu w <td...> to validator pokazal 2 bledy, i akurat dotyczące właśnie tego kodu tylko...
Go to the top of the page
+Quote Post
mike
post
Post #13





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Człowieku, podaj treść tych błędów! Przecież Twoje gdybanie nic nie wnosi.
Go to the top of the page
+Quote Post
--Grzesiek--
post
Post #14





Goście







Prosze bardzo:

Wstawiam jako zwykly tekst zeby było widać zaznaczenia błędów...






Validation Output: 5 Errors

1. Error Line 1, Column 0: no document type declaration; will parse without validation.

<br />



The document type could not be determined, because the document had no correct DOCTYPE declaration. The document does not look like HTML, therefore automatic fallback could not be performed, and the document was only checked against basic markup syntax.

Learn how to add a doctype to your document from our FAQ, or use the validator's Document Type option to validate your document against a specific Document Type.
2. Warning Line 1, Column 4: NET-enabling start-tag requires SHORTTAG YES.

<br />



The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
3. Error Line 2, Column 57: character data is not allowed here.

… syntax error, unexpected '<' in <b>/home/mec/domains/mec.unl.pl/public_html/



You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:
* putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
* forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
* using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.
4. Error Line 2, Column 120: end tag for element "B" which is not open.

…l/public_html/themes/MEC/theme.php</b> on line <b>20</b><br />



The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

If this error occurred in a script section of your document, you should probably read this FAQ entry.
5. Error Line 2, Column 132: document type does not allow element "B" here.

…l/themes/MEC/theme.php</b> on line <b>20</b><br />



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
6. Warning Line 2, Column 143: NET-enabling start-tag requires SHORTTAG YES.

…C/theme.php</b> on line <b>20</b><br />



The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.
7. Error Line 2, Column 143: document type does not allow element "BR" here.

…C/theme.php</b> on line <b>20</b><br />



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 06:48