• Welcome to Simple Machines Community Forum. Please login or sign up.

[Theme] Apollo (SMF v1.0.5 - SMF v1.1RC2)

Started by bloc, July 05, 2004, 06:45:55 PM

Previous topic - Next topic

Daniel D.



trenchteam

Great work. GOod to know that there a people like you willing to put in work to benefit everyone!  Thanks again! :D

HEB XI 1

Bloc - could you tell me what code to change to put the forum date and time back into the user info box?  Many of my users have been missing that small detail but I'm not sure where to put it :)

Thanks!

bloc

Sure thing. Find this code in index.template.php:

echo '
                                               </td></tr></table>';

        echo '</div>'.$botbox.'</td><td colspan="2" width="50%" align="right" valign="top">' , isset($settings['userlogo']) ? '<a href=""><img src="'.$settings['userlogo'].'" border="0" alt="logo" /></a>' : '' , '</td></tr></table>';

        // news
            echo '
                   </div><div style="margin-top: 5px; padding: 0px; margin-left: 38px; margin-right: 38px; margin-bottom: 0px; text-align: center;">
                 '.$topbox.'<div style="border: solid 1px #c0c0c0; background: #edeeF8; padding: 3px;">'. $context['random_news_line'].'</div>'.$botbox.'</div><br />';

                // Show the menu here, according to the menu sub template.


And on the first line there just change it to:

        echo '<br />'.$context['current_time'].'
                                                </td></tr></table>';


This way it will show date/time for both members and guests.

Come to think of it, I think I will stick with that change - its nice to have the date actually. :)

HEB XI 1


HEB XI 1

hehe - don't mean to be a troll, but a user just pointed this out to me:

Quoteare you aware that on the main index page there are no labels for the numbers to the right of the forum folder?  ie no post/view count labels on the main index

Main link in case it's just my board:  http://www.raven-flight.com/community

I hadn't noticed it personally, and actually kinda like it like this board: http://www.praetorian-guard.com/forum

Can ya point me in the right direction?


bloc

hm. Did not notice that. Find the BoardIndex.template.php and look for this:

        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
        <tr>
                <td colspan="5" class="catbg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
        </tr>';

                // Assuming the category hasn't been collapsed...


and replace with this:

        foreach ($context['categories'] as $category)
        {
                echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
        <tr>
                <td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';

                // If this category even can collapse, show a link to collapse it.
                if ($category['can_collapse'])
                        echo '
                        <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

                echo '
                        ', $category['link'], '
                </td>
                <td width="6%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[330], '</td>
                <td width="6%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[21], '</td>
                <td width="22%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...


The changes is in bold text. This will display posts/threads etc. on the same line as the category...a quick fix, but hopefully usable.

And this is not troll-material , rest assured..  ;D

bloc

The theme is updated for use with SMF RC2 + some minor adjustments/enhancements.
See first post for details.

Ride

I think topics and posts got reversed.  Look what happened after I installed the theme.... (great theme otherwise though!!!)


Ride

Fixed it myself in boardindex.template.php under apollo theme

Find this:
                </td>
                <td width="6%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[330], '</td>
                <td width="6%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[21], '</td>
                <td width="22%" class="catbg', $category['new'] ? '2' : '', '" align="center">', $txt[22], '</td>        </tr>';



Now just swap $txt[330] and $txt[21] and you'll be all set.

bloc

Thank you! ...I should have seen that (blush)...updated now though! :)

HEB XI 1

one other small thing ...

Could you give us the code to add to put the inline links and the previous/next buttons at the bottom of the message index?

I could likely find it if I searched around, but I don't want to mess anything up :D

bloc

Sure. :)

First, look for:


        // Finish off the form - again, if Quick Moderation is being done with checkboxes. (1)
        if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
                echo '
                        <input type="hidden" name="sc" value="' . $context['session_id'] . '" />
                </form>';

        echo '
                <table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
                        <tr>
                                <td align="left" class="catbg" width="100%" height="30">
                                        <table cellpadding="3" cellspacing="0" width="100%">
                                                <tr>
                                                        <td><a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], $modSettings['topbottomEnable'] ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : '', '</td>
                                                        <td align="right" nowrap="nowrap" style="font-size: smaller;">', theme_show_buttons(), '</td>
                                                </tr>
                                        </table>
                                </td>
                        </tr>
                </table>
                '.$botbox;



Then, just add this code right below:


        echo '
                <table width="100%" cellpadding="3" cellspacing="0">
                        <tr>
                                <td><a name="top" style="padding-left: 20px"></a>', theme_linktree(), '</td>';
        if (!empty($settings['display_who_viewing']))
        {
                echo '
                                <td class="smalltext" align="right" style="padding-right: 20px;">';
                if ($settings['display_who_viewing'] == 1)
                        echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
                else
                        echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . (empty($context['view_num_hidden']) || $context['can_moderate_forum'] ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
                echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '</td>';
        }
        echo '
                        </tr>
                </table>';



That should give you the inline links+guests/members viewing both on top and bottom of the messageindex. In fact - it looks really good so I am keeping it altogether. ;) Thanks for the suggestion.

Midgard

hi,

i create this 'gnome' buttons for my theme. and publishing here

may be use.

Administrator
Calendar
Chat
Community
Downloads
Home
Login
Logout
Memberlist
News
Polls
Profile
Register
Search
Stats

(Originates from MamboOpenSource, Non-copyrighted items.)

bloc

If anyone wants more buttons there is a button-generator for Apollo/Mercury(they use the same buttons) at http://www.vennekroken.net/bloc/apollo.php

Fizzy

"Reality is merely an illusion, albeit a very persistent one." - A.E.


ViSioNaRy

Man that is sweet! Ya have me wondering whats next.  :D
ViSioNaRy   ;D

Midgard

Quote from: Bloc on December 18, 2004, 12:25:51 PM
If anyone wants more buttons there is a button-generator for Apollo/Mercury(they use the same buttons) at http://www.vennekroken.net/bloc/apollo.php

Bloc, need a generator Sepia tones? Can you?

bloc

Not sure what you mean? sepia colored buttons for apollo?

Advertisement: