News Highligher and EventList ?

Discussion about free Joomla news rotator/ticker with multiple effects like scrolling, fading and several data sources supported.
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
Sat Dec 19, 2009 6:42 pm
Hi,

I use the excellent News Highlighter GK1 with Pulse template.
Instead of News, I'd like it to display the Next Events from the Eventlist component.

What do I have to do ?

Thanks for your advises
Eric
User avatar
Fresh Boarder

GK User
Sun Dec 20, 2009 1:21 am
you can try to change main SQL query in highlighter files, but please do it only if you some knowledge about PHP and MySQL ;)
User avatar
Administrator

GK User
Sun Dec 20, 2009 4:17 pm
I have a very very small knowledge of PHP MySQL... But I need to use EventlList events in Highliter, so I have to try...

Which files do I have to change ?
I have seen only joomla.news.class.php line 80 :
Code: Select all
      $query_name = '
         SELECT DISTINCT
            c.id AS ID,
            c.section AS SID,
            c.title AS name,
            m.id AS MID
         FROM
            #__categories AS c
         LEFT JOIN
            #__menu AS m
            ON
            c.id = m.componentid
         LEFT JOIN
            '.(($news_type == 0) ? '#__content' : '#__weblinks').' AS content
            ON
            c.id = content.catid    
         WHERE
            ( '.$where.' )
            AND
            c.published = 1'.((!$noauth && $config['unauthorized'] == 0) ? '
            AND
            c.access <= ' .(int) $aid : '').';
      ';



What do I have to change in other files ?
:unsure:
User avatar
Fresh Boarder

GK User
Mon Dec 21, 2009 11:46 am
you can need to change also method of creating links in module - I think its will be all basic changes.
User avatar
Administrator

GK User
Mon Dec 21, 2009 11:57 am
Could you please tell me what files are involved ?...
;)
User avatar
Fresh Boarder

GK User
Sun Dec 27, 2009 5:10 pm
hello Eric,
I have developed a small plugin to list events from EventList
http://extensions.joomla.org/extensions ... ific/10783

The issue is that I have tried it in News HighLighter and it displays the plugin code instead of its results..

Dziudek,
is there a plan to include plugin execution in the contents of the news, like in News Show Pro (which works perfect!) ?

best regards,
luis raposo
User avatar
Fresh Boarder

GK User
Sun Dec 27, 2009 9:59 pm
Thanks Luis.

How do I should I configure your plugin to show Eventlist events (in Highlight or somewhere else) ?
There must be something that I am missing but I can't manage it...
:unsure:

Waiting for the DreamTeam Dziudek+ Luisraposo
:P
User avatar
Fresh Boarder

GK User
Thu Dec 31, 2009 12:18 am
hi Eric,
you must type the plugin code
{listevents type=new|showtitle=link|max=5]}
inside a Joomla article (or any other content)
You may show this article directly, or incude it in an news rotator, for instance
(have a look on my webpage: www.kotasbiketeam.org)
luis
User avatar
Fresh Boarder

GK User
Thu Dec 31, 2009 1:02 am
Thank you Luis.

So now we are waiting for Dziudek or another Guru Moderator to tell us how to make it compatible with News HighLighter... ;)
User avatar
Fresh Boarder

teitbite
Fri Jan 08, 2010 8:16 am
Hi

Ok. So talk to me :). ERIC_T asked me for help in this. I have not much time (I'm in the middle of my own project) but lets give a try.

What do You want me to do?
User avatar
Moderator

GK User
Fri Jan 08, 2010 9:44 am
teitbite please look at the post that luisraposo wrote:
I have developed a small plugin to list events from EventList
http://extensions.joomla.org/extensions ... ific/10783

The issue is that I have tried it in News HighLighter and it displays the plugin code instead of its results..

Dziudek,
is there a plan to include plugin execution in the contents of the news, like in News Show Pro (which works perfect!) ?
User avatar
Fresh Boarder

teitbite
Fri Jan 08, 2010 3:31 pm
Hi

Can I see the page? The ftp access would be heaven :)

teitbite[at]o2[dot]pl
User avatar
Moderator

GK User
Thu Jan 14, 2010 10:29 pm
teitbite, did luisraposo send you some content ?
User avatar
Fresh Boarder

teitbite
Thu Jan 14, 2010 11:46 pm
Hi

Yes he did. But I'm extreamly busy at work and with forum that I haven't even look in it. Sorry. I still got it in mind.
User avatar
Moderator

GK User
Wed Feb 03, 2010 12:30 am
luisraposo did you manage it with the help of teitbite or dziudek ? :dry:
User avatar
Fresh Boarder

GK User
Wed Feb 03, 2010 1:17 am
hi Eric,
the plugin is working fine, is it the module that needs some update..

I can be of assistance if you have some doubt using the plugin, or if you would like to have new functionality on it..

kind regards,
luis raposo
User avatar
Fresh Boarder

GK User
Wed Feb 03, 2010 12:14 pm
Hi Luis,

I have modified your useful plugin (thanks for developing it!) to show also time of events.
I have attached the php file to this post. Hope not to have messed something.

On the other hand I don't have made any progress on the module...
What did you mean by:
Dziudek,
is there a plan to include plugin execution in the contents of the news, like in News Show Pro (which works perfect!) ?

You want an input text field in the Gavick News Highlighter GK1 backoffice in which you could input your plugin code ?
{listevents type=next|showtitle=link|max=5}
User avatar
Fresh Boarder

GK User
Wed Feb 03, 2010 8:13 pm
hi Eric,
I can use the plugin within an article and show it on News Show Pro, from Gavick.

That module executes the "content" plugins, like listevents.
http://docs.joomla.org/Tutorial:Plugins

If News Highlighter is also able to fire the "onPrepareContent" event the listevents plugin will run, and its contents will show up :) (like any other "content" plugin ;)

kind regards,
luis raposo

ps: thanks for contributing to the development of "listevents" :)
User avatar
Fresh Boarder

GK User
Wed Feb 03, 2010 10:22 pm
If News Highlighter is also able to fire the "onPrepareContent" event the listevents plugin will run, and its contents will show up (like any other "content" plugin

So dear Gavick team members, what do we have to do to make News Highlighter able to fire the "onPrepareContent" event ?
;)

Or do you recommend another approach ?
:huh:

Thanks for your help
Eric
User avatar
Fresh Boarder

GK User
Sat Feb 06, 2010 5:53 pm
Hi
I solved this problem
I edited file 'helper.php' in module "mod_gk_news_highlighter"
This file attached
Copy it into folder "wwwmodulesmod_gk_news_highlighter"

What was changed?
1. Added function ParsePlugins
2. line
Code: Select all
$this->textTab[$i]=ParsePlugins($this->textTab[$i]);

after code
Code: Select all
if($this->config['show_title'] == 1)
         {
            $content[$i] .= '<span class="gk_news_highlighter_title">'.JString::substr($this->titleTab[$i], 0, $this->config['title_length']).((JString::strlen($this->titleTab[$i]) > $this->config['title_length']) ? '...' : '').'</span>';
         }


Larissa
webzubra.com - creating site in Almaty
User avatar
Fresh Boarder

GK User
Sat Feb 06, 2010 6:22 pm
Hi Zubra and thank you for your collaboration!
I think luisraposo was waiting for that!
B)

From my side, I still don't understand how I can tell to Highlighter to show Eventlist items using luisraposo's List Events...
Do you know ?
;)
User avatar
Fresh Boarder

GK User
Sat Feb 06, 2010 6:28 pm
hi Eric,
News Highlighter displays Articles
you must define an Article with de plugin code inside it :)
kind regards,
luis raposo

ps: I already had the chance to thank Larissa ;)
User avatar
Fresh Boarder

GK User
Sat Feb 06, 2010 11:49 pm
Hi Luis,

did I miss something or we need to create an article by event ?

I created an article with:
{listevents type=next|showtitle=link|showdate=off|showtime=off|category=2|showcategory=off|max=3}
but it fired all the 3 events sticked together, then a blank line, and again the line with the 3, and so on...
User avatar
Fresh Boarder

GK User
Sun Feb 07, 2010 12:49 am
hi Eric,
are you sure the only article you are publishing in News Highlighter contains only that line of code?
(I did not had the chance to try the changes made by Zubra/Larissa

please confirm you can display those events properly on another article, not in News Highlighter..

best regards,
luis raposo
User avatar
Fresh Boarder

GK User
Sun Feb 07, 2010 8:46 am
Yes if I load directly this article page I can see my 3 events.

On the other hand, with Highlighter I see: title of the article title of event1 title of event2 title of event3
User avatar
Fresh Boarder

GK User
Sun Feb 07, 2010 5:47 pm
Hi Eric,

I've made some tests, with the new helper.php file, and it ListEvents plugin is working fine now! :) - thanks zubra/Larissa ;)

on the Highlighter Module, select
Animation Type: horizontal stripe
Animation Speed: 50

on the Article itself, select
on Parameters (Advanced) - Show Title: No

hope this can help..

luis raposo
User avatar
Fresh Boarder

GK User
Sun Feb 07, 2010 5:59 pm
Thanks Luis and Larissa!
:)
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 3:17 pm
Well my friends another challenge!
;)

I need to promote an Eventlist event or category with News Show Pro GK1 module.

In IDs field, I have asked to this module to promote an article with luisraposo pluging code :
{listevents type=prev|showtitle=link|max=1}
but unfortunately it doesn't work...

Larissa, could we use your code to make News Show Pro GK1 module compatible ?
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 3:27 pm
hi Eric,
I had no problems using News Show Pro..

- try first to place regular text on that article, and make sure it shows
(it could be the module parameters..)

- then try a regular article with the plugin code
(it could be there are no events..)

just to get you a roadway.. :)

kind regards,
luis raposo
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 4:06 pm
Thank you Luis to be there.

You were right for the first option because the article was uncategorized and News Show Pro GK1 module needs it to be categorized article. I did and now I see the title of the article and the code. But not the content

If I try to load the article in a plain page it shows normally (your code works)
http://localhost:8888/pulse/index.php?o ... icle&id=68

What do you suspect?
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 4:10 pm
go to "Advanced Parameters" on the News Show Pro Module
make sure "Parse plugins" is "enabled", and "Clean plugins code" is "disabled"
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 4:17 pm
You are right it's not clean:
<p>{listevents type=prev|showtitle=link|max=1}</p>

I tried to remove the p tags but TinyMCE 3.2.4.1 puts them back automatically

In Tiny MCE preferences I have:
Code Cleanup on Startup: Off
Code cleanup on save: Never
Entity Encoding: Raw

What's wrong?
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 4:42 pm
luisraposo wrote:
go to "Advanced Parameters" on the News Show Pro Module
make sure "Parse plugins" is "enabled", and "Clean plugins code" is "disabled"
Sorry Luis I didn't read correctly your post!

"Parse plugins" wasn't "enabled"
It works now! :silly:

Do you think it's possible to add the event image or category event image?
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 5:01 pm
hi Eric,

You did read correctly my post, it was me, who answered too fast, and then figured out it should be something else.. and edited the post.. :p

The images are a good suggestion for a next release of the plugin.. :D
(I saw somewhere a module which does that, if you want to search.. but it was not free..)

luis
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 7:56 pm
Thanks Luis.

I have 2 problems, and I am sure you can help me ;)

- the title published in News Show Pro Module links to the article and not to the event in Eventlist. Of course it's normal but is there a way to make it link to the event in eventlist?
- I don't get the News Show Pro Module style, but your plugin ones

I did also the same test with another plugin "Virtuemart Product Snapshot" and got exactly the 2 same behaviors (plus the thumbnail of the product that is not resized).
What could we do?
User avatar
Fresh Boarder

GK User
Sun Feb 14, 2010 11:31 pm
hi Eric,

1. there might be several events shown by listevents, so, linking from the title might not be a good idea.. you can disable the article title, or the "link" to the article..

2. the plugin does not have a style (.css) file attached..
In fact it had some issues on version 0.1a, make sure you have 0.1b (just install over the existing plugin - unless you use options defined on the plugin backend! in this case please make note of them..)
So, it should be your .CSS configuration.. have a look at it (for instance with FireBug)

regards,
luis
User avatar
Fresh Boarder


cron