[Skip to main content](#vessel-content)

#   vcard microformats

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 7 months ago -  14 years 7 months ago [\#45252](#45252) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45252 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

ce serait bien un formatage different des adresses dans une prochaine version

dans ./templates/MYTPL/html/com_hikashop/address/address_template.php j'ai mis
Code:

&lt;div class="vcard"&gt; &lt;span class="fn"&gt;{address_title} {address_firstname} {address_lastname}&lt;/span&gt; &lt;div class="adr"&gt; &lt;span class="street-address"&gt;{address_street}&lt;/span&gt; &lt;span class="extended-address"&gt;{address_street_2}&lt;/span&gt; &lt;span class="postal-code"&gt;{address_post_code}&lt;/span&gt; &lt;span class="locality"&gt;{address_city}&lt;/span&gt; &lt;span class="region"&gt;{address_state}&lt;/span&gt; &lt;span class="country_name"&gt;{address_country}&lt;/span&gt; &lt;/div&gt; &lt;span class="tel"&gt;&lt;?php echo JText::_('TELEPHONE');?&gt; &lt;span class="value"&gt;{address_telephone}&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;

je suis oblige d'ajouter
Code:

div.adr span:empty{ display:none; }

et le code devient
Code:

echo preg_replace('#{(?:(?!}).)*}#i','',$html);

le style se fait en css

ce formatage vcard pourrait etre d'origine (code source)

voir HTML5 vcard microformats

Last edit: 14 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[toffffe](/forum/user/4564-toffffe "View toffffe's Profile")**
- [![toffffe's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4564-toffffe "View toffffe's Profile")
- [ Offline](/forum/user/4564-toffffe)

Less More

- Posts: 318
- Thank you received: 1
-
-
-
- [](http://www.agence-web-inoak.fr)
-

14 years 7 months ago [\#45315](#45315) by [toffffe](/forum/user/4564-toffffe "View toffffe's Profile")  Replied by *[toffffe](/forum/user/4564-toffffe "View toffffe's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45315 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

Bonne idée, je suis preneur aussi.

---

Agence web e-commerce spécialiste Hikashop

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 7 months ago [\#45324](#45324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45324 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

Merci pour l'idée et le code.

Je ne suis pas familier avec le mircroformat. Quel est l'intéret ?

J'ai essayé de mon coté et les adresses s'affichent ensuite sans retour à la ligne. Il faut ajouter du CSS du coup pour que cela fonctionne. Cependant, les fichiers CSS d'hikashop ne sont pas chargés dans les emails. Donc du CSS uniquement ne suffira pas à corriger l'affichage. Il faudrait alors inclure the style directement dans les balises HTML.
Un simple Display:block sur extended-address et country ferait l'affaire.

Qu'en pensez vous ? Des idées ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 7 months ago -  14 years 7 months ago [\#45328](#45328) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45328 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

l’intérêt des microformats dont vcard ou geo-location c'est un format recuperable par google ou via des plugins dans firefox tu ajoutes l'adresse a ton carnet

en css j'ai fait ça, mais tu pourrais le mettre dans le no_header_css = 0 ![:-)](/media/kunena/emoticons/9.png ":-)")
et pour les email il faudrait effectivement le mettre dans le head

mais les balises div ou span importent peu ce qui compte c'est le nommage des class
Code:

/* ADDRESS */ div.vcard{ margin:5px auto; padding:5px; } div.vcard *, div.adr *{ text-align:left !important; } div.adr span{ padding:2px; } span.country_name, span.street-address, span.region{ display:block; clear:both; } span.extended-address{ padding-left:10px; } div.adr span:empty{ display:none; }

Last edit: 14 years 7 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 6 months ago [\#45504](#45504) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45504 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

Ok, je mets ça dans la todo list.
On verra cela par la suite car comme je disais, pour le CSS il faudrait le mettre en inline (directement dans les attributs des balises html) pour que le CSS puisse etre dans l'email. Sinon, cela ne s'affichera pas comme il faut dans l'email.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 6 months ago -  14 years 6 months ago [\#45505](#45505) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45505 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

ou alors avoir 2 adresses_template un pour l'email un pour le reste, car sinon on retombe sur du css codé en dur qui va bloquer du monde
je dois partir 2 semaines en vacances mais sinon toute la doc pour le nommage des class [ microformats.org/wiki/Main\_Page](http://microformats.org/wiki/Main_Page)

hcard [ microformats.org/wiki/hcard](http://microformats.org/wiki/hcard)

geo localisation aussi [ microformats.org/wiki/geo](http://microformats.org/wiki/geo)

Last edit: 14 years 6 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 6 months ago [\#45507](#45507) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45507 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

Il y a déjà 2 vues, une pour le back end et une pour le front end.
Ca va faire bcp de vues a modifier pour changer le mode d'affichage (pour les USA et beaucoup de pays anglophones c'est nécessaire) alors que le système de vcard microformat est surement moins nécessaire (même si très intéressant pour certains)).
Dans ce cas là, il faudrait faire une option pour changer de template automatiquement via une option avec quelques template d'adresse prédéfini (USA, asie, france, etc).
Bref, cela va entrainer pas mal de boulot.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

14 years 6 months ago [\#45508](#45508) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: vcard microformats](/forum/5-support-en-francais-french-support-/45252-vcard-microformats#45508 "ce serait bien un formatage different des adresses dans une prochaine version  dans ./templates/MYTPL/html/com&#95;hikashop/address/address&#95;template.php j'ai mis  je suis oblige d'ajouter  et le code devient  le style se fait en css  ce formatage vcard pourrait etre d'origine (code source)  voir HTML5 vcard microformats")*

en ce cas (selon mon point de vue bien sur) vaut mieux laisser tomber, du css code en dur c'est epouvantable et on peut le formater comme j'ai fait

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDUyNTItdmNhcmQtbWljcm9mb3JtYXRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.122 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
