Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

December 03, 2022, 09:15:27 PM

Login with username, password and session length
Members
  • Total Members: 3853
  • Latest: tty456
Stats
  • Total Posts: 193625
  • Total Topics: 21107
  • Online today: 118
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 0
Guests: 51
Total: 51

Author Topic: Beschreibung f. Linke o. Rechte Spalte ein- oder ausblenden anpassen  (Read 3122 times)

0 Members and 1 Guest are viewing this topic.

Mario472

  • Guest
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:
Code: [Select]
$txt['upshrink_description'] = 'Ein- oder Ausklappen der Kopfzeile';
Füge danach ein: | Add after:
Code: [Select]
// 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:
Code: [Select]
$txt['upshrink_description'] = 'Shrink or expand the header.';
Füge danach ein: | Add after:
Code: [Select]
// 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:
Code: [Select]
// 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:
Code: [Select]
// 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]
« Last Edit: February 15, 2006, 02:29:23 PM by Mario472 »