Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Insert php function into custom.css

edited November 2011 in Vanilla 2.0 - 2.8
Tried .htaccess handler
RemoveHandler .css AddType application/x-httpd-php .css
Result : css crash.

Tried to add to custom.css an additional type custom.css.php
and to change class.controller $this->AddCssFile('custom.css'); to it.
Result : css crash.

Teach me please .

I need a function to insert constant values into css.

Best Answer

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    This is really outside the scope of support for Vanilla.

Answers

  • Options
    edited November 2011
    ыыыы
    $Sender->Head->AddString('<link rel="stylesheet" type="text/css" href="/forum/themes/MyTheme/design/custom2.css" media="all" />');
  • Options
    custom2.php

    php makes css content damaged
  • Options
    edited November 2011
    <?php header('Content-type: text/css'); ?>
  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Answer ✓
    This is really outside the scope of support for Vanilla.
Sign In or Register to comment.