Support » Plugin: W3 Total Cache » Asking user to login in clicking the cdn s3 link in the page

  • I am using total cache in my wordpress site. When files get attached to the post, it is getting uploaded to s3 cdn and the links in the page gets updated. My requirement is when user clicks on certain links having specific extensions, I want to ask them to login (If not already logged in). Once logged in, he can access the file. How is this possible?

Viewing 1 replies (of 1 total)
  • prior to using w3tc did your site upload files to s3 cdn and asked users to login before accessing such files?

    Not sure how familiar u are with php but i would guess then you could do ab ob_buffer(..) after checking if the user is logged in and modify any http(s) links it finds (regex it) after w3tc does its own ob_buffer stuff, and replace them with a link to the login page. But if the user is logged in then this condition wont process and it will continue to leave the w3tc modifications — showing the s3 links instead.

    It wouldnt be that hard to do in say your theme’s functions.php file.

Viewing 1 replies (of 1 total)
  • The topic ‘Asking user to login in clicking the cdn s3 link in the page’ is closed to new replies.