TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

June 01, 2023, 03:17:09 AM

Login with username, password and session length
Members
  • Total Members: 3,864
  • Latest: Joonoz
Stats
  • Total Posts: 194,365
  • Total Topics: 21,157
  • Online today: 114
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 114
Total: 114

Beschreibung f. Linke o. Rechte Spalte ein- oder ausblenden anpassen

Started by Mario472, February 15, 2006, 09:25:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mario472

Ich habe im default-Theme* die Beschreibungen bzw. ALT-Texte für das Ein- und Ausblenden der Spalten links und rechts angepasst, so dass beim darüber fahren mit der Maus nicht mehr 'Ein- oder Ausklappen der Kopfzeile' angezeigt wird sondern 'Ein- oder Ausblenden der linken [rechten] Spalte':

Datei: | File: Themes/default/languages/index.german.php:

Suche nach: | Search for:$txt['upshrink_description'] = 'Ein- oder Ausklappen der Kopfzeile';

Füge danach ein: | Add after:// Hide or Show Left- & Rightbar in TinyPortal - Added by Mario472 - START
$txt['hide_leftbar_description'] = 'Linke Spalte ein- oder ausblenden';
$txt['hide_rightbar_description'] = 'Rechte Spalte ein- oder ausblenden';
// Hide or Show Left- & Rightbar in TinyPortal - Added by Mario472 - END



Datei: | File: Themes/default/languages/index.english.php:

Suche nach: | Search for:$txt['upshrink_description'] = 'Shrink or expand the header.';

Füge danach ein: | Add after:// Hide or Show Left- & Rightbar in TinyPortal - Added by Mario472 - START
$txt['hide_leftbar_description'] = 'Hide or Show Leftbar';
$txt['hide_rightbar_description'] = 'Hide or Show Rightbar';
// Hide or Show Left- & Rightbar in TinyPortal - Added by Mario472 - END



Datei | File: Themes/default/index.template.php:

Suche nach: | Search for:// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end


Ersetze mit: | Replace with:// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['hide_leftbar_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['hide_rightbar_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" /></td>';
// TinyPortal end


*Zu beachten ist, dass jedes Theme eine eigene index.[language] haben kann. (<--- Danke Feline)

Vielleicht kann's ja jemand brauchen. ;)

[EDIT] Mal wieder den Link vergessen, live zu sehen gibt's das Ganze natürlich HIER[/EDIT]