Page 1 of 1

CloudFlare Flush All Pages

Posted: 06 Mar 2016, 13:08
by GGANG
Hi Karl,

On my site, I have the additional users. I don't want to allow them to press "Flush All Pages" button.
I've tried to add the custom CSS code to hide. It's not work for me.
Code
li#cf_flush_all a {
  display: none !important; }

Re: CloudFlare Flush All Pages

Posted: 06 Mar 2016, 13:57
by mjau-mjau
That code should work, but where did you add it? To config/panel.css?

There is a bug in the "USER" templates that doesn't load the CSS for user-login. I have fixed it already for the pending new release, but you can hot-fix it yourself. Open /panel/filemanager_user/header.php, and find the following code on line 28:
Code
<?php /* <!-- load custom panel.css from parent of X3 installation if exists --> */
  if(file_exists('../../panel.css')) echo '<style><!--' . file_get_contents('../../panel.css') . '--></style>';
  if(file_exists('custom.css'))echo '<style><!--' . file_get_contents('custom.css') . '--></style>';
?>
Replace the code above with the following code:
Code
<?php
  /* <!-- load custom panel.css from parent of X3 installation if exists --> */
  if(file_exists('../../../panel.css')) echo '<style><!--' . file_get_contents('../../../panel.css') . '--></style>';
  /* <!-- load custom custom.css from panel folder if exists --> */
  if(file_exists('../custom.css'))echo '<style><!--' . file_get_contents('../custom.css') . '--></style>';
  /* <!-- load /config/panel.css if exists --> */
  if(file_exists('../../config/panel.css'))echo '<style><!--' . file_get_contents('../../config/panel.css') . '--></style>';
?>
Now you should be able to apply CSS also for USERS with /config/panel.css ...

Re: CloudFlare Flush All Pages

Posted: 08 Mar 2016, 12:19
by GGANG
Its work. Thank you very much. :D