Snippet-Title: Colorized Announcements and Stickys
Snippet-Version: 0.0.1
Snippet-Autor: 4seven
Snippet-Beschreibung: Dieser Mod ermöglicht verschiedene hintergrundfarben von bekanntmachungen, globalen bekanntmachungen und wichtigen themen (stickys)
phpBB-Version: phpBB 3.0.x
phpBB-Sprachen: mutlilingual
phpBB-Styles: alle Styles, die auf prosilver basieren
Features:
- gestaltet bekanntmachungen, globalen bekanntmachungen und wichtigen themen auffälliger
Demo: viewforum.php?f=3


Anleitung:
öffne
search.php
- Code: Select all
$template->assign_block_vars('searchresults', array_merge($tpl_ary, array(
dahinter füge ein
- Code: Select all
'S_POST_ANNOUNCE' => ($row['topic_type'] == POST_ANNOUNCE) ? true : false,
'S_POST_GLOBAL' => ($row['topic_type'] == POST_GLOBAL) ? true : false,
'S_POST_STICKY' => ($row['topic_type'] == POST_STICKY) ? true : false,
öffne styles/prosilver/template/viewforum_body.html
finde
- Code: Select all
<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF -->
ersetze mit
- Code: Select all
<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> globalannounce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF -->
öffne styles/prosilver/template/ucp_main_front.html
finde
- Code: Select all
<li class="row<!-- IF topicrow.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
ersetze mit
- Code: Select all
<!-- <li class="row<!-- IF topicrow.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF -->"> -->
<li class="row globalannounce">
öffne
styles/prosilver/template/search_results.html
finde
- Code: Select all
<!-- BEGIN searchresults -->
<li class="row<!-- IF searchresults.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF -->">
ersetze mit
- Code: Select all
<!-- BEGIN searchresults -->
<li class="row<!-- IF searchresults.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF searchresults.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF searchresults.S_POST_GLOBAL --> globalannounce<!-- ENDIF --><!-- IF searchresults.S_POST_STICKY --> sticky<!-- ENDIF -->">
öffne styles/prosilver/theme/colours.css
finde
- Code: Select all
.sticky, .announce {
/* you can add a background for stickies and announcements*/
}
ersetze mit
- Code: Select all
.sticky {
background-color: yellow;
}
.announce {
background-color: blue;
}
.globalannounce {
background-color: red;
}
yellow, blue und red nach belieben ersetzen (#3GB53G, yellow, darkorange etc.)
alle board und browser-caches leeren
enjoy