Moin
Integrate LightboxFeatureso Integrates Slimbox to work with
- Attachments
- Non-Linked Images
- Text-based Links to images
o Prevents Slimbox from affecting images linked to page/urls
o Fixes Imageshack.us & Photobucket links to work with Slimbox
Installation1. Obige Modifikation über den Paket-Manager installieren.
2. Erforderliche Anpassungen für das mx-port Template:
In Datei modules/Forum/smf/Themes/mx-port/index.template.phpSuche nach:
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?fin11" media="print" />';
Dahinter einfügen:
// Include the Lightbox Scripts (except for the stats page and SMF Garage)
if($context['current_action'] != 'stats' && $context['current_action'] != 'garage')
echo '
<!-- Integrate Lightbox Mod: Start -->
<!-- MooTools Includes -->
<script type="text/javascript" src="', $settings['default_theme_url'], '/mootools1.11.js"></script>
<!-- Lightbox Includes -->
<script type="text/javascript" src="', $settings['default_theme_url'], '/slimbox.js"></script>
<link rel="stylesheet" href="', $settings['default_theme_url'], '/slimbox.css" type="text/css" media="screen" />
<!-- Integrate Lightbox Mod: End -->';
In Datei modules/Forum/smf/Themes/mx-port/Display.template.phpSuche nach:
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
Ersetze mit:
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" rel="lightbox[smf]"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
zum Testen (inkl. PREV u. NEXT):
