Posts posted by odin777
-
-
-
-
-
-
-
-
Hi, i am trying to minify html output:
1. Create a PHP file (minify.php), with code:
<?php function sanitize_output($buffer) { $search = [ '/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s', '/<!--(.|\s)*?-->/' ]; $replace = [ '>', '<', '\\1', '' ]; $buffer = preg_replace($search, $replace, $buffer); return $buffer; } ob_start("sanitize_output"); ?>
2. in globaltemplate before <!DOCTYPE html>, i added:
{{require "minify.php";}}
But it's not working.....
Please how to Minify html output??
-
Thank you man, I tried
Not working {{$member = \IPS\Member::loggedIn();}} {{if app == 'landingpage'}} <script> jQuery(location).attr('href', 'http://localhost/test.com/forums/'); </script> {{endif}} Not working {{$member = \IPS\Member::loggedIn();}} {{if app == 'landingpage'}} <script> function myFunction() { window.location.href("http://localhost/test.com/forums/") } </script> {{endif}}
Not working
-
Hi, I am using the landing page plugin as main home page, and I want to redirect users to forums instead of the index page (if they are logged in).
I tried to add this code in globaltemplate before header:
{{$member = \IPS\Member::loggedIn();}} {{if app == 'landingpage'}} {{header("Location: http://localhost/test.com/forums/");}} {{endif}}
But nothing happened, pls any suggestions?
Duplicate posts and files
in Invision Community 4 Support
Posted
How we can prevent posts or files (downloads) duplication?
On official Marketplace, there is a plugin:
Similar Content on Post Screen
But unfortunately, i don't have an account to buy it , if some one has an account, please message me and i will pay for it.
Or is there any another options to prevent duplication, please?