wuddel
"myXOOPs"-Profi
Gepostet am:19.12.2007 22:20
original code (file: newbb/class/post.php):
214 function displayPostEdit()
215 {
216 global $myts, $xoopsModuleConfig;
217
218 if( empty($xoopsModuleConfig['recordedit_timelimit']) ) return false;
219
220 $post_edit = '';
221 $post_edits = $this->getVar('post_edit');
222 if (!empty($post_edits)) $post_edits = unserialize(base64_decode($post_edits));
223 if (!isset($post_edits) || !is_array($post_edits)) $post_edits = array();
224 if (is_array($post_edits) && count($post_edits) > 0) {
225 foreach($post_edits as $postedit) {
226 $edit_time = intval($postedit['edit_time']);
227 $edit_user = $myts->stripSlashesGPC($postedit['edit_user']);
228 $post_edit .= _MD_EDITEDBY . " " . $edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "<br/>";
229 }
230 }
231 return $post_edit;
232 }
!!! ERSETZE !!!
225 foreach($post_edits as $postedit) {
226 $edit_time = intval($postedit['edit_time']);
227 $edit_user = $myts->stripSlashesGPC($postedit['edit_user']);
228 $post_edit .= _MD_EDITEDBY . " " . $edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "<br/>";
229 }
!!! DURCH !!!
$postedit = end($post_edits);
$edit_time = intval($postedit['edit_time']);
$edit_user = $myts->stripSlashesGPC($postedit['edit_user']);
//The Line Below Displays The Count Of Times The Post Has Been Edited
$post_edit = "Bearbeitet ".count($post_edits)." mal <br>";
//If You remove the line above you will have to change the _
//line below from .= to =
$post_edit .= _MD_EDITEDBY . " " . $edit_user . " " . _MD_ON . " " . formatTimestamp(intval($edit_time)) . "<br/>";
| Forum | Thema | Antworten | Views | Letzter Beitrag |
|---|---|---|---|---|
| Modulentwicklung | New Xoops Xcreate Module | 0 | 5332 | 26.11.2025 15:22 efkan |
| Modulentwicklung | XOOPS Custom Field Module | 1 | 1818 | 24.11.2025 11:21 Goffy |