Eigene Farben bei den Gruppenrängen

  • HeyHo,


    kenne mich wirklich nicht gut mit CSS und so aus,

    aber was muss ich machen, damit ich bei WoltLab Suite eine eigene Farbe

    bei den Gruppenrängen nutzen kann?

    • Official Post

    Hallo,


    in der Administrationsoberfläche unter Anpassung > Stilunabhängiges CSS und SCSS kann eigener CSS-Code hinterlegt werden. Z.B. für eine rote Hintergrundfarbe:

    CSS
    .benutzerrang1 {
        background-color: red;
    }


    Beim Erstellen eines Benutzerrangs kann dann benutzerrang1 als CSS-Klasse eingetragen werden.

  • Das habe ich soweit verstanden. Aber wie trennt man das ganze?

    Sobald ich das mehr als zwei mal in die CSS-Klasse eingetragen habe, kommt ein Fehler, sobald ich die Administrationsoberfläche verlassen habe.

  • Ein Fehler ist aufgetreten

    Interner Fehlercode: 7a9621cf5c1f2dc293e67d49deed445e344de167


    Was ist passiert?

    Leider ist es bei der Verarbeitung zu einem Fehler gekommen und die Ausführung wurde abgebrochen. Falls möglich, leiten Sie bitte den oben stehenden Fehlercode an den Administrator weiter.


    Administratoren können die vollständige Fehlermeldung mit Hilfe dieses Codes in der Administrationsoberfläche unter „Protokoll » Fehler“ einsehen. Zusätzlich wurden die Informationen in die Protokolldatei */log/2019-05-07.txt geschrieben und können beispielsweise mit Hilfe eines FTP-Programms abgerufen werden.


    Hinweis: Der Fehlercode wird zufällig generiert, erlaubt keinen Rückschluss auf die Ursache und ist daher für Dritte nutzlos.


    System Information

    • PHP Version:

      7.2.17

    • WoltLab Suite Core:

      3.1.8 pl 1

    • Peak Memory Usage:

      41.509/128 MiB

    • Request URI:

      /

    • Referrer:

    • User Agent:

      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0


    Original Error

    • Error Type:

      Exception

    • Error Message:

      unclosed block: failed at `` /var/www/html/style/ui/zzz_wsc_style_global_values.scss on line 28

    • File:

      */lib/system/style/scssphp/src/Parser.php (2142)

    • Stack Trace:

      • #0 */lib/system/style/scssphp/src/Parser.php (149):
      • Leafo\ScssPhp\Parser->throwParseError('unclosed block')
      • #1 */lib/system/style/scssphp/src/Compiler.php (2702):
      • Leafo\ScssPhp\Parser->parse('/* DO NOT EDIT THIS FILE! dynamic global SCSS values, generated at Tue, 07 May 2019 16:01:29 +0000 */ .badge { &.moderator { background-color: #ff3333; color: #ffffff; } } .badge { &.supporter { background-color: #0066ff; color: #ffffff; } } .badge { &.developer { background-color: #00ffff; color: #ffffff; .badge { &.admin { background-color: #cc0000; color: #ffffff;')
      • #2 */lib/system/style/scssphp/src/Compiler.php (984):
      • Leafo\ScssPhp\Compiler->importFile('*/style/ui/zzz_wsc_style_global_values.scss', stdClass)
      • #3 */lib/system/style/scssphp/src/Compiler.php (1033):
      • Leafo\ScssPhp\Compiler->compileImport([ 0 => , 1 => , 2 => ], stdClass)
      • #4 */lib/system/style/scssphp/src/Compiler.php (828):
      • Leafo\ScssPhp\Compiler->compileChild([ 0 => , 1 => , -1 => ], stdClass)
      • #5 */lib/system/style/scssphp/src/Compiler.php (249):
      • Leafo\ScssPhp\Compiler->compileChildren([ 90 items ], stdClass)
      • #6 */lib/system/style/scssphp/src/Compiler.php (166):
      • Leafo\ScssPhp\Compiler->compileRoot(stdClass)
      • #7 */lib/system/style/StyleCompiler.class.php (357):
      • Leafo\ScssPhp\Compiler->compile('@import "style/bootstrap/reset.scss"; @import "style/bootstrap/mixin.scss"; @import "style/bootstrap/mixin/apiVersion.scss"; @import "style/bootstrap/mixin/box.scss"; @import "style/bootstrap/mixin/dropdownMenu.scss"; @import "style/bootstrap/mixin/font.scss"; @import "style/bootstrap/mixin/hacks.scss"; @import "style/bootstrap/mixin/input.scss"; @import "style/bootstrap/mixin/list.scss"; @import "style/bootstrap/mixin/mediaQuery.scss"; @import "style/bbcode/code.scss"; @import "style/bbcode/inlineCode.scss"; @import "style/bbcode/media.scss"; @import "style/bbcode/quote.scss"; @import "style/bbcode/spoiler.scss"; @import "style/bbcode/userMention.scss"; @import "style/bbcode/video.scss"; @import "style/element/dl.scss"; @import "style/element/list.scss"; @import "style/icon/icon.scss"; @import "style/layout/box.scss"; @import "style/layout/containerList.scss"; @import "style/layout/content.scss"; @import "style/layout/form.scss"; @import "style/layout/global.scss"; @import "style/layout/grid.scss"; @import "style/layout/layout.scss"; @import "style/layout/pageFooter.scss"; @import "style/layout/pageHeader.scss"; @import "style/layout/pageNavigation.scss"; @import "style/layout/print.scss"; @import "style/layout/sidebar.scss"; @import "style/ui/acl.scss"; @import "style/ui/adLocation.scss"; @import "style/ui/alert.scss"; @import "style/ui/article.scss"; @import "style/ui/attachment.scss"; @import "style/ui/avatar.scss"; @import "style/ui/badge.scss"; @import "style/ui/breadcrumb.scss"; @import "style/ui/button.scss"; @import "style/ui/buttonGroupFlexible.scss"; @import "style/ui/colorPicker.scss"; @import "style/ui/comment.scss"; @import "style/ui/datePicker.scss"; @import "style/ui/dialog.scss"; @import "style/ui/dropdown.scss"; @import "style/ui/dropdownInteractive.scss"; @import "style/ui/fontAwesome.scss"; @import "style/ui/googleMap.scss"; @import "style/ui/imageViewer.scss"; @import "style/ui/itemListInput.scss"; @import "style/ui/label.scss"; @import "style/ui/like.scss"; @import "style/ui/listSortable.scss"; @import "style/ui/listStructured.scss"; @import "style/ui/media.scss"; @import "style/ui/menuMobile.scss"; @import "style/ui/message.scss"; @import "style/ui/messageEditHistory.scss"; @import "style/ui/messageGroup.scss"; @import "style/ui/pageAction.scss"; @import "style/ui/pagination.scss"; @import "style/ui/perfectScrollbar.scss"; @import "style/ui/poll.scss"; @import "style/ui/popover.scss"; @import "style/ui/recaptcha.scss"; @import "style/ui/redactor.scss"; @import "style/ui/scrollableCheckboxList.scss"; @import "style/ui/search.scss"; @import "style/ui/shareButtons.scss"; @import "style/ui/slideshow.scss"; @import "style/ui/tabMenu.scss"; @import "style/ui/tabMenuMessage.scss"; @import "style/ui/tableSortable.scss"; @import "style/ui/tabularBox.scss"; @import "style/ui/tooltip.scss"; @import "style/ui/trophy.scss"; @import "style/ui/userIgnore.scss"; @import "style/ui/userLogin.scss"; @import "style/ui/userProfile.scss"; @import "style/ui/wsc31.scss"; @import "style/conversation.scss"; @import "forum/style/wbb.scss"; @import "blog/style/blog.scss"; @import "calendar/acp/style/calendar.scss"; @import "calendar/style/calendar.scss"; @import "filebase/style/filebase.scss"; @import "gallery/style/gallery.scss"; @import "style/ui/zzz_wsc_style_global_values.scss"; ')
      • #8 */lib/system/style/StyleCompiler.class.php (131):
      • wcf\system\style\StyleCompiler->compileStylesheet('*/style/style-1', [ 80 items ], [ 387 items ], '', Closure)
      • #9 */lib/system/style/StyleHandler.class.php (140):
      • wcf\system\style\StyleCompiler->compile(wcf\data\style\Style)
      • #10 */templates/compiled/0_wcf_1_cms.php (122):
      • wcf\system\style\StyleHandler->getStylesheet()
      • #11 */lib/system/template/TemplateEngine.class.php (321):
      • include('*/templates/compiled/0_wcf_1_cms.php')
      • #12 */lib/page/AbstractPage.class.php (323):
      • wcf\system\template\TemplateEngine->display('cms', 'wcf')
      • #13 */lib/page/AbstractPage.class.php (114):
      • wcf\page\AbstractPage->show()
      • #14 */lib/system/request/Request.class.php (83):
      • wcf\page\AbstractPage->__run()
      • #15 */lib/system/request/RequestHandler.class.php (96):
      • wcf\system\request\Request->execute()
      • #16 */index.php (9):
      • wcf\system\request\RequestHandler->handle('wcf')


    Final Error

    • Error Type:

      wcf\system\exception\SystemException

    • Error Message:

      Could not compile SCSS: unclosed block: failed at `` /var/www/html/style/ui/zzz_wsc_style_global_values.scss on line 28

    • File:

      */lib/system/style/StyleCompiler.class.php (360)

    • Stack Trace:

      • #0 */lib/system/style/StyleCompiler.class.php (131):
      • wcf\system\style\StyleCompiler->compileStylesheet('*/style/style-1', [ 80 items ], [ 387 items ], '', Closure)
      • #1 */lib/system/style/StyleHandler.class.php (140):
      • wcf\system\style\StyleCompiler->compile(wcf\data\style\Style)
      • #2 */templates/compiled/0_wcf_1_cms.php (122):
      • wcf\system\style\StyleHandler->getStylesheet()
      • #3 */lib/system/template/TemplateEngine.class.php (321):
      • include('*/templates/compiled/0_wcf_1_cms.php')
      • #4 */lib/page/AbstractPage.class.php (323):
      • wcf\system\template\TemplateEngine->display('cms', 'wcf')
      • #5 */lib/page/AbstractPage.class.php (114):
      • wcf\page\AbstractPage->show()
      • #6 */lib/system/request/Request.class.php (83):
      • wcf\page\AbstractPage->__run()
      • #7 */lib/system/request/RequestHandler.class.php (96):
      • wcf\system\request\Request->execute()
      • #8 */index.php (9):
      • wcf\system\request\RequestHandler->handle('wcf')
    • Official Post

    Falls sich das Problem auf eine Demo-Installation (https://www.woltlab.com/demo/) bezieht, bitte ich um Mitteilung auf welche Demo sich der Fehler bezieht. Dann schauen wir uns das Problem in der Demo direkt genauer an. (Auf die im Account Dyantic hinterlegte E-Mail-Adresse konnte ich keine Demo-Installation in unseren Daten finden.)


    Falls sich das Problem nicht auf eine Demo bezieht, müsste der Lizenzinhaber die Anfrage im Ticket-System und dort idealerweise Zugang zum Forum zur Verfügung stellen.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!