Gavick NEWS PRO GK4 and SEBLOD CCK 2.0

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Dec 19, 2011 4:42 pm
Hello,

To use the great NEWS PRO GK4 module from Gavick with SEBLOD 2.0, just insert in "layout.parts.php" file (located at modules/mod_news_pro_gk4/tmpl) on line 35 the code below:
Code: Select all
// CLEANING FOR SEBLOD
         jimport('joomla.application.component.helper');
         if(JComponentHelper::isEnabled('com_cck', true)){
            // Force parsing plugin if SEBLOD is used
            if($this->config['parse_plugins'] == FALSE) {
               $news_text = JHtml::_('content.prepare', $news_text);
            }
               $news_text = trim(substr(strip_tags( $news_text,"<br /><br><strong></strong><p></p><i></i><b></b><span></span><ul></ul><li></li><blockquote></blockquote>"),6));
         }


Just a note to the Gavick admin team, it will be better to apply Joomla plugin process before to cut text. Like this if some caracters or words are changed by a plugin, you count well on the output.

Best Regards
User avatar
Fresh Boarder

teitbite
Mon Dec 19, 2011 5:12 pm
Hi

Ok. I'll show this post to one of the programmers. Thanks for this info.
User avatar
Moderator

GK User
Mon Dec 19, 2011 5:57 pm
Hi,

Thank you teitbite.

It's better to insert this lines in modules/mod_news_pro_gk4/gk_classes/gk.utils.php on line 17.

Best regards
User avatar
Fresh Boarder

GK User
Tue Jan 10, 2012 5:36 pm
Just some fixe on the code...

insert this lines in modules/mod_news_pro_gk4/gk_classes/gk.utils.php on line 17.
Code: Select all
if(JComponentHelper::isEnabled('com_cck', true)){
            // Force parsing plugin if SEBLOD is used
            if($this->config['parse_plugins'] == FALSE) {
               $text = JHtml::_('content.prepare', $text);
            }
            $text = trim(substr(strip_tags( $text,"<br /><br><strong></strong><p></p><i></i><b></b><span></span><ul></ul><li></li><blockquote></blockquote>"),0));
         }


Work very well and very nice plugin with great power combined with SEBLOD 2.x

Best Regards
User avatar
Fresh Boarder

GK User
Mon Feb 20, 2012 12:16 pm
Hi,

The modification is include in the last version of GK News Pro.

GK News Pro module is full compatible with SEBLOD 2.x

Many thanks to Gavick Team :D

Best Regards
User avatar
Fresh Boarder

teitbite
Wed Feb 22, 2012 12:55 pm
Hi

No problem. Thanks to programmers for this :)
User avatar
Moderator


cron