vinc1402 Posted May 5, 2018 Share Posted May 5, 2018 Hello WHMCS, My main website makes use of SVG images as logo and other parts. The WHMCS side does use png formats, I can edit the header.tpl file to make use off the svg but I'm just wondering if $assetLogoPath could also include svg formats. I know that if you have one of these files: /assets/img/logo.png /assets/img/logo.jpg $assetLogoPath is set. (but no svg support here ) Referring to : 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 6, 2018 Share Posted May 6, 2018 with regards to my hook in the above thread that you linked to, it could easily be tweaked to use a SVG file for a logo... <?php # Define $assetLogoPath # Written by brian! function custom_base_img_path_hook($vars) { return array("assetLogoPath" => $vars['BASE_PATH_IMG']."/SVG-logo.svg"); } add_hook("ClientAreaPage", 1, "custom_base_img_path_hook"); ?> 1 Quote Link to comment Share on other sites More sharing options...
vinc1402 Posted May 6, 2018 Author Share Posted May 6, 2018 1 hour ago, brian! said: with regards to my hook in the above thread that you linked to, it could easily be tweaked to use a SVG file for a logo... <?php # Define $assetLogoPath # Written by brian! function custom_base_img_path_hook($vars) { return array("assetLogoPath" => $vars['BASE_PATH_IMG']."/SVG-logo.svg"); } add_hook("ClientAreaPage", 1, "custom_base_img_path_hook"); ?> 1 Thank you Brian! The hook works flawless, I just had to convert the font to outline for the SVG file. It looks great on desktop, but mobile is still a bit behind on this technique and left the font out. I'm not even going to start for the email templates, that's not even close to 50% supported on SVG haha Anyway, my WHMCS logo is looking blade sharp. Thanks again Brian! 0 Quote Link to comment Share on other sites More sharing options...
PeterCo Posted May 10, 2021 Share Posted May 10, 2021 Works great for me as well (WHCMS 8.1, twenty-one). Do you have an idea how to do this for PDF invoices as well? 0 Quote Link to comment Share on other sites More sharing options...
Natie Posted November 3, 2021 Share Posted November 3, 2021 Hi guys I dont really under your methods, Could you perhaps re- explain on how can do this step by step 0 Quote Link to comment Share on other sites More sharing options...
Natie Posted November 5, 2021 Share Posted November 5, 2021 Oh I finally managed to get it right, I have an issue with my whmcs, the automation system gives me an error. 0 Quote Link to comment Share on other sites More sharing options...
Natie Posted November 11, 2021 Share Posted November 11, 2021 Does anyone know, how to display logo.svg on the email template? 0 Quote Link to comment Share on other sites More sharing options...
Natie Posted November 11, 2021 Share Posted November 11, 2021 On 5/6/2018 at 5:29 PM, brian! said: with regards to my hook in the above thread that you linked to, it could easily be tweaked to use a SVG file for a logo... <?php # Define $assetLogoPath # Written by brian! function custom_base_img_path_hook($vars) { return array("assetLogoPath" => $vars['BASE_PATH_IMG']."/SVG-logo.svg"); } add_hook("ClientAreaPage", 1, "custom_base_img_path_hook"); ?> Hi Brian do you know, how to display logo.svg on the email template? 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.