Code: Select all
echo '<title type="html"><![CDATA[' . $row['title'] . ']]></title>' . "\n\n";
Code: Select all
$title = (isset($row[$feed->get('title')]) && $row[$feed->get('title')] !== '') ? $row[$feed->get('title')] : ((isset($row[$feed->get('title2')])) ? $row[$feed->get('title2')] : '');
$published = ($feed->get('published') !== NULL) ? (int) $row[$feed->get('published')] : 0;
$updated = ($feed->get('updated') !== NULL) ? (int) $row[$feed->get('updated')] : 0;
$display_attachments = ($auth->acl_get('u_download') && $auth->acl_get('f_download', $row['forum_id']) && isset($row['post_attachment']) && $row['post_attachment']) ? true : false;
$item_row = array(
'author' => ($feed->get('creator') !== NULL) ? $row[$feed->get('creator')] : '',
'published' => ($published > 0) ? $phpbb_feed_helper->format_date($published) : '',
'updated' => ($updated > 0) ? $phpbb_feed_helper->format_date($updated) : '',
'link' => '',
'title' => censor_text($title),
'category' => ($config['feed_item_statistics'] && !empty($row['forum_id'])) ? $board_url . '/viewforum.' . $phpEx . '?f=' . $row['forum_id'] : '',
'category_name' => ($config['feed_item_statistics'] && isset($row['forum_name'])) ? $row['forum_name'] : '',
'description' => censor_text($phpbb_feed_helper->generate_content($row[$feed->get('text')], $row[$feed->get('bbcode_uid')], $row[$feed->get('bitfield')], $options, $row['forum_id'], ($display_attachments ? $feed->get_attachments($row['post_id']) : array()))),
'statistics' => '',
);
// Adjust items, fill link, etc.
$feed->adjust_item($item_row, $row);
$item_vars[] = $item_row;
•
annoys me!adjust_item()
method. The implementations are found in the phpbb/feeds/*.php files.My solution to make feed.php?mode=topics_active look more like search.php?search_id=active_topics was to make the following changes:cero2k wrote:Regardless of the settings, i always get [Forum Title] • [Topic Title]. I particularly want to remove the Forum Title
phpbb/feed/topics_active.php
suppress displaying the forum name in the Atom:title elementCode: Select all
129c129
< $item_row['title'] = (isset($row['forum_name']) && $row['forum_name'] !== '') ? $row['forum_name'] . ' ' . $this->separator . ' ' . $item_row['title'] : $item_row['title'];
---
> // $item_row['title'] = (isset($row['forum_name']) && $row['forum_name'] !== '') ? $row['forum_name'] . ' ' . $this->separator . ' ' . $item_row['title'] : $item_row['title'];
phpbb/feed/base.php
change the statistics separator Code: Select all
< var $separator_stats = "\xE2\x80\x94"; // —
---
> var $separator_stats = "»"; // match search.php?search_id=active_topics;
phpbb/feed/topic_base.php
display forum name link, remove replies and views counts
Code: Select all
50,51c50,52
< . ' ' . $this->separator_stats . ' ' . $this->user->lang['REPLIES'] . ' ' . ($this->content_visibility->get_count('topic_posts', $row, $row['forum_id']) - 1)
< . ' ' . $this->separator_stats . ' ' . $this->user->lang['VIEWS'] . ' ' . $row['topic_views'];
---
> . ' ' . $this->separator_stats . ' ' . $this->user->lang['POSTED_IN_FORUM'] . ' ' . '<a href="' . $this->helper->append_sid('viewforum.' . $this->phpEx, 'f=' . $row['forum_id']) . '">' . $row['forum_name'] . '</a>';
> // . ' ' . $this->separator_stats . ' ' . $this->user->lang['REPLIES'] . ' ' . ($this->content_visibility->get_count('topic_posts', $row, $row['forum_id']) - 1)
> // . ' ' . $this->separator_stats . ' ' . $this->user->lang['VIEWS'] . ' ' . $row['topic_views'];
Then look inVolksdevil wrote:Also interested in this. That damn•
annoys me!
phpbb/feed/base.php
for Code: Select all
/**
* Separator for title elements to separate items (for example forum / topic)
*/
var $separator = "\xE2\x80\xA2"; // •
phpbb/feed/topic_base.php
, which is a diff file output. There are 3 locations affected, but I can't find the exact code locations using a "Find" in my text editor.»
. The representation should instead be as »
. (Ref: Character entity references in HTML 4)‹
or ‹
? The style would be consistent with prosilver.phpbb/feed/base.php
find:Code: Select all
var $separator = "\xE2\x80\xA2"; // •
Code: Select all
var $separator = "‹"; // ‹
Fair enough. I've been trying out various changes/concepts so I'll give you my current version, which is slightly different than the previously posted change. InLady_G wrote:I am having some difficulty to follow your code changes
phpbb/feed/topic_base.php
, on line 48 find:Code: Select all
$item_row['statistics'] = $this->user->lang['POSTED'] . ' ' . $this->user->lang['POST_BY_AUTHOR'] . ' ' . $this->user_viewprofile($row)
. ' ' . $this->separator_stats . ' ' . $this->user->format_date($row[$this->get('published')])
Code: Select all
. ' ' . $this->separator_stats . ' ' . $this->user->lang['POSTED_IN_FORUM'] . ' ' . '<a href="' . $this->helper->append_sid('viewforum.' . $this->phpEx, 'f=' . $row['forum_id']) . '">' . $row['forum_name'] . '</a>'
Lady_G wrote:I believe you are missing a trailing semicolon ';' from your suggested replacement separator character. for»
.
My goal was consistency with the format of search.php?search_id=active_topicsLady_G wrote: Thanks. Although IE renders it properly without so I didn't notice the missing trailing semicolon.
Instead, may I suggest to use the same separator character used in the prosilver navbar header, '‹', coded as‹
or‹
? The style would be consistent with prosilver.
Code: Select all
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {margin: 0; padding: 0; border: 0; transition:all .2s ease-in}
body {max-width:220px; white-space: nowrap !important;
overflow:hidden !important; text-overflow:ellipsis !important;
background: none;
font: 76%/1.6em Verdana, Tahoma, Arial, Sans-serif; color: #FFF; text-shadow: -1px -1px 0 #000}
a {white-space: nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important;
width:auto;line-height: 13px;display:inline-block;text-decoration: none; border:none!important;
padding: 1px 8px 2px 8px!important; font-weight: 700; font-size: 11px; color: #202020!important;
text-shadow: 1px 1px 0 #DDD!important; background: #A6A6A6!important; border-radius: 7px;
box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .3), inset 0 10px rgba(255, 255, 255, .2), inset 0 10px 20px rgba(255, 255, 255, .25), inset 0 -15px 30px rgba(0, 0, 0, .3), 1px 1px 0 #303030, inset 1px 1px 0 #FFF!important}
a:hover {color: #FFF!important; text-shadow: 0px 0px 3px #000,0px 0px 3px #000!important}
img {height:0;opacity:0}
#feedHeaderContainer, h2, hr, #feedTitleLink, input {display:none}
div.feedEntryContent {line-height:0px;font-size:0;height:0}
.entry{background-image: url(wods.altervista.org/styles/prosilver/theme/immagini/sfondi/gsdsdgsome.png);
margin-bottom:5px;padding:5px;height:48px!important;border-radius:10px!important;box-shadow: -1px -1px 1px #000, 1px 1px 1px #C17643, inset 1px 1px 10px #050505}
.feedEntryContent a, h3 div{font-size:11px}
.feedEntryContent a:before{content: 'Inviato da: '}
h3{line-height:13px}
.feedEntryContent a {margin-top:2px}