mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Atom picture
Добавляем картинку для ленты, вносим ее в переменные.
This commit is contained in:
parent
683b86bf5c
commit
63835dbe76
6 changed files with 19 additions and 28 deletions
|
@ -22,6 +22,7 @@ TorrentPier II - движок торрент-трекера, написанны
|
||||||
|
|
||||||
Исходя из настроек вашего сервера, устанавливаем рекомендуемые права доступа (chmod) на указанные папки **777**, а на файлы внутри этих папок (кроме файлов **.htaccess** и **.keep**) **666**:
|
Исходя из настроек вашего сервера, устанавливаем рекомендуемые права доступа (chmod) на указанные папки **777**, а на файлы внутри этих папок (кроме файлов **.htaccess** и **.keep**) **666**:
|
||||||
- ajax/html
|
- ajax/html
|
||||||
|
- atom
|
||||||
- cache
|
- cache
|
||||||
- cache/filecache
|
- cache/filecache
|
||||||
- files
|
- files
|
||||||
|
|
|
@ -9,20 +9,14 @@ require_once(INC_DIR .'functions_atom.php');
|
||||||
$timecheck = TIMENOW - 600;
|
$timecheck = TIMENOW - 600;
|
||||||
$forums_data = DB()->fetch_rowset("SELECT forum_id, allow_reg_tracker, forum_name FROM ". BB_FORUMS);
|
$forums_data = DB()->fetch_rowset("SELECT forum_id, allow_reg_tracker, forum_name FROM ". BB_FORUMS);
|
||||||
|
|
||||||
if (file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') > $timecheck)
|
if (!file_exists($bb_cfg['atom']['path'] .'/f/0.atom') && filemtime($bb_cfg['atom']['path'] .'/f/0.atom') <= $timecheck)
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
update_forum_feed(0, $forums_data);
|
update_forum_feed(0, $forums_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($forums_data as $forum_data)
|
foreach ($forums_data as $forum_data)
|
||||||
{
|
{
|
||||||
if (file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') > $timecheck)
|
if (!file_exists($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') && filemtime($bb_cfg['atom']['path'] .'/f/'. $forum_data['forum_id'] .'.atom') <= $timecheck)
|
||||||
{
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
update_forum_feed($forum_data['forum_id'], $forum_data);
|
update_forum_feed($forum_data['forum_id'], $forum_data);
|
||||||
}
|
}
|
||||||
|
|
BIN
upload/templates/default/images/feed.png
Normal file
BIN
upload/templates/default/images/feed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 520 B |
|
@ -13,9 +13,9 @@
|
||||||
<div id="forums_top_links">
|
<div id="forums_top_links">
|
||||||
<div class="floatL">
|
<div class="floatL">
|
||||||
<a href="{U_SEARCH_NEW}" class="med">{L_SEARCH_NEW}</a> ·
|
<a href="{U_SEARCH_NEW}" class="med">{L_SEARCH_NEW}</a> ·
|
||||||
<a href="{U_SEARCH_SELF_BY_LAST}" class="med">{L_SEARCH_SELF}</a> <a href="#search-my-posts" class="menu-root menu-alt1">{OPEN_MENU_IMG_ALT1}</a> ·
|
<a href="{U_SEARCH_SELF_BY_LAST}" class="med">{L_SEARCH_SELF}</a> <a href="#search-my-posts" class="menu-root menu-alt1">{OPEN_MENU_IMG_ALT}</a> ·
|
||||||
<a href="{U_SEARCH_LATEST}" class="med">{L_SEARCH_LATEST}</a> ·
|
<a href="{U_SEARCH_LATEST}" class="med">{L_SEARCH_LATEST}</a> ·
|
||||||
<a href="{U_INDEX}?map=1" class="med bold">{L_FORUM_MAP}</a>
|
<a href="{U_INDEX}?map=1" class="med bold">{FEED_IMG_ALT} {L_FORUM_MAP}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="floatR med bold">
|
<div class="floatR med bold">
|
||||||
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
|
<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
|
||||||
|
|
|
@ -121,18 +121,14 @@ $bb_cfg['attach_img_width_decr'] = 130; // decrement for attach images width
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'IMG' => $_main,
|
'IMG' => $_main,
|
||||||
|
|
||||||
'TEXT_BUTTONS' => $bb_cfg['text_buttons'],
|
'TEXT_BUTTONS' => $bb_cfg['text_buttons'],
|
||||||
'POST_BTN_SPACER' => ($bb_cfg['text_buttons']) ? ' ' : '',
|
'POST_BTN_SPACER' => ($bb_cfg['text_buttons']) ? ' ' : '',
|
||||||
|
'FEED_IMG_ALT' => '<img src="'. $_main .'feed.png" class="feed-small" alt="a" />',
|
||||||
'TOPIC_ATTACH_ICON' => '<img src="images/icon_clip.gif" alt="" />',
|
'TOPIC_ATTACH_ICON' => '<img src="images/icon_clip.gif" alt="" />',
|
||||||
'ATTACHMENT_ICON' => '<img src="images/icon_clip.gif" alt="" />',
|
'OPEN_MENU_IMG_ALT' => '<img src="'. $_main .'menu_open_1.gif" class="menu-alt1" alt="" />',
|
||||||
'OPEN_MENU_IMG_ALT1' => '<img src="'. $_main .'menu_open_1.gif" class="menu-alt1" alt="" />',
|
|
||||||
|
|
||||||
'TOPIC_LEFT_COL_SPACER_WITDH' => $bb_cfg['topic_left_column_witdh'] - 8, // 8px padding
|
'TOPIC_LEFT_COL_SPACER_WITDH' => $bb_cfg['topic_left_column_witdh'] - 8, // 8px padding
|
||||||
// Images auto-resize
|
|
||||||
'POST_IMG_WIDTH_DECR_JS' => $bb_cfg['topic_left_column_witdh'] + $bb_cfg['post_img_width_decr'],
|
'POST_IMG_WIDTH_DECR_JS' => $bb_cfg['topic_left_column_witdh'] + $bb_cfg['post_img_width_decr'],
|
||||||
'ATTACH_IMG_WIDTH_DECR_JS' => $bb_cfg['topic_left_column_witdh'] + $bb_cfg['attach_img_width_decr'],
|
'ATTACH_IMG_WIDTH_DECR_JS' => $bb_cfg['topic_left_column_witdh'] + $bb_cfg['attach_img_width_decr'],
|
||||||
|
|
||||||
'MAGNET_LINKS' => $bb_cfg['magnet_links_enabled'],
|
'MAGNET_LINKS' => $bb_cfg['magnet_links_enabled'],
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<!-- BEGIN denyrow -->
|
<!-- BEGIN denyrow -->
|
||||||
<fieldset class="attach">
|
<fieldset class="attach">
|
||||||
<legend>{ATTACHMENT_ICON} {L_ATTACHMENT}</legend>
|
<legend>{TOPIC_ATTACH_ICON} {L_ATTACHMENT}</legend>
|
||||||
<p class="attach_link denied">{postrow.attach.denyrow.L_DENIED}</p>
|
<p class="attach_link denied">{postrow.attach.denyrow.L_DENIED}</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<!-- BEGIN cat_images -->
|
<!-- BEGIN cat_images -->
|
||||||
<fieldset class="attach">
|
<fieldset class="attach">
|
||||||
<legend>{ATTACHMENT_ICON} {L_ATTACHMENT} ({postrow.attach.cat_images.FILESIZE})</legend>
|
<legend>{TOPIC_ATTACH_ICON} {L_ATTACHMENT} ({postrow.attach.cat_images.FILESIZE})</legend>
|
||||||
<p class="tCenter pad_6">
|
<p class="tCenter pad_6">
|
||||||
<img src="{postrow.attach.cat_images.IMG_SRC}" id="attachImg" class="postImg" alt="img" border="0" />
|
<img src="{postrow.attach.cat_images.IMG_SRC}" id="attachImg" class="postImg" alt="img" border="0" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<!-- BEGIN cat_thumb_images -->
|
<!-- BEGIN cat_thumb_images -->
|
||||||
<fieldset class="attach">
|
<fieldset class="attach">
|
||||||
<legend>{ATTACHMENT_ICON} {L_ATTACHMENT_THUMBNAIL}</legend>
|
<legend>{TOPIC_ATTACH_ICON} {L_ATTACHMENT_THUMBNAIL}</legend>
|
||||||
<p class="attach_link">
|
<p class="attach_link">
|
||||||
<a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank"><img src="{postrow.attach.cat_thumb_images.IMG_THUMB_SRC}" alt="{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}" border="0" /></a>
|
<a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank"><img src="{postrow.attach.cat_thumb_images.IMG_THUMB_SRC}" alt="{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}" border="0" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue