Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
GGANG
Experienced
Topic Author
Posts: 122
Joined: 02 Feb 2012, 11:01

CloudFlare Flush All Pages

06 Mar 2016, 13:08

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; }
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: CloudFlare Flush All Pages

06 Mar 2016, 13:57

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 ...
 
User avatar
GGANG
Experienced
Topic Author
Posts: 122
Joined: 02 Feb 2012, 11:01

Re: CloudFlare Flush All Pages

08 Mar 2016, 12:19

Its work. Thank you very much. :D
Attachments
flush-all-page.jpg
flush-all-page.jpg (26.17 KiB) Viewed 3096 times