YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.73k stars 749 forks source link

[QUESTION] HOW TO ADD JAVASCRIPT EMBED CODES #5466

Closed gogroup-official closed 6 years ago

gogroup-official commented 7 years ago

I use tawk.to to insert the chat widget. but it does not show. I have inserted it into /layouts/basic/modules/Vtiger/Header.tpl . It only works on the Edge browser. v4.2.435

     * HTTP Public-Key-Pins (HPKP) pin-sha256
     * For HPKP to work properly at least 2 keys are needed.
     * https://scotthelme.co.uk/hpkp-http-public-key-pinning/
     * https://sekurak.pl/mechanizm-http-public-key-pinning/
     */
    'HPKP_KEYS' => [],
    /**
     * Content Security Policy
     */
    'CSP_ACTIVE' => false,
];

zalo_screenshot_3_11_2017_1456685

cltvchannel commented 7 years ago

What files you changed to make this login page template?

PercyP commented 7 years ago

I kind of need to do the same with another chat component. In vtiger I just added a couple of lines of code to the header and footer files. With yeti i can't get it to work. I too like your login screen.

mariuszkrzaczkowski commented 6 years ago

You have an example of how you can add a JS file

$modCommentsModule = vtlib\Module::getInstance('ModComments');
$modCommentsModule->addLink('HEADERSCRIPT', 'ModCommentsCommonHeaderScript', 'modules/ModComments/ModCommentsCommon.js');
cltvchannel commented 6 years ago

@ezbank hey. can you help me make a login page template like you?