SMF Template wird mit dem IE abgeschnitten!

Moderator: Sisko1990

Forum rules
Forumregeln
Locked
User avatar
BigJens
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Sep 22, 2005 10:23 pm
Location: Germany
Contact:

SMF Template wird mit dem IE abgeschnitten!

Post by BigJens » Fri Mar 24, 2006 11:41 am

Nachdem ich nun das SMF Theme getauscht habe, wird es wenigstens etwas besser angezeigt. Allerdings schneidet der IE den rechten Rand des Forums ab. Ich glaube ich habe mal gelesen, daß man das fixen kann - weiss aber leider nicht mehr wie  :'(
Kann mir Jemand helfen?

Forum:
http://www.slowpitch.de/component/optio ... Itemid,23/

Joomla 1.08
SMF 1.1 RC2
SMF Bridge von Joomlahacks

Gruß Jens

User avatar
Predator
Joomla! Ace
Joomla! Ace
Posts: 1827
Joined: Wed Aug 17, 2005 10:12 pm
Location: Germany-Bad Abbach
Contact:

Re: SMF Template wird mit dem IE abgeschnitten!

Post by Predator » Mon Mar 27, 2006 11:16 am

BigJens wrote: Nachdem ich nun das SMF Theme getauscht habe, wird es wenigstens etwas besser angezeigt. Allerdings schneidet der IE den rechten Rand des Forums ab. Ich glaube ich habe mal gelesen, daß man das fixen kann - weiss aber leider nicht mehr wie  :'(
Kann mir Jemand helfen?

Forum:
http://www.slowpitch.de/component/optio ... Itemid,23/

Joomla 1.08
SMF 1.1 RC2
SMF Bridge von Joomlahacks

Gruß Jens
Soweit ich sehe fehlt bei Dir ein in dem Forum Kopf

Beiträge  Themen  Letzter Beitrag

In der Datei /Themes/deintheme/BoardIndex.template.php suche

Code: Select all

// Show the "Board name      Topics  Posts    Last Post" header.
	echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
	<tr class="titlebg">
		<td width="6%" align="center">', $txt[330], '</td>
		<td width="6%" align="center">', $txt[21], '</td>
		<td width="22%" align="center">', $txt[22], '</td>
	</tr>';
und ändere das in:

Code: Select all

// Show the "Board name      Topics  Posts    Last Post" header.
	echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor">
	<tr class="titlebg">
		<td colspan="2">', $txt[20], '</td>
		<td width="6%" align="center">', $txt[330], '</td>
		<td width="6%" align="center">', $txt[21], '</td>
		<td width="22%" align="center">', $txt[22], '</td>
	</tr>';
Wenn das nicht hilft poste bitte mal die obere hälfte deiner Datei.
Last edited by Predator on Mon Mar 27, 2006 11:20 am, edited 1 time in total.
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D

User avatar
BigJens
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Sep 22, 2005 10:23 pm
Location: Germany
Contact:

Re: SMF Template wird mit dem IE abgeschnitten!

Post by BigJens » Mon Mar 27, 2006 8:59 pm

Die Zeile gibt es - glaube ich - bei mir nicht. Ich poste mal die ersten 2 Drittel meines BoardIndexes. Eventuell habe ich ja was übersehen??

Code: Select all

<?php
// Version: 1.1 RC2; BoardIndex

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

        // Show some statistics next to the link tree if SP1 info is off.
        echo '
<table width="100%" cellpadding="5" cellspacing="0">
        <tr>
                <td valign="bottom">', theme_linktree(), '</td>
                <td align="right">';
        if (!$settings['show_sp1_info'])
                echo '
			', $txt[19], ': ', $context['common_stats']['total_members'], '  •  ', $txt[95], ': ', $context['common_stats']['total_posts'], '  •  ', $txt[64], ': ', $context['common_stats']['total_topics'], '
			', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
        echo '
                </td>
        </tr>
</table>';

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo '
<table cellpadding="0" cellspacing="0" style="width: 100%; padding-left: 5px; margin-bottom: 5px; padding-right: 5px; border-top: solid 1px #909090;border-bottom: solid 1px #909090; background-color: #ffffff;" valign="middle"><tr><td>

				<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
				<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
					// The fading delay (in ms.)
					var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
					// Fade from... what text color?  To which background color?
					var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
					// Surround each item with... anything special?
					var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

					var foreColor, backEl, backColor;

					if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
					{
						foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
						smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

						backEl = document.getElementById(\'smfFadeScroller\');
						while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
							backEl = backEl.parentNode;

						backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
						smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
					}
					else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
					{
						foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
						smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

						backEl = document.getElementById(\'smfFadeScroller\');
						while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
							backEl = backEl.parentNode;

						backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
						smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
					}

					// List all the lines of the news for display.
					var smfFadeContent = new Array(
						"', implode('",
						"', $context['fader_news_lines']), '"
					);
				// ]]></script>
				<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
 </td></tr></table>';
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        foreach ($context['categories'] as $category)
        {
                echo '
<div style="border-top: solid 1px #707070; border-bottom: solid 1px #707070;"><table bgcolor="#ffffff" 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="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr class="windowbg2">
		<td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

				echo '</a></td>
                <td align="left">
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // 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)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="small2text" valign="middle" width="4%" align="center">
                 ', $board['posts'], '</td><td class="small2text" valign="middle" width="4%" align="center">
                        ', $board['topics'],'</td><td class="small2text" valign="middle" width="22%">';

                 if (!empty($board['last_post']['id']))
                                        echo '
                        <a href="', $board['last_post']['href'], '"><img alt="go" src="', $settings['images_url'], '/newmark.gif" align="right" hspace="3" border="0" /></a>
                        ', $board['last_post']['time'], '
                        ', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'],
                        ' ' ;





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

                echo '
</table></div>
<br />';
        }

        if ($context['user']['is_logged'])
        {
                echo '
<div  style="border-top: solid 1px #707070; border-bottom: solid 1px #707070;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr class="titlebg">
                <td align="left" class="smalltext">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" border="0" align="absmiddle" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt="" border="0" align="absmiddle" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
                <td align="right" class="normaltext">';
                // Show the mark all as read button?
                if ($settings['show_mark_read'])
                        echo '
                        <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '"><b>' ,$txt[452], '</b> <img align="absmiddle" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" /></a>';
                echo '
                </td>
        </tr>
</table></div>';
        }

        // Here's where the "Info Center" starts...
        echo '
<br />
<div  style="border-top: solid 1px #707070; "><table bgcolor="#ffffff" border="0" width="100%" cellspacing="1" cellpadding="4">
        <tr class="titlebg">
                <td align="center" colspan="2">', $txt[685], '</td>
        </tr>';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }

User avatar
BigJens
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Sep 22, 2005 10:23 pm
Location: Germany
Contact:

Re: SMF Template wird mit dem IE abgeschnitten!

Post by BigJens » Wed Mar 29, 2006 9:57 pm

Weiss noch Jemand was hierzu?
???

User avatar
Predator
Joomla! Ace
Joomla! Ace
Posts: 1827
Joined: Wed Aug 17, 2005 10:12 pm
Location: Germany-Bad Abbach
Contact:

Re: SMF Template wird mit dem IE abgeschnitten!

Post by Predator » Wed Mar 29, 2006 10:08 pm

Upps übersehen:

Code: Select all

<?php
// Version: 1.1 RC2; BoardIndex

function template_main()
{
        global $context, $settings, $options, $txt, $scripturl, $modSettings;

        // Show some statistics next to the link tree if SP1 info is off.
        echo '
<table width="100%" cellpadding="5" cellspacing="0">
        <tr>
                <td valign="bottom">', theme_linktree(), '</td>
                <td align="right">';
        if (!$settings['show_sp1_info'])
                echo '
			', $txt[19], ': ', $context['common_stats']['total_members'], '  •  ', $txt[95], ': ', $context['common_stats']['total_posts'], '  •  ', $txt[64], ': ', $context['common_stats']['total_topics'], '
			', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
        echo '
                </td>
        </tr>
</table>';

        // Show the news fader?  (assuming there are things to show...)
        if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo '
<table cellpadding="0" cellspacing="0" style="width: 100%; padding-left: 5px; margin-bottom: 5px; padding-right: 5px; border-top: solid 1px #909090;border-bottom: solid 1px #909090; background-color: #ffffff;" valign="middle"><tr><td>

				<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>', $context['news_lines'][0], '</b></div>
				<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
					// The fading delay (in ms.)
					var smfFadeDelay = ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], ';
					// Fade from... what text color?  To which background color?
					var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
					// Surround each item with... anything special?
					var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

					var foreColor, backEl, backColor;

					if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
					{
						foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
						smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

						backEl = document.getElementById(\'smfFadeScroller\');
						while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
							backEl = backEl.parentNode;

						backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
						smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
					}
					else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
					{
						foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
						smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

						backEl = document.getElementById(\'smfFadeScroller\');
						while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
							backEl = backEl.parentNode;

						backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
						smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
					}

					// List all the lines of the news for display.
					var smfFadeContent = new Array(
						"', implode('",
						"', $context['fader_news_lines']), '"
					);
				// ]]></script>
				<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
 </td></tr></table>';
        }

        /* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        foreach ($context['categories'] as $category)
        {
                echo '
<div style="border-top: solid 1px #707070; border-bottom: solid 1px #707070;"><table bgcolor="#ffffff" border="0" width="100%" cellspacing="1" cellpadding="5">
        <tr>
                <td colspan="3" 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="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
        </tr>';

                // Assuming the category hasn't been collapsed...
                if (!$category['is_collapsed'])
                {
                        /* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        foreach ($category['boards'] as $board)
                        {
                                echo '
        <tr class="windowbg2">
		<td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

                                // If the board is new, show a strong indicator.
                                if ($board['new'])
                                        echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // This board doesn't have new posts, but its children do.
                                elseif ($board['children_new'])
                                        echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
                                // No new posts at all!  The agony!!
                                else
                                        echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';

				echo '</a></td>
                <td align="left">
                        <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
                        ', $board['description'];

                                // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                if (!empty($board['moderators']))
                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

                                // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                if (!empty($board['children']))
                                {
                                        // 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)
                                        {
                                                $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                                                $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
                                        }

                                        echo '
                        <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
                                }

                                // Show some basic information about the number of posts, etc.
                                echo '
                </td>
                <td class="small2text" valign="middle" width="4%" align="center">
                 ', $board['posts'], '</td><td class="small2text" valign="middle" width="4%" align="center">
                        ', $board['topics'],'</td><td class="small2text" valign="middle" width="22%">';

                 if (!empty($board['last_post']['id']))
                                        echo '
                        <a href="', $board['last_post']['href'], '"><img alt="go" src="', $settings['images_url'], '/newmark.gif" align="right" hspace="3" border="0" /></a>
                        ', $board['last_post']['time'], '
                        ', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'],
                        ' ' ;





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

                echo '
</table></div>
<br />';
        }

        if ($context['user']['is_logged'])
        {
                echo '
<div  style="border-top: solid 1px #707070; border-bottom: solid 1px #707070;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr class="titlebg">
                <td align="left" class="smalltext">
                        <img src="' . $settings['images_url'] . '/new_some.gif" alt="" border="0" align="absmiddle" /> ', $txt[333], '
                        <img src="' . $settings['images_url'] . '/new_none.gif" alt="" border="0" align="absmiddle" style="margin-left: 4ex;" /> ', $txt[334], '
                </td>
                <td align="right" class="normaltext">';
                // Show the mark all as read button?
                if ($settings['show_mark_read'])
                        echo '
                        <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '"><b>' ,$txt[452], '</b> <img align="absmiddle" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" /></a>';
                echo '
                </td>
        </tr>
</table></div>';
        }

        // Here's where the "Info Center" starts...
        echo '
<br />
<div  style="border-top: solid 1px #707070; "><table bgcolor="#ffffff" border="0" width="100%" cellspacing="1" cellpadding="4">
        <tr class="titlebg">
                <td align="center" colspan="2">', $txt[685], '</td>
        </tr>';

        // This is the "Recent Posts" bar.
        if (!empty($settings['number_recent_posts']))
        {
                echo '
        <tr>
                <td class="catbg" colspan="2">', $txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="', $scripturl, '?action=recent">
                                <img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">';

                // Only show one post.
                if ($settings['number_recent_posts'] == 1)
                {
                        // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        echo '
                        <b><a href="', $scripturl, '?action=recent">', $txt[214], '</a></b>
                        <div class="smalltext">
                                ', $txt[234], ' "', $context['latest_post']['link'], '" ', $txt[235], ' (', $context['latest_post']['time'], ')<br />
                        </div>';
                }
                // Show lots of posts.
                elseif (!empty($context['latest_posts']))
                {
                        echo '
                        <table width="100%" border="0">';
                        /* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        foreach ($context['latest_posts'] as $post)
                                echo '
                                <tr>
                                        <td align="right" valign="top" nowrap="nowrap">[', $post['board']['link'], ']</td>
                                        <td valign="top">', $post['link'], ' ', $txt[525], ' ', $post['poster']['link'], '</td>
                                        <td align="right" valign="top" nowrap="nowrap">', $post['time'], '</td>
                                </tr>';
                        echo '
                        </table>';
                }
                echo '
                </td>
        </tr>';
        }
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D


Locked

Return to “Template, CSS und Designfragen 1.0.x”