Revision 1057
Added by aldus over 15 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.0 ------------------------------------- |
14 |
13-July 2009 Dietrich Roland Pehlke |
|
15 |
# News-Modul: add the unlink-routine for the ".news" folder inside uninstall.php |
|
16 |
so the groupe-images are also unlink. |
|
17 |
! News-Modul: add <tr><td> and </td></tr>-tags to the "none found" part in the view.php to |
|
18 |
get valid output inside a table. |
|
19 |
! Change the setting of $display_image and $display_groupe to avoid the |
|
20 |
empty display roule problematic (<tr style="display: ">) for valid output. |
|
21 |
! Add >> in "add.php" instead of >> to avoid invalid output. |
|
14 | 22 |
11-July-2009 Ruud Eisinga |
15 | 23 |
! The news module post_title link made unclickable when there is no full post. |
16 | 24 |
11-July-2009 Matthias Gallas |
trunk/wb/modules/news/uninstall.php | ||
---|---|---|
35 | 35 |
|
36 | 36 |
require_once(WB_PATH.'/framework/functions.php'); |
37 | 37 |
rm_full_dir(WB_PATH.PAGES_DIRECTORY.'/posts'); |
38 |
rm_full_dir(WB_PATH.MEDIA_DIRECTORY.'/.news'); |
|
38 | 39 |
|
39 | 40 |
?> |
trunk/wb/modules/news/view.php | ||
---|---|---|
216 | 216 |
$group_id = $post['group_id']; |
217 | 217 |
$group_title = $groups[$group_id]['title']; |
218 | 218 |
$group_image = $groups[$group_id]['image']; |
219 |
if($group_image == '') { $display_image = 'none'; } else { $display_image = ''; }
|
|
220 |
if($group_id == 0) { $display_group = 'none'; } else { $display_group = ''; }
|
|
219 |
$display_image = ($group_image == '') ? "none" : "inherit";
|
|
220 |
$display_group = ($group_id == 0) ? 'none' : 'inherit';
|
|
221 | 221 |
// Replace [wblink--PAGE_ID--] with real link |
222 | 222 |
$short = ($post['content_short']); |
223 | 223 |
$wb->preprocess($short); |
... | ... | |
308 | 308 |
$group_id = $post['group_id']; |
309 | 309 |
$group_title = $groups[$group_id]['title']; |
310 | 310 |
$group_image = $groups[$group_id]['image']; |
311 |
if($group_image == '') { $display_image = 'none'; } else { $display_image = ''; }
|
|
312 |
if($group_id == 0) { $display_group = 'none'; } else { $display_group = ''; }
|
|
311 |
$display_image = ($group_image == '') ? "none" : "inherit";
|
|
312 |
$display_group = ($group_id == 0) ? 'none' : 'inherit';
|
|
313 | 313 |
$vars = array('[PAGE_TITLE]', '[GROUP_ID]', '[GROUP_TITLE]', '[GROUP_IMAGE]', '[DISPLAY_GROUP]', '[DISPLAY_IMAGE]', '[TITLE]', '[SHORT]', '[BACK]', '[TEXT_BACK]', '[TEXT_LAST_CHANGED]', '[MODI_DATE]', '[TEXT_AT]', '[MODI_TIME]', '[PUBLISHED_DATE]', '[PUBLISHED_TIME]', '[TEXT_POSTED_BY]', '[TEXT_ON]', '[USER_ID]', '[USERNAME]', '[DISPLAY_NAME]', '[EMAIL]'); |
314 | 314 |
$post_short=$post['content_short']; |
315 | 315 |
$wb->preprocess($post_short); |
... | ... | |
366 | 366 |
} else { |
367 | 367 |
// Say no comments found |
368 | 368 |
if(isset($TEXT['NONE_FOUND'])) { |
369 |
echo $TEXT['NONE_FOUND'].'<br />';
|
|
369 |
$content .= "<tr><td>".$TEXT['NONE_FOUND'].'<br /></td></tr>';
|
|
370 | 370 |
} else { |
371 |
echo 'None Found<br />';
|
|
371 |
$content .= '<tr><td>None Found<br /></td></tr>';
|
|
372 | 372 |
} |
373 | 373 |
} |
374 | 374 |
|
trunk/wb/modules/news/add.php | ||
---|---|---|
54 | 54 |
<td valign="top"><b>[TEXT_POSTED_BY] [DISPLAY_NAME] ([USERNAME]) [TEXT_ON] [PUBLISHED_DATE]</b></td> |
55 | 55 |
</tr> |
56 | 56 |
<tr style="display: [DISPLAY_GROUP]"> |
57 |
<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
|
|
57 |
<td valign="top"><a href="[BACK]">[PAGE_TITLE]</a> >> <a href="[BACK]?g=[GROUP_ID]">[GROUP_TITLE]</a></td>
|
|
58 | 58 |
</tr> |
59 | 59 |
</table>'); |
60 | 60 |
$post_footer = '<p>[TEXT_LAST_CHANGED]: [MODI_DATE] [TEXT_AT] [MODI_TIME]</p> |
Also available in: Unified diff
Changes on the news-modul: uninstall.php, add.php and view.php. See changlog for details.