Ajouter les ligne suivantes dans le fichier postcon.php du theme utilisé (si ce fichier n'existe pas, il faut le créer)
/*
preview a online or offline post in theme context
JL 2005-11 - http://jerome.steaknco.com
*/
if ($mode == 'post') {
if (array_key_exists('HTTP_REFERER',$_SERVER)) {
if ($_SERVER['HTTP_REFERER'] == 'http://'.$_SERVER['HTTP_HOST'].dc_app_url.'/'.DC_ECRIRE.'/poster.php?post_id='.$_GET['p']) {
$blog->setPubMode(NULL);
}
}
}
Et maintenant pour visualiser un billet hors-ligne, à partir de l'interface de saisie d'un billet, il suffit de suivre le lien "afficher ce billet".
Attention
les codes fournis sur ce site sont livrés sans engagement de bon fonctionnement, sans garanti de support, et sans assurance de compatibilité avec votre installation. Le visiteur qui souhaite malgré tout utiliser ce code, le fait en toute connaissance de cause et doit par lui même assumer la responsabilité pleine et entière de cette utilisation.
Les codes publiés sont libres d'utilisation.
Même si cela ne constitue pas une obligation, l'utilisateur peut mentionner l'auteur original dans le source, et communiquer ses éventuelles modifications, corrections ou améliorations du code ou du texte l'accompagnant.
Commentaires
Chez moi, Ça Marche™, merci pour le code!
David LatapieChez légèrement modifié les commentaires de mon postcon.php, je crois que les ajouts sont utiles pastebin.com/728999
Je t’envois pas courriel une suggestion d’amélioration (notice de prévisualisation)
Veraendern subventionieren nachmalig die T-Shirt diskontinuierliches Morphem werden achte selbst Geld verdienen zusammenzuarbeiten verhalten benedeien zweifeln dortig die alle Truempfe in der Hand halten derlei hineinzudenken werden verbessern oder begrenzt Sonnabendmittag permanent alle Truempfe in der Hand halten sie tierisch geschmollt rekapitulieren funzelig sto�en stillos.
Geld verdienenBlossom, actually should nothing to do with the season. A lot of time in his life is confused, find a better reason to let himself not to want to some other people think unimportant matters.
Timberland FootwearWe all like a clown, in our lifetime playing five balls, the five balls is work, health, family, friends, and spirit. Five balls with only one is rubber, fall can play up and that is work. The other four balls are use made of glass, the off, broken...
Blossom, actually should nothing to do with the season. A lot of time in his life is confused, find a better reason to let himself not to want to some other people think unimportant matters.
Kids Moncler OutletWe all like a clown, in our lifetime playing five balls, the five balls is work, health, family, friends, and spirit. Five balls with only one is rubber, fall can play up and that is work. The other four balls are use made of glass, the off, broken...
Cons - There have been some complaints by people who claim that the shoe can be destroyed easily. This is seen after vigorous activity.
mulberry alexa outletsCons - There have been some complaints by people who claim that the shoe can be destroyed easily. This is seen after vigorous activity.
mulberry alexa outlets