accueil
downloads
links
bugmanager
header
**

Par respect de la netiquette, tous les contributeurs s'engagent à ne tenir ni propos insultants ni propos infamants envers un tiers. Merci d'avance à tous et ... bonne pêche aux infos - (Les numéros IP sont conservés.)
XML/RSS 2.0  page_down
newtopiclink  replylink  Version imprimable 
Ascending order Descending order   » Sujet: post edit bug, php5 et ixprim Ixprim 1.3 rc2 (XForum 3.5.2-ix)
Auteur: Message:


 Posté le 2007/10/12 à 19:11
non sauvergarde des options (chekbox), non affichage du texte à modifier sous..
php5 et ixprim Ixprim 1.3 rc2 (XForum 3.5.2-ix)



ajout ligne 56 :

CODE PHP:
$bbcodeoff = $_POST['bbcodeoff'];
$smileyoff = $_POST['smileyoff'];
$emailnotify = $_POST['emailnotify'];




on remplace :

CODE PHP:
  <td align="left" width="100%"><textarea class="xftextarea" rows="<?php echo $xfConfig['textarearows']; ?>" cols="<?php echo $xfConfig['textareacols']; ?>" id="message" name="message"><?=$postinfo->message?></textarea></td>

par :

CODE PHP:
<?php
  echo '<td align="left" width="100%"><textarea class="xftextarea" rows="
  '
.$xfConfig['textarearows'].'
  " cols="'
.$xfConfig['textareacols'].'" id="message" name="message">
  '
.$postinfo->message.'</textarea></td>';
?>





on remplace :

CODE PHP:
  <?=_TEXTHTMLIS?> <?=$allowhtml_text?>
  <?=_TEXTSMILIESARE?>  <?=$allowsmilies_text?>
  <?=_TEXTBBCODEIS?> <?=$allowbbcode_text?>
  <?=_TEXTIMGCODEIS?> <?=$allowimgcode_text?>

par :


CODE PHP:
<?php
echo '<td class="xf_postsombre" valign="top"><b>'._TEXTRIGHTS.'</b>
<span class="xf_forumlink_small"> '
._TEXTHTMLIS.' '.$allowhtml_text.'
 '
._TEXTSMILIESARE.'  '.$allowsmilies_text.'
 '
._TEXTBBCODEIS.' '.$allowbbcode_text.'
 '
._TEXTIMGCODEIS.' '.$allowimgcode_text ;
?>




on remplace :

CODE PHP:
  <input class="xf_postclair" type="checkbox" name="smileyoff" value="1" <?=$offcheck2?> /> <?=_TEXTDISSMILEYS?>
  <input class="xf_postclair" type="checkbox" name="usesig" value="1" <?=$offcheck3?> /> <?=_TEXTUSESIG?>
  <input class="xf_postclair" type="checkbox" name="bbcodeoff" value="1" <?=$offcheck1?> /><?=_BBCODEOFF?>
  <input class="xf_postclair" type="checkbox" name="emailnotify" value="1" <?=$notifycheck?> /> <?=_EMAILNOTIFYTOREPLIES?>
  <?php echo $checkboxDelete; ?>


par :

CODE PHP:
<?php
  echo '<input class="xf_postclair" type="checkbox" name="smileyoff" value="1" '.$offcheck2.'/> '._TEXTDISSMILEYS.'
  <input class="xf_postclair" type="checkbox" name="usesig" value="1" '
.$offcheck3.' /> '._TEXTUSESIG.'
  <input class="xf_postclair" type="checkbox" name="bbcodeoff" value="1" '
.$offcheck1.' />'._BBCODEOFF.'
  <input class="xf_postclair" type="checkbox" name="emailnotify" value="1" '
.$notifycheck.' /> '._EMAILNOTIFYTOREPLIES.'
  '
.$checkboxDelete;
?>


Profile Message Privé Editer le message Voir le site de l'utilisateur Chercher tous les messages de cet utilisateur Signaler ce message aux Administrateurs top
newtopiclink  replylink  Version imprimable 

page_up

 

Powered by XForum 3.5.1-ix by Trollix Software
0.3526480 - 37 queries