Page 1 of 1

Gavick News Image I module for Phoca Gallery

Posted: 27 Nov 2008, 00:40
by gerilla
hi,
i modificated Gavick News Image I module to Phoca Gallery. it looks great.
just install module. open module options and select Phoca category you wanna show, believe it or not thats all.

module demo:
http://tools.gavick.com/demo/photoslide-gk2

note: module shows image description as intro-text if you wrote else it shows category description. so if you wanna show different intro text per image you can write image descript. else you can write only category description... thanks for gavick for original module...

Re: Gavick News Image I module for Phoca Gallery

Posted: 28 Nov 2008, 14:14
by DirkMu
Hi,

I know this module. Its great. I installed it on my Joomla 1.5.8 but I encountered the following error:

Catchable fatal error: Object of class GKNewsImage1Helper could not be converted to string in /home/muellerd/public_html/modules/mod_gk_news_image_1/helper.php on line 162

Can you pleae check.

Thanks and kind regards
Dirk

Re: Gavick News Image I module for Phoca Gallery

Posted: 29 Nov 2008, 00:49
by gerilla
i added revised zip file to my first post. try that.

Re: Gavick News Image I module for Phoca Gallery

Posted: 29 Nov 2008, 02:54
by FabZ
Hi gerilla,
installing the revised file, now I got this error:

Catchable fatal error: Object of class GKNewsImage1Helper could not be converted to string in \www\joomla\modules\mod_gk_news_image_1\helper.php on line 163

bye :)

Re: Gavick News Image I module for Phoca Gallery

Posted: 29 Nov 2008, 03:22
by gerilla
FabZ wrote:Hi gerilla,
installing the revised file, now I got this error:

Catchable fatal error: Object of class GKNewsImage1Helper could not be converted to string in \www\joomla\modules\mod_gk_news_image_1\helper.php on line 163

bye :)
realy sorry i made a repeat at $this code. it didnt give error on my server so i couldnt notice it...

find this part in line 163 at helper.php:

$this->$this->module_width = "100%";

and delete one of $this

it must be:
$this->module_width = "100%";

or additionaly you can download it and replace helper.php file with new one.. i changed the zip file.
i hope it works now.

Re: Gavick News Image I module for Phoca Gallery

Posted: 29 Nov 2008, 14:32
by DirkMu
I donwloaded your updated version and it is now working (Thanks a lot :) ) but for some reasons the thumbnails always show the same picture:
phoca.png
Kind regards
Dirk

Re: Gavick News Image I module for Phoca Gallery

Posted: 30 Nov 2008, 00:38
by gerilla
hi,
try this:

Re: Gavick News Image I module for Phoca Gallery

Posted: 03 Dec 2008, 02:51
by FabZ
Hi Gerilla,
really thanks.
Pretty nice Phoca improvement, I think :wink:
but now I have these lines:

Notice: Undefined variable: article in C:\Programmi\EasyPHP 2.0b1\www\joomla\modules\mod_gk_news_image_1\helper.php on line 217

Notice: Undefined property: stdClass::$wordcount in C:\Programmi\EasyPHP 2.0b1\www\joomla\modules\mod_gk_news_image_1\helper.php on line 237

two lines each slide image.

Line 237 is related to "Show text block" option Yes/No.

What's wrong with my J! now? :roll:
Bye :)

Re: Gavick News Image I module for Phoca Gallery

Posted: 04 Dec 2008, 02:37
by gerilla
hi Fabz,
i was using the article id for the article link which about the images.. but i changed it to category page. i had forgotten to delete this variable. i corrected it.


the second error is related to wordcount of intro text. it tries to get wordcount from database but of course there isnt any row about wordcount phoca gallery tables. i changed it to module parameters. now you can change word count of intro text from module properties page.

i changed the zip file at my first message. you can download from the first message...

i am new at php so, if you get any other error(s) just write here :|

Re: Gavick News Image I module for Phoca Gallery

Posted: 05 Dec 2008, 21:23
by FabZ
Works fine!! :wink:
Thanks a lot gerilla :twisted: