gallery2 image block does not show more than 1 image

Moderator: sil3nt

Forum rules
Please post all the bugs you encounter on our issue tracker.

gallery2 image block does not show more than 1 image

Postby mbajkowski on Sun Dec 13, 2009 12:56 am

1. Have you searched the forums and checked the documentation section for a solution?
yes
2. Please summarize your problem in a few lines.
gallery 2 random image block works, but number of images is ignored
3. What steps will reproduce the problem?
create a jfusion activity module for the gallery2 image block and set number of pictures > 1
4. What is the expected output? What do you see instead?
expected is the number of pictures specified, however, it always defaults to just 1
5. You must include a printout of the login checker in the JFusion component.
n/a
Code: Select all
Server Configuration
Joomla Version    1.5.15
PHP Version    5.2.9
MySQL Version    5.0.51a-community
System Information    Linux sirius.lunarpages.com 2.6.9-89.0.16.ELsmp #1 SMP Tue Nov 3 17:34:21 EST 2009 i686
Browser Information    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
jfusion user Plugin    Enabled
jfusion authentication Plugin    Enabled

JFusion Versions
JFusion Component Version    1.2.2-000 (Rev 1781:1783)
JFusion Authentication Plugin Version    1.2.2-000
JFusion User Plugin Version    1.2.2-000
JFusion Activity Module Version    1.2.2-000
JFusion Login Module Version    1.2.2-000
JFusion Search Plugin Version    1.2.2-000
JFusion Discussion Plugin Version    1.2.2-000

JFusion joomla_int Plugin
configuration    master 1
slave 0
dual_login 1
check_encryption 1
JFusion gallery2 Plugin
configuration    master 0
slave 1
dual_login 1
check_encryption 1


Authentication Plugin
userid    62
activation    ""
username    *************
name    *************
password    dcdb96********
email    *****************************
block    0
group_name    Super Administrator
group_id    25
params    ""
language    en-GB
credentialed_username    ***************
password_clear    ******
   Authentication Plugin Success
Authentication Plugin Debug
0    joomla_int Password Encryption Check: dcdb96******** vs dcdb96********
1    joomla_int Password Encryption Check: Success


jfusion User Plugin
   User Plugin Success
User Plugin Debug
init    0 Using userinfo JFusion authentication plugin
joomlaid    62
gallery2 User Update    0 A user has been found that matches the login details
1 Skipped Password Update:Password already valid
gallery2 User Details    userid 387
name ***********
username *********8
email ***********************
password dcdbe4********
password_salt dcdb*****
group_id 3
group_name Site Admins
block 0
registerdate null
lastvisitdate null
activation null
password_clear ******
gallery2 Session    null
User avatar
mbajkowski
JFusion Newbie II
JFusion Newbie II
 
Posts: 10
Joined: Sun Dec 13, 2009 12:47 am

Re: gallery2 image block does not show more than 1 image

Postby Peter_AUS on Sat Jan 30, 2010 6:00 am

In Gallery 2 you need to edit the album then theme and then image block and tell image block how many images you want to be displayed, the default is 1 image, change it after you select the word image block from the Blocks to show in the sidebar section which is not far down from the top of theme settings.
Regards,

Peter
User avatar
Peter_AUS
Official Tester
Official Tester
 
Posts: 526
Joined: Fri Feb 08, 2008 9:10 am
Location: Carlingford NSW Australia

Re: gallery2 image block does not show more than 1 image

Postby NPC on Tue Jun 08, 2010 9:25 am

Hi,

I seem to have a similar (if not the same) problem - I need to show 4 recent images from Gallery2 on the frontpage of my site, so I copied the JFusion Activity Module (I already use it for phpBB on the same site), changed the plug in to Gallery2 and view to Gallery2 Image Block, setting # of images to 4 - yet only one is displayed.

I tried going to the top album and enabling image block for its side bar (which I can't see, btw), setting its # of images to 4 - no luck. Also changed the default theme to have the image block in the side bar, with 4 images - still no change. I cleared all cache in Joomla too, so that should not be the issue.

The main thing that confuses me about your reply, Peter_AUS, is that I need to configure image block displayed on the front page, yet you say to add and configure image block in the albums - are they really related? If yes, then what am I missing?

Please help :)

Best regards,
NPC
User avatar
NPC
JFusion Intermediate
JFusion Intermediate
 
Posts: 93
Joined: Thu Dec 25, 2008 12:24 pm
Location: Ukraine

Re: gallery2 image block does not show more than 1 image

Postby KyleG on Thu Jun 10, 2010 5:14 pm

NPC wrote:
The main thing that confuses me about your reply, Peter_AUS, is that I need to configure image block displayed on the front page, yet you say to add and configure image block in the albums - are they really related? If yes, then what am I missing?

NPC


NPC Yes and No on Peter's answer. There are two ways to create Image blocks when you are using Jfusion.

1. You can use the Module (mod_jfusion_activity) and thereby put it wherever you want in your Joomla theme. I believe both of the questions about the random image number is based off this. On my site I went in and edited the Module and under module parameters I clicked "Select" next to Jfusion plugin. There is an option to choose the number of images. No matter what I put in there I only seem to get one. Since the writer of the Gallery 2 module has been missing in action I don't know if this can get fixed.

I don't know if you can add multiple Module (mod_jfusion_activity) blocks. Never tried that.
Due to this limitation on one of my sites, I use the Mtense.com (there are discussion about it on this site) Joomla Image Block Slideshow module. It will show as many images as I want, only using one Joomla module but it slideshows through them and since it's a Joomla module I can control where it is placed.

Second method
2.You can add Gallery 2 Image Block(s) directly in Gallery 2. The limitation on this, is you can put it in the main content area (from Joomla's perspective) in the Album or Item views of Gallery 2 but it does in fact create multiple picture blocks. Theres multiple ways to get there but from Peter's example, edit the album (whichever album you want or the highest level album) click the "Theme" tab then under "Blocks to show on album pages" and/or "Blocks to show on Photo pages" you can add the "Image Block". Then you must select the "Image Block" that was added under the album or photo pages, and it will give you more options to edit (like what types of photos, random or new, etc...) including an option for number of images. If you edit it here, it will provide as many images as you select either in the album or photo pages (and you can have different types of blocks or number of photos based on if it's a album or photo page.)
User avatar
KyleG
JFusion Novice II
JFusion Novice II
 
Posts: 52
Joined: Fri Aug 28, 2009 5:47 am
Location: Oregon, United States

Re: gallery2 image block does not show more than 1 image

Postby KyleG on Thu Jun 10, 2010 5:30 pm

KyleG wrote:NPC Yes and No on Peter's answer.


The reason I said Yes they are related as part of my answer, is the jfusion_activity_module is relying on the code base and hooks provided by Gallery 2's image block so in that sense they are "related" except you are setting all the same parameters for the module that you would if you are using Image Block "internally" to Gallery 2 (in method two.)

The reason I said No as part of my answer is setting the parameters in the jfusion_activity_module doesn't really relate to setting the parameters for a Gallery 2 internal image block like you attempted.

I haven't read through the code but I don't believe Mtense's slideshow gallery relies on the Image Block hooks although it does rely on the Gallery 2 API's to determine and pull photo's etc... My belief is that why it can do a multi picture slideshow in one module. Plus Mtense added the feature where you could install multiple modules and have multiple slideshows going on which is pretty cool.
User avatar
KyleG
JFusion Novice II
JFusion Novice II
 
Posts: 52
Joined: Fri Aug 28, 2009 5:47 am
Location: Oregon, United States

Re: gallery2 image block does not show more than 1 image

Postby KyleG on Fri Jun 11, 2010 1:26 am

KyleG wrote:There is an option to choose the number of images. No matter what I put in there I only seem to get one. Since the writer of the Gallery 2 module has been missing in action I don't know if this can get fixed.


http://codex.gallery2.org/Gallery2:Modu ... al_Options

A little confirmation for my hypothesis. Although there is an option for number of blocks in the Jfusion Activity Module the Gallery 2 information implicitly states that number of blocks is not an option when using an "external" image block. Meaning the API for Image Block doesn't support using multiple image blocks. That makes me assume to resolve this for the Jfusion Activity module you would need to be able to install two Jfusion Activity modules, I don't know if that's possible (I know it's possible with Mtense's slideshow.)
User avatar
KyleG
JFusion Novice II
JFusion Novice II
 
Posts: 52
Joined: Fri Aug 28, 2009 5:47 am
Location: Oregon, United States

Re: gallery2 image block does not show more than 1 image

Postby Peter_AUS on Fri Jun 11, 2010 7:06 am

Thanks Kyle, for clearing all of that up, I think my statement, was in relation to one thing where the question was in relation to another aspect of the usage of gallery2 images, hence I most likely started a bit of confusion. Sorry if that was the case to the other users.

Still be nice if someone that actually knew gallery2 and could implement a proper implementation of the Gallery2/Jfusion plugin could work on it, as I am sure this is a sticking point in this part of the integration.

If you want to see my site that I have running, the home page is www.passionforpixels.com which does have the full integration for Joomla1.5.18/vbulletin3.8.5/gallery2.3.1 with jFusion 1.2.4

I have tried a lot of different settings within the Rockbridge Slide module and still am unable to resolve the clipping of the images.
Regards,

Peter
User avatar
Peter_AUS
Official Tester
Official Tester
 
Posts: 526
Joined: Fri Feb 08, 2008 9:10 am
Location: Carlingford NSW Australia

Re: gallery2 image block does not show more than 1 image

Postby NPC on Fri Jun 11, 2010 8:11 am

Kyle, thank you very much for your detailed answer.

It is a shame that the parameter does not work, that would be the easiest solution. Strangely, in the module provided by g2bridge (also supported by sil3nt before he dissapeared) did allow specifying the number of images. Migrating from that component (because it had a sudden vulnerability, and generally I'd like to reduce the number of 3rd party components I use on the site, to simplify maintenance), I really miss that feature.

For now I think you are right that I will have to try to go with that slideshow - thank you for the help and advice, and will try to do that.

Having several JFusion activity modules is possible (I have two - one for phpBB and one for Gallery2), yet adding more for Gallery2 will not help me (or anyone?), as I can't set the offset for the other modules to show "2nd most recent image", "3rd most recent image" and so on. If you know of a way to do this - that may also be a solution to this problem :)

Best regards,
NPC
User avatar
NPC
JFusion Intermediate
JFusion Intermediate
 
Posts: 93
Joined: Thu Dec 25, 2008 12:24 pm
Location: Ukraine

Re: gallery2 image block does not show more than 1 image

Postby NPC on Tue Jul 27, 2010 1:14 pm

Can somebody perhaps tell me what part of JFusion code corresponds to the handling of Gallery2 JFusion Activity Module? I'd like to see what is happening there, and JFusion is such a complex system (for somebody not too familiar with PHP), that I can't follow the code from the module itself (very general, though forum-oriented) to the handling of the plugin-specific logic.

What I want to do is compare it with the g2bridge code that does similar things, and may be (oh may be) it won't be too difficult to make the JFusion Activity Module use the setting of how many images to display. May be I will fail - but I think it's worth a try.

Best regards,
NPC
User avatar
NPC
JFusion Intermediate
JFusion Intermediate
 
Posts: 93
Joined: Thu Dec 25, 2008 12:24 pm
Location: Ukraine

Re: gallery2 image block does not show more than 1 image

Postby fanno on Tue Jul 27, 2010 1:31 pm

NPC wrote:Can somebody perhaps tell me what part of JFusion code corresponds to the handling of Gallery2 JFusion Activity Module? I'd like to see what is happening there, and JFusion is such a complex system (for somebody not too familiar with PHP), that I can't follow the code from the module itself (very general, though forum-oriented) to the handling of the plugin-specific logic.

What I want to do is compare it with the g2bridge code that does similar things, and may be (oh may be) it won't be too difficult to make the JFusion Activity Module use the setting of how many images to display. May be I will fail - but I think it's worth a try.

Best regards,
NPC

just a guess

http://code.google.com/p/jfusion/source ... /forum.php

i have not had time to look at it.(learn that aspect of g2)
Fanno
_________________________________
Developer
Specialist on SMF, DokuWiki , Mantis, Eventum, Mediawiki, Universal plugin


Review us at!
http://extensions.joomla.org/extensions/3723/details
User avatar
fanno
Developer
Developer
 
Posts: 7680
Joined: Wed Jan 07, 2009 4:38 pm
Location: Denmark, Copenhagen

Next

Return to Gallery 2

Who is online

Users browsing this forum: No registered users and 0 guests