Solved

Is K2 Custom HTML module any better than Joomla's?

Posted on 2016-08-15
2
63 Views
Last Modified: 2016-08-16
Hello!

I know there's a K2 Tools module and it has among other things, its own Custom HTML module. The only difference that I've noticed is that it has "Parse PHP code" option.
So my question is... Is K2 Custom HTML module any better than Joomla's? Is it any different in any way?
0
Comment
Question by:Member_2_7970041
  • 2
2 Comments
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 41757972
You can see the code for yourself by downloading the K2 Tools install package, and looking at modules/mod_k2_tools/helper.php::renderCustomCode().  It basically sends the custom code parameter through the ob_* functions to execute it, then manually triggers the onPrepareContent and onK2PrepareContent events.  It is a pretty basic concept... I first saw it in NoNumbers' Sourcerer plugin, which worked beautifully, and is far less weighty than the entire K2 Tools package.

Of course, K2 Tools has much more to offer than just parsing PHP in your HTML module.  If you can find a use for the other features, perhaps it is worth your while to install it.
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 41757977
Just one further note: the K2 Tools module will act only on modules you create specifically with K2 Tools.  General plugins like Sourcerer will try to act on a much wider array of content.  That's not necessarily a problem, but it is something to consider.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
What you will need: Any version of Photoshop or similar product (examples in Photoshop) Internet Access FTP Access to your joomla install or ability to upload images within joomla administrator backend Create Image: Lets start off with cre…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now