First add this : defined('_JEXEC') or die(); ... use Joomla\CMS\HTML\HTMLHelper; ... Then, wherever you need it: HTMLHelper::_('jquery.framework');
Dec
26
Dec
22
Adblock Plus allows you to customize on-page actions depending on the page you're viewing. Follow the steps below if you blocked an element and want to view it, add an exception rule, remove a rule that you previously set, or unblock the element. Firefox How to view a blocked element... read more →
Dec
21
1. Log into your Mailchimp account and create a mailing list for the people to sign up for if you haven’t already. 2. Once you have a list simply click on the list and go to “Signup Forms” at the top and select the “Embedded” form option. 3. Now you... read more →
Dec
20
It is very easy to get Google Place ID of your business – Step 1 – Visit link here. Step 2 – Enter your business location. A location drop pin will display your Place ID. Step 3 – Copy the Place ID: xxxxxxxxxxxxxxxxxxxx and you will need to paste it in the... read more →
Dec
18
I have 3 fields defined in my XML file like so: JYESJNO JYESJNO JYESJNO Solution : You can chain the attribute values of showon, using [AND], like so: showon="field1:1[AND]field2:1" Adding more fields to the chain is also allowed. On a side note, you can use an [OR] clause in the... read more →
Dec
18
rand — Generate a random integer Sample Code : [code] $rand = rand(37684782, 23297323); [/code]
Dec
16
sprintf — Return a formatted string Example Code : [code] echo ''.sprintf(( 'Follow %s on Demo!'), strip_tags($demo_account_name)).''; [/code] Joomla Code : [code] echo ''.JTEXT::sprintf(( 'Follow %s on Demo!'), strip_tags($demo_account_name)).''; echo ''.JTEXT::sprintf('MOD_DEMO_FOLLOW', strip_tags($snapchat_account_name)).''; [/code] In Language File you must Use in .ini file : [code] MOD_DEMO_FOLLOW = "Follow %s on Demo!"... read more →
Dec
16
If you are starting TeamViewer on your Mac running macOS 10.15 (Catalina) for the first time, you will be prompted with the following dialog: By default, all permissions are set to Denied. Please give permission to the system capabilities manually to use TeamViewer as desired. If you or others need... read more →
Dec
13
Just use ENT_QUOTES everywhere. PHP gives the option in case you need it, but 99% of the time you don't. Escaping the quotes unnecessarily is harmless. [code] htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); [/code] Because that code is just too long to keep writing everywhere wrap it in some tiny function. [code] function... read more →
Dec
11
You can use addslashes addslashes will do the trick. It will return a new string with the all the quotes ( ' and " ) with their escaped counterparts.