Forum » » Divers » » Balise "hide"
Posté : 20 oct. 2017 à 10:31
[code php] if ($citation && !$submitP) { $sql = "SELECT p.post_text, p.post_time, u.uname FROM ".$NPDS_Prefix."posts p, ".$NPDS_Prefix."users u WHERE post_id = '$post' AND p.poster_id = u.uid"; if ($r = sql_query($sql)) { $m = sql_fetch_assoc($r); $text = $m['post_text']; if (($allow_bbcode) and ($forum_type!=6) and ($forum_type!=5)) { $text = smile($text); $text = str_replace('Étrange (non) ??? En fait ce potentiel comme l'utilité de cette fonction 'Hide', m'avait été récemment demandée sur prev... C'est juste pour voir si cela est réactivable ou pas ??? (Si je me souviens bien fonctionnel sous phpnuke mais sous les versions de npds je ne l'ai jamais vu fonctionner !!) :wink:
', "\n", $text); } else { $text = htmlspecialchars($text,ENT_COMPAT|ENT_HTML401,cur_charset); } $text = stripslashes($text); if ($m['post_time']!='' && $m['uname']!='') { $reply = ''.translate("Quote").' : '.$m['uname'].''; } else { $reply = $text."\n"; } $reply = preg_replace("#\[hide\](.*?)\[\/hide\]#si",'',$reply); } else { $reply = translate("Error Connecting to DB")."\n"; } }[/code]
'.$text.'
Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=833&forum=49