Not Solved How to change css stylesheet version?
Not Solved
This is how I managed to solve this issue, solution is a little bit quirky, but should work fine.
Also it adds a possibility to edit your global.css on server side via your favorite editor.

1. Open your theme in ACP and use "Edit theme" in front of your theme name.
2. It'll open "Edit stylesheets", select global.css with "Properties" option.
3. Select "Attached to" with "Specific file".
4. As specific file name use "nonexistent.file".
5. ???
6. Profit.

Now you can copy global.css from /cache/themes/yourtheme/global.css to your server www dir - /global.css and then add a reference to this file to your headerinclude template, anyway, global.css should be attached to all pages, (better place it before "{$stylesheets}" line) —
<link type="text/css" rel="stylesheet" href="{$mybb->asset_url}/global.css?ver=0666" />
And now you're able to change this css file versions in headerinclude template. It's really missing feature in MyBB, because if you're a cloudlfare user, this feature should be available, at least for main css file. And in this case - "$stylesheets" feature (and in many others, like "template editor" notepad.exe "feature"...) MyBB isn't helping to user, more over, its functionality harms and interferes, when compared with more traditional forum CMS-s.
[Image: YZ84XVq.gif]

Messages In This Thread
RE: How to change css stylesheet version? - by ILUXA - 2020-05-13, 10:25 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)