Sunday, September 05, 2010
Italian - ItalyEnglish (United Kingdom)Español(Spanish Formal International)
assistenza joomlaAssistenzaJoomla.it è il nuovo sito per tutti coloro che hanno bisogno di un'assistenza professionale per la realizzazione di un sito Joomla!
K2
Wednesday, 03 March 2010 17:35

Integrare JComments e K2

Tra le estensioni che si occupano di gestire i commenti, credo che JComments possa meritarsi il riconoscimento di essere una delle migliori. Recentemente mi sono imbattuto nella necessità di trasferire parte del contenuto di un sito su K2; tuttavia, una volta visionato il sistema di commento integrato in K2 ho subito rimpianto JComments, sia graficamente che come funzionalità. Per questo motivo ho effettuato una lunga ricerca in rete per vedere se fosse esistita la possibilità di effettuare un'integrazione tra K2 e JComments; per meglio dire: sostituire il sistema di commento di K2 con JComments.

Monday, 22 February 2010 11:14

K2 Add New Item not working

Trying K2 for the first time, I was welcomed by a strange problem: the "Add new item" button (only this one!) gave a blank page as output... I checked the log file, and I noticed that everything was caused by a "FATAL ERROR" executing the SEO Simple Plugin. It seems that it refers to JSite to know if it's executed on the frontpage: the problem is that JSite is not defined in the K2 backend. To solve the problem, I had to rewrite the isFrontPage() function (in the SEO Simple Plugin), in the following way:

function isFrontPage()
    {
        if (defined('JSite')) {
            $menu = & JSite::getMenu();
            if ($menu->getActive() == $menu->getDefault()) {
                return true;
            }
            return false;
        } else {
            return false;
        }
    }

Sponsored Links


©2009 DM Digital di Grassi Daniele - Images used are licensed as Creative Commons