S4hosting Posted June 22, 2021 Share Posted June 22, 2021 Hai i have tried to remove Browse all menu name and also tried redirect browse all by using hood mentioned in whmcs document other menus reflected and working properly but this one menu nothing reflect any one pls help and one more kindly give hook code for removing sidebar category in cart.php url 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2021 Share Posted June 22, 2021 1 hour ago, S4hosting said: Hai i have tried to remove Browse all menu name and also tried redirect browse all by using hood mentioned in whmcs document other menus reflected and working properly but this one menu nothing reflect any one pls help you could remove the entire Store navbar menu using CSS if you can't get a hook working... #Primary_Navbar-Store {display: none !important;} or just Browse All and the divider beneath it... #Primary_Navbar-Store-Browse_Products_Services, #Primary_Navbar-Store .dropdown-divider:first-of-type {display: none !important;} if you want a hook to redirect the link, the second one in the post below will do that... 1 hour ago, S4hosting said: and one more kindly give hook code for removing sidebar category in cart.php url <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Categories'))) { $secondarySidebar->removeChild('Categories'); } }); alternatively, you could hide it with CSS in a custom.css file if you wanted to.... [menuitemname="Categories"] {display: none !important;} 1 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 22, 2021 Author Share Posted June 22, 2021 53 minutes ago, brian! said: you could remove the entire Store navbar menu using CSS if you can't get a hook working... #Primary_Navbar-Store {display: none !important;} or just Browse All and the divider beneath it... #Primary_Navbar-Store-Browse_Products_Services, #Primary_Navbar-Store .dropdown-divider:first-of-type {display: none !important;} if you want a hook to redirect the link, the second one in the post below will do that... <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Categories'))) { $secondarySidebar->removeChild('Categories'); } }); alternatively, you could hide it with CSS in a custom.css file if you wanted to.... [menuitemname="Categories"] {display: none !important;} where can i apply this custom css? 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 22, 2021 Author Share Posted June 22, 2021 1 hour ago, brian! said: if you want a hook to redirect the link, the second one in the post below will do that... alternatively, you could hide it with CSS in a custom.css file if you wanted to.... ok brian leave the above quote is working for Browse all thanks for your help 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 22, 2021 Author Share Posted June 22, 2021 hi brian still 2 to 3 options only need to run my site fully check this screen shot this one come under domain register how to redirect this one by hook and the remaining 2 is price fetch not working and the other one is have to bring currency in wordpress header place and that should sync with price fetch from whmcs for all currencies thats it if u help in this thts all i will start my site to run business.... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2021 Share Posted June 22, 2021 1 hour ago, S4hosting said: where can i apply this custom css? in your case, /templates/twenty-one/css/custom.css in 21, the file doesn't exist by default, so you will need to manually add it. https://developers.whmcs.com/themes/css-styling/ 52 minutes ago, S4hosting said: check this screen shot this one come under domain register how to redirect this one by hook redirecting add hosting link via a hook.... 55 minutes ago, S4hosting said: price fetch not working not sure where you mean. 55 minutes ago, S4hosting said: other one is have to bring currency in wordpress header place and that should sync with price fetch from whmcs for all currencies thats it if u help in this thts all i will start my site to run business.... to do it on an external .php page, you would use the code in the thread below.... hopefully you can adjust it to work in a similar way in WordPress. 1 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 23, 2021 Author Share Posted June 23, 2021 Product price data feeds not fetching price from whmcs in to worpress here i have attached the screenshot.... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 23, 2021 Share Posted June 23, 2021 12 hours ago, S4hosting said: Product price data feeds not fetching price from whmcs in to worpress here i have attached the screenshot.... as I previously said, it's a server issue at your end - you should have a word with your hosts about its configuration... possibly it's just a WordPress security headers issue that you can fix yourself. Quote The resource from “https://secure1.s4hosting.in/feeds/productsinfo.php?pid=28&get=price&billingcycle=monthly¤cy=1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options accessing the feeds directly will work, but not when you try to access them using <script>. 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 23, 2021 Author Share Posted June 23, 2021 where would be the problem brian host side or some other area? how to fix this one? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 24, 2021 Share Posted June 24, 2021 20 hours ago, S4hosting said: where would be the problem brian host side or some other area? how to fix this one? if I knew the specific answer, i'd have told you. 😎 it's not a generic issues with data feeds, but something specific with your server, it's configuration or WordPress. 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 24, 2021 Author Share Posted June 24, 2021 server side asking to replicate the issue i have forwarded the MIME issue but still they asking me to replicate dont know where to start and where to ask?.... 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 24, 2021 Share Posted June 24, 2021 5 minutes ago, S4hosting said: server side asking to replicate the issue i have forwarded the MIME issue but still they asking me to replicate don't know where to start and where to ask?.... give them your VPS URL... https://s4hosting.in/managed-vpshosting/ ... and get them to inspect an element on the page and you'll see the error... I had an issue with feeds in my v7.8.3 dev years ago - ended up putting a php.ini file in the feeds folder... I don't think it was nosniff related, so you shouldn't need to do that. 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 24, 2021 Author Share Posted June 24, 2021 yesterday i have forwarded this msg only anyway let me try once again with this screenshot.... 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 25, 2021 Author Share Posted June 25, 2021 Support team saying whmcs index file has been hacked here is screenshot of hacked details 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted June 25, 2021 Share Posted June 25, 2021 (edited) @S4hosting Tell your Support team to learn about ioncube and encoding scripts. This is not a hack. All WHMCS source files are encrypted like this.... You issue is with your .htaccess and server configuration. Check the URL @brian! told you or Google search the issue you got in your browser console. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options Edited June 25, 2021 by pRieStaKos 1 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 26, 2021 Author Share Posted June 26, 2021 hi here is htaccess file whats wrong in this? # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php74” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php74 .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) <IfModule php7_module> php_flag display_errors On php_value max_execution_time 300 php_value max_input_time 600 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 256M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php74" php_value upload_max_filesize 256M php_flag zlib.output_compression On </IfModule> <IfModule lsapi_module> php_flag display_errors On php_value max_execution_time 300 php_value max_input_time 600 php_value max_input_vars 1000 php_value memory_limit 256M php_value post_max_size 256M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php74" php_value upload_max_filesize 256M php_flag zlib.output_compression On </IfModule> # END cPanel-generated php ini directives, do not edit 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted June 26, 2021 Share Posted June 26, 2021 https://www.google.com/search?q=x-content-type-options+htaccess&client=firefox-b-m&sxsrf=ALeKk01qtrDojaHwDLuQcgYs6_aTH7P8tw%3A1624710166138&ei=FhzXYLrWB9SM9u8PnfG4gAs&oq=X-Content-Type-Options&gs_lcp=ChNtb2JpbGUtZ3dzLXdpei1zZXJwEAEYAzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQRzIECAAQR1AAWABgsCZoAHABeACAAQCIAQCSAQCYAQDIAQjAAQE&sclient=mobile-gws-wiz-serp 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 26, 2021 Author Share Posted June 26, 2021 hi i have added this code in htaccess still problem not solve # X-Content-Type nosniff <IfModule mod_headers.c> Header set X-Content-Type-Options "nosniff" </IfModule> 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted June 27, 2021 Author Share Posted June 27, 2021 finally fixed after disabling hsts option in cloudflare..... 0 Quote Link to comment Share on other sites More sharing options...
S4hosting Posted July 6, 2021 Author Share Posted July 6, 2021 (edited) hi brian able to redirect the url of knowledgebase subdomain https://secure1.s4hosting.in/knowledgebase to https://s4hosting.in/support like? Edited July 6, 2021 by S4hosting 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.