JA Tabs

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
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 Jul 14, 2014 1:10 pm
Hi,

I am trying to implement JA Tabs to my website.
But I have a problem when I want to show an article with tabs, using NSP5.

To create tabs with JA Tabs you use fx. the syntax:

{jatabs type="content" position="top" height=auto}
This will set some defaults for the tab plugin.

Next you use:
[tab title="Overview"] Here goes your text [/tab]
This will create a tab named Overview with the text "Here goes your text" inside.

To close all the tabs you use: {/jatabs}

In NSP5 I have set the Clean Plugin option which removes all the sections beginning and ending with { }
My problem is now - what do I do with all the [ ] ???

They appear in the text of the NSP module. How can I also remove those?

This is a local running test site, so I can´t provide a link!

Cheers,
User avatar
Senior Boarder

GK User
Mon Jul 14, 2014 2:52 pm
Hello,

Please try to open your data source controller.php file and try to replace fragment:

Code: Select all
if($config['clean_plugins'] == TRUE) {
   $news_text = preg_replace("/(\{.+?\}.+?\{.+?})|(\{.+?\})/", "", $news_text);
}


to:

Code: Select all
if($config['clean_plugins'] == TRUE) {
   $news_text = preg_replace("/(\{.+?\}.+?\{.+?})|(\{.+?\})/", "", $news_text);
        $news_text = preg_replace("/(\[.+?\].+?\[.+?])|(\[.+?\])/", "", $news_text);
}


In example for the K2 the controller file is: data_sources/com_k2/controller.php
User avatar
Administrator

GK User
Mon Jul 14, 2014 3:51 pm
Hi,

No, it is not working!
Seems to be a pretty straight forward code though.

Just to be sure. This is the file I have changed: /modules/mod_news_pro_gk5/data_source/com_k3/controller.php

Did it work on your test site?

Cheers,
User avatar
Senior Boarder

GK User
Tue Jul 15, 2014 9:35 am
It must works I've tested it on my localhost - most probably you have edited wrong controller - please edit a controller for the used data source.
User avatar
Administrator

GK User
Wed Jul 16, 2014 10:01 am
Sorry, I was not clear enough in my reply.

Yes, it is working with main articles, but not in links layout.
I have 2 main articles and 4 links articles. In the text of the links articles I can still see those brackets!
User avatar
Senior Boarder

GK User
Wed Jul 16, 2014 10:30 am
Please download the newest version of the module from the repository - I've added advanced plugin filtering in this commit: https://github.com/GavickPro/News-Show- ... 43147d8c83
User avatar
Administrator


cron