{"id":8443,"date":"2025-11-23T13:17:07","date_gmt":"2025-11-23T13:17:07","guid":{"rendered":"https:\/\/sivih.org\/?page_id=8443"},"modified":"2025-12-06T10:17:29","modified_gmt":"2025-12-06T10:17:29","slug":"mon-compte","status":"publish","type":"page","link":"https:\/\/sivih.org\/en\/mon-compte\/","title":{"rendered":"My Account"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"8443\" class=\"elementor elementor-8443\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b3c305c e-flex e-con-boxed e-con e-parent\" data-id=\"b3c305c\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e18b0d3 elementor-widget elementor-widget-html\" data-id=\"e18b0d3\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- PLACEZ CE CODE EN HAUT DE VOTRE PAGE \"MON PROFIL\" DANS ELEMENTOR -->\r\n<!-- C'EST TOUT CE DONT VOUS AVEZ BESOIN -->\r\n\r\n<script>\r\n\/\/ ============================================\r\n\/\/ FORCE LE RECHARGEMENT DES IMAGES AU REFRESH\r\n\/\/ ============================================\r\n\r\n\/\/ Attendre que la page soit compl\u00e8tement charg\u00e9e\r\nwindow.addEventListener('load', function() {\r\n    \r\n    \/\/ V\u00c9RIFIER SI ON EST SUR UNE PAGE DE PROFIL\r\n    \/\/ Modifiez ces conditions selon votre site\r\n    const currentUrl = window.location.href.toLowerCase();\r\n    const pageTitle = document.title.toLowerCase();\r\n    \r\n    const isProfilePage = \r\n        currentUrl.includes('https:\/\/sivih.org\/mon-compte\/') || \r\n        currentUrl.includes('https:\/\/sivih.org\/ma-cagnotte\/') || \r\n        currentUrl.includes('compte') ||\r\n        currentUrl.includes('account') ||\r\n        pageTitle.includes('profil') ||\r\n        pageTitle.includes('mon compte') ||\r\n        document.querySelector('h1, h2')?.textContent.toLowerCase().includes('profil');\r\n    \r\n    \/\/ SI CE N'EST PAS UNE PAGE PROFIL, NE RIEN FAIRE\r\n    if (!isProfilePage) {\r\n        return; \/\/ Sortie propre, aucun code ex\u00e9cut\u00e9\r\n    }\r\n    \r\n    console.log('\ud83d\udd04 Page profil d\u00e9tect\u00e9e - Activation du rafra\u00eechissement');\r\n    \r\n    \/\/ ============================================\r\n    \/\/ 1. FORCER LE RECHARGEMENT DES IMAGES\r\n    \/\/ ============================================\r\n    \r\n    \/\/ Attendre 500ms pour \u00eatre s\u00fbr que tout est charg\u00e9\r\n    setTimeout(function() {\r\n        \/\/ S\u00e9lecteurs sp\u00e9cifiques \u00e0 VOTRE site\r\n        const imageSelectors = [\r\n            'img[src*=\"avatar\"]',\r\n            'img[src*=\"gravatar\"]',\r\n            'img.profile-picture',\r\n            'img.user-avatar',\r\n            '.avatar img',\r\n            '.profile-image img',\r\n            'img[src*=\"wp-content\/uploads\"]' \/\/ Images WordPress\r\n        ];\r\n        \r\n        \/\/ Parcourir tous les s\u00e9lecteurs\r\n        imageSelectors.forEach(function(selector) {\r\n            const images = document.querySelectorAll(selector);\r\n            \r\n            images.forEach(function(img) {\r\n                if (img.src && img.tagName === 'IMG') {\r\n                    \/\/ Ajouter un timestamp pour forcer le rechargement\r\n                    const originalSrc = img.src.split('?')[0];\r\n                    const newSrc = originalSrc + '?refresh=' + Date.now();\r\n                    \r\n                    \/\/ Ne changer que si n\u00e9cessaire\r\n                    if (img.src !== newSrc) {\r\n                        img.src = newSrc;\r\n                    }\r\n                }\r\n            });\r\n        });\r\n        \r\n        console.log('\u2705 Images du profil rafra\u00eechies');\r\n    }, 500);\r\n    \r\n    \/\/ ============================================\r\n    \/\/ 2. FORCER LE RECHARGEMENT APR\u00c8S UNE MODIF\r\n    \/\/ ============================================\r\n    \r\n    \/\/ D\u00e9tecter les formulaires de modification\r\n    document.querySelectorAll('form').forEach(function(form) {\r\n        \/\/ \u00c9couter la soumission\r\n        form.addEventListener('submit', function() {\r\n            \/\/ Stocker dans le localStorage qu'une modif vient d'\u00eatre faite\r\n            localStorage.setItem('profile_just_updated', 'true');\r\n            localStorage.setItem('profile_update_time', Date.now());\r\n        });\r\n    });\r\n    \r\n    \/\/ V\u00e9rifier si une modification vient d'\u00eatre faite\r\n    const justUpdated = localStorage.getItem('profile_just_updated');\r\n    const updateTime = localStorage.getItem('profile_update_time');\r\n    \r\n    if (justUpdated === 'true' && updateTime) {\r\n        const timeSinceUpdate = Date.now() - parseInt(updateTime);\r\n        \r\n        \/\/ Si la modification a eu lieu il y a moins de 10 secondes\r\n        if (timeSinceUpdate < 10000) {\r\n            console.log('\ud83d\udd04 Modification r\u00e9cente d\u00e9tect\u00e9e - For\u00e7age du rechargement');\r\n            \r\n            \/\/ Forcer un rechargement complet\r\n            setTimeout(function() {\r\n                \/\/ Recharger sans cache\r\n                window.location.reload(true);\r\n            }, 1000);\r\n            \r\n            \/\/ Nettoyer le flag\r\n            localStorage.removeItem('profile_just_updated');\r\n            localStorage.removeItem('profile_update_time');\r\n        }\r\n    }\r\n    \r\n});\r\n\r\n\/\/ ============================================\r\n\/\/ FONCTION POUR RECHARGER LES DONN\u00c9ES AJAX\r\n\/\/ ============================================\r\n\r\n\/\/ Cette fonction ne s'ex\u00e9cute QUE si elle est appel\u00e9e manuellement\r\nfunction sivihRefreshProfileData() {\r\n    \/\/ Ne fait rien par d\u00e9faut\r\n    \/\/ \u00c0 utiliser uniquement si vous avez des donn\u00e9es AJAX\r\n    console.log('Fonction de rafra\u00eechissement disponible si besoin');\r\n}\r\n\r\n<\/script>\r\n\r\n<!-- FIN DU CODE -->\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-d4dc23b e-flex e-con-boxed e-con e-parent\" data-id=\"d4dc23b\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b01895f elementor-widget elementor-widget-shortcode\" data-id=\"b01895f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><div style=\"text-align: center; padding: 60px 20px;\">\r\n                <div style=\"max-width: 400px; margin: 0 auto;\">\r\n                    <h2 style=\"color: #FF7E00; margin-bottom: 20px;\">Acc\u00e8s \u00e0 votre compte<\/h2>\r\n                    <p style=\"color: #718096; margin-bottom: 30px;\">Connectez-vous pour acc\u00e9der \u00e0 votre espace personnel<\/p>\r\n                    <div style=\"display: flex; flex-direction: column; gap: 15px; align-items: center;\">\r\n                        <a href=\"https:\/\/sivih.org\/en\/connexion-membres\" class=\"miwa-btn miwa-btn-primary\" style=\"width: 100%; max-width: 200px; text-align: center; box-sizing: border-box;\">\r\n                            Se connecter\r\n                        <\/a>\r\n                        <a href=\"https:\/\/sivih.org\/en\/inscription-membres\" class=\"miwa-btn miwa-btn-secondary\" style=\"width: 100%; max-width: 200px; text-align: center; box-sizing: border-box;\">\r\n                            Cr\u00e9er un compte\r\n                        <\/a>\r\n                    <\/div>\r\n                <\/div>\r\n            <\/div><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-8443","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Mon Compte - Sivih<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sivih.org\/en\/mon-compte\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mon Compte - Sivih\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sivih.org\/en\/mon-compte\/\" \/>\n<meta property=\"og:site_name\" content=\"Sivih\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/profile.php?viewas=100000686899395&amp;id=100087996591441\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-06T10:17:29+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sivih.org\/mon-compte\/\",\"url\":\"https:\/\/sivih.org\/mon-compte\/\",\"name\":\"Mon Compte - Sivih\",\"isPartOf\":{\"@id\":\"https:\/\/sivih.org\/#website\"},\"datePublished\":\"2025-11-23T13:17:07+00:00\",\"dateModified\":\"2025-12-06T10:17:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/sivih.org\/mon-compte\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sivih.org\/mon-compte\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sivih.org\/mon-compte\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/sivih.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mon Compte\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sivih.org\/#website\",\"url\":\"https:\/\/sivih.org\/\",\"name\":\"Sivih\",\"description\":\"Assistance Communautaire\",\"publisher\":{\"@id\":\"https:\/\/sivih.org\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sivih.org\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/sivih.org\/#organization\",\"name\":\"Community organization\",\"url\":\"https:\/\/sivih.org\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/sivih.org\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/sivih.org\/wp-content\/uploads\/2024\/11\/cropped-logo-de-navigation.png\",\"contentUrl\":\"https:\/\/sivih.org\/wp-content\/uploads\/2024\/11\/cropped-logo-de-navigation.png\",\"width\":512,\"height\":512,\"caption\":\"Community organization\"},\"image\":{\"@id\":\"https:\/\/sivih.org\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/web.facebook.com\/profile.php?viewas=100000686899395&id=100087996591441\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"My Account - Sivih","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sivih.org\/en\/mon-compte\/","og_locale":"en_GB","og_type":"article","og_title":"Mon Compte - Sivih","og_url":"https:\/\/sivih.org\/en\/mon-compte\/","og_site_name":"Sivih","article_publisher":"https:\/\/web.facebook.com\/profile.php?viewas=100000686899395&id=100087996591441","article_modified_time":"2025-12-06T10:17:29+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sivih.org\/mon-compte\/","url":"https:\/\/sivih.org\/mon-compte\/","name":"My Account - Sivih","isPartOf":{"@id":"https:\/\/sivih.org\/#website"},"datePublished":"2025-11-23T13:17:07+00:00","dateModified":"2025-12-06T10:17:29+00:00","breadcrumb":{"@id":"https:\/\/sivih.org\/mon-compte\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sivih.org\/mon-compte\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sivih.org\/mon-compte\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/sivih.org\/"},{"@type":"ListItem","position":2,"name":"Mon Compte"}]},{"@type":"WebSite","@id":"https:\/\/sivih.org\/#website","url":"https:\/\/sivih.org\/","name":"Sivih","description":"Community Support","publisher":{"@id":"https:\/\/sivih.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sivih.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/sivih.org\/#organization","name":"Community organisation","url":"https:\/\/sivih.org\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/sivih.org\/#\/schema\/logo\/image\/","url":"https:\/\/sivih.org\/wp-content\/uploads\/2024\/11\/cropped-logo-de-navigation.png","contentUrl":"https:\/\/sivih.org\/wp-content\/uploads\/2024\/11\/cropped-logo-de-navigation.png","width":512,"height":512,"caption":"Community organization"},"image":{"@id":"https:\/\/sivih.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/profile.php?viewas=100000686899395&id=100087996591441"]}]}},"_links":{"self":[{"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/pages\/8443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/comments?post=8443"}],"version-history":[{"count":22,"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/pages\/8443\/revisions"}],"predecessor-version":[{"id":9690,"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/pages\/8443\/revisions\/9690"}],"wp:attachment":[{"href":"https:\/\/sivih.org\/en\/wp-json\/wp\/v2\/media?parent=8443"}],"curies":[{"name":"There are no reviews for this movie on this website.","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}