ice Stars En - es fehlt ein wichtiger Link!

Started by Dom, January 05, 2007, 04:34:08 PM

Previous topic - Next topic

Dom

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 :)
Ich benutze SMF 1.1.8  mit MKPortal M1.1.2b zusammen.

www.soessen.de.vu

Jorin

// 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.

Dom

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 :)
Ich benutze SMF 1.1.8  mit MKPortal M1.1.2b zusammen.

www.soessen.de.vu

Jorin

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>'
;


Dom

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 :)
Ich benutze SMF 1.1.8  mit MKPortal M1.1.2b zusammen.

www.soessen.de.vu

Jorin

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!

Dom

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 :)
Ich benutze SMF 1.1.8  mit MKPortal M1.1.2b zusammen.

www.soessen.de.vu

Advertisement: