Customizing SMF > Theme Previews
[Preview] justboards Theme
KahneFan:
@ Runic, see my site for new preview, or screenshot below. Much more definition now.
@ antechinus, so, two rows instead of two columns? Screenshot of this as well below.
Runic:
yes that looks better for me
Antechinus:
Looks good. Final tweaks IMO would be:
1/ Add "in" between xxxPosts xxxTopics
2/ Put a <br /> between "Last post by xxxxxxx" and "in Blah blah Topic" and the date/time.
Last post by Kahnefan
in Child board Topic
January 15th, 2009, 2.02.34PM
You wouldn't need the "on" for the last line and losing it would look cleaner.
3/ Put line breaks between "Child Boards" and the board names themselves. That way they'll stack up cleanly in the narrow columns.
KahneFan:
--- Quote from: antechinus on January 25, 2009, 07:18:38 PM ---Looks good. Final tweaks IMO would be:
1/ Add "in" between xxxPosts xxxTopics
--- End quote ---
Done.
--- Quote from: antechinus on January 25, 2009, 07:18:38 PM ---2/ Put a <br /> between "Last post by xxxxxxx" and "in Blah blah Topic" and the date/time.
--- End quote ---
Done.
--- Quote from: antechinus on January 25, 2009, 07:18:38 PM ---Last post by Kahnefan
in Child board Topic
January 15th, 2009, 2.02.34PM
You wouldn't need the "on" for the last line and losing it would look cleaner.
--- End quote ---
Done. I also removed the "in" that applies to "in {topic}"
--- Quote from: antechinus on January 25, 2009, 07:18:38 PM ---3/ Put line breaks between "Child Boards" and the board names themselves. That way they'll stack up cleanly in the narrow columns.
--- End quote ---
I can not figure this out for some reason. Maybe because I've been messing with this all day. See code below if you can let me know where the <br /> would go.
--- Code: ---// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{ echo '<hr />';
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';
// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';sesc=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';
$children[] = $child['new'] ? '' . $child['link'] . '' : $child['link'];
}
echo '
', $txt['parent_boards'], ': ', implode(', ', $children), '';
}
--- End code ---
Antechinus:
You need one for sure here:
--- Code: --- echo '
', $txt['parent_boards'], ':<br /> ', implode(', ', $children), '';
}
--- End code ---
and t'other ones here I think:
--- Code: ---$children[] = $child['new'] ? '' . $child['link'] . '<br />' : ''. $child['link'].'<br />';
--- End code ---
Try that last line as is.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version