Simple Machines Community Forum

SMF Support => Hilfe zu SMF (German) => Language Specific Support => Grafiken & Templates => Topic started by: Dom on January 05, 2007, 04:34:08 PM

Title: ice Stars En - es fehlt ein wichtiger Link!
Post by: Dom on January 05, 2007, 04:34:08 PM
Hi Leute,
ich habe zur Zeit das ice Stars En, mir ist auf gefallen, daß ein sehr wichtiger Link da fehlt.
Und zwar, daß man aus einen Tread heraus kommt, ohne gleich das Boad wechsel muß.
Ich meine die Zeile siehe Bild.

Ich würde mich freuen, wenn mir einer den Code + Postion, der sicherlich in die Bordindex.template.php rein kommt, posten würde.

mfg Dom :)
Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Jorin on January 06, 2007, 01:56:50 PM
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context, $settings, $options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}


Steht normalerweise in der index.template.php, direkt unter:

</body></html>';
}


Die Position dürfte aber egal sein, da ja hier die Funktion beschrieben wird. Der Link zu dieser muss halt im Theme vorhanden sein.
Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Dom on January 06, 2007, 03:09:35 PM
Hi Nehcregit,
ich habe gerade in der index.template.php nach geschaut, dein geposteter Code ist drin.
Es fehlen aber im Template die dazugehörigen Links.

Könntest du sie mal posten?
mfg Dom :)
Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Jorin on January 07, 2007, 12:05:03 PM
Bei mir im Default-Theme direkt die ersten Zeilen der BoardIndex.template.php:

<?php
// Version: 1.1 RC3; 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="0" 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'], ' &nbsp;&#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; '$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>'
;

Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Dom on January 07, 2007, 12:26:49 PM
Hi nehcregit,
danke für die schnelle Antwort.
solange wie man auf Board-ebene ist, geht das, aber wenn man dein Thema liest, ist dein geposter Link schon wieder nicht mehr da. Und das gleiche ist wieder wie vorher.

mfg Dom :)
Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Jorin on January 07, 2007, 02:22:27 PM
Hm, sorry... Habe die Post.template.php vergessen:

// End of the javascript, start the form and display the link tree.
echo '
// ]]></script>

<form action="', $scripturl, '?action=', $context['destination'], ';', empty($context['current_board']) ? '' : 'board=' . $context['current_board'], '" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);saveEntities();" enctype="multipart/form-data" style="margin: 0;">
<table width="100%" align="center" cellpadding="0" cellspacing="3">
<tr>
<td valign="bottom" colspan="2">
', theme_linktree(), '
</td>
</tr>
</table>';

// If the user wants to see how their message looks - the preview table is where it's at!
Title: Re: ice Stars En - es fehlt ein wichtiger Link!
Post by: Dom on January 07, 2007, 04:40:52 PM
Hi nehcregit,
komisch, keine Änderung.
Erst einmal war in dem Theme keine post.template.php Datei drin, dann habe ich die von Deflaut rüber kopiert.
Probiert, und kein Ergbnis zu sehen.
Igentwie komisch, oder?
Browsercache gelöscht, bei IE und FF gleiches Ergebnis.
Auch unterschiedliche Bejutzergruppe genommen, alles daß gleich Ergbins

mfg Dom :)