Monday, 24 November 2014 03:52
beggarly

Thumbnails?

Groups your news by sections or by categories

Thumbnails?

Postby ddevile » Sun Apr 19, 2009 7:14 pm

First of all I will like to thank you for this great module that I use in my site: www.velocity.gr

I have a request that others might find useful.
For all my images i use the ImageResize PLG http://extensions.joomla.org/extensions/photos-&-images/articles-images/5694/details which automatically creates thumbs on all the pictures in my articles. Is there a way that ImageResize as well creates the proper thumbs on Global News. It will be a lot faster...

Thanx again for the great code

Regards
Dimitris
ddevile
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Sun Apr 19, 2009 7:08 pm

Re: Thumbnails?

Postby nazcas » Mon Apr 20, 2009 4:10 pm

i have similer problem, can anyone help us pls, I can see the plg_imageresize working on other mods but not the global news, i went through the code of GN and I cant see why a plugin wouldnt work on that module, can anyone help up pls.
nazcas
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Mon Apr 20, 2009 4:06 pm

Re: Thumbnails?

Postby ddevile » Sun Apr 26, 2009 10:25 pm

If someone with better php skills can help here is the patch needed

On collecting the image infos -> store the from the <img... the width="xxx" as w
Then on constructing the path -> add cache/ in front of the path
and replace filename -> by adding w- in the beginning of the filename

if this code is available then Global News will get the cached image (if there is one) instead of the original.

If someone feels up to it...
ddevile
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Sun Apr 19, 2009 7:08 pm

Re: Thumbnails?

Postby ddevile » Mon Jun 01, 2009 8:57 pm

Readin a post on joomla forum on calling a plugin in a module I came up with this code:
Code: Select all
$content = JHTML::_('content.prepare', $content);


But it seem that is not working on arrays and the output on Global news I think is array. Anyone got a sugestion?

By the way this is the post:
http://forum.joomla.org/viewtopic.php?f=304&t=401150
ddevile
Fresh Boarder
Fresh Boarder
 
Posts: 5
Joined: Sun Apr 19, 2009 7:08 pm


Return to Global News



Who is online

Users browsing this forum: No registered users and 1 guest

cron