joomla - Horizontal display of image block

guyfreer

Joined: 2006-05-25
Posts: 10
Posted: Sun, 2006-11-05 01:53

I am running Gallery2 with Joomla and Gallery 2 Bridge. Does anyone know how to display an image block horizontally rather than vertically. I have looked across the gallery2 Bridge forums and it all points to the answer being here somewhere. Also is it possible to specify an album to display in an image block. At the moment I can display a random album or a specific image but not a specific album
Thanks

 
meisay

Joined: 2007-01-02
Posts: 12
Posted: Thu, 2007-01-25 07:03

same here...

 
mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Sun, 2008-02-24 17:51

I request "horizontal display" too.
Nobody can help us ?


Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)

 
mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Fri, 2008-02-29 16:02

UP !!!

I need to insert horizontal view in phpbb3 forum and joomla site.

Could somebody help us telling how to transform "ImageBlock" in horizontal view ?

Thanks !


Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-02-29 19:35

Never used joomla or phpbb3 but the codex has a example:
http://codex.gallery2.org/Gallery2:Modules:imageblock#Examples

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Fri, 2008-02-29 23:08

Thank You Dave, but the code indicated does not function :(
Simply I would like to have the following display link: (copy and past into your browser)
http://www.photo4terzi.org/gallery/main.php?g2_view=imageblock.External&g2_blocks=recentImage|recentImage|recentImage|recentImage|recentImage&g2_show=title
but in horizontal view.


Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sat, 2008-03-01 01:12

I have the same problem. I have Gallery2.2.4 running with image block but adding the inline info to the style.css (I have a local one) doesn't make the photos go in a line. Maybe it is something in the Matrix theme in the css that is over riding the inline setting?

I would like to display 4 random images on the photo page.

Many thanks

Markdj

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-03-01 06:23

url?

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sat, 2008-03-01 09:52

Here's an example...

http://www.gerrysfineirishart.com/gallery2/v/reilly/CRW_5918.jpg.html

I have added this to the theme.css
under matrix/local

.one-image {
display: list-item;
border: none;
border-width: 0 0 0 0;
border-style: none;
}

Interesting thing is that using the image block with php external to the gallery (on the homepage) the inline css code works...

See this
http://www.gerrysfineirishart.com

So it is related to something in the theme.css

I feel that something in the theme.css is overriding the inline instructions but which part of the code is it?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-03-01 17:16

This in matrix/theme.css:

.one-image {
display: list-item;
border: none;
border-width: 0 0 0 0;
border-style: none;
}

is not that same as:

.one-image {
	display: inline;
	border: none;
	border-width: 0 0 0 0;
	border-style: none;
}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sat, 2008-03-01 18:28

Sorry yes, I was trying that out, but it made no difference.

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sat, 2008-03-01 18:38

Ok, I've found out that unticking the "use default settings" means that the photos are listed in a column but ticking it makes them into a row - problem solved.

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sat, 2008-03-01 18:43

Now the photos are displayed in a row using the default settings box ticked, but there is no heading or title for the photos - is this a bug?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2008-03-01 19:29

Perhaps Joomla has something to do with it but I can add a imageblock with the titles showing and get them to show horizontally:
http://langleycom.com/gallery2/main.php?g2_itemId=146

all I did was add:

.one-image {
padding-top: 30px;
float: left;
}

to the css.
and added the block to show on the album page.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sun, 2008-03-02 00:35

Ha, you sure did. I wonder why I can't get the titles up AND have it going across?

On another point, there are loads of css codes - where can I get a key so I know what changes what? is there any graphical display of each css code? is there any WYSIWYG editors for themes and adjusting css codes?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2008-03-02 05:45

@css: use FF and the dev tool along with firebug ( http://files.jnewland.com/firebug.mov )

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
itchibahn

Joined: 2006-02-06
Posts: 10
Posted: Thu, 2008-03-06 20:28
markdj wrote:
Ok, I've found out that unticking the "use default settings" means that the photos are listed in a column but ticking it makes them into a row - problem solved.

Where did you find that option? I looked in g2 and in mod_g2bridge_image, but I can't find it.

Also, is there a way to display only all videos or pictures only?

Thanks.

 
markdj

Joined: 2008-03-01
Posts: 18
Posted: Sun, 2008-03-09 17:10

In the site admin, theme settings, click on the image block where you would add it to the sidebar, album or photo display (blocks to show in the...). When you click on it, the options appear below that for default settings - make sure default is ticked. This may be overiden by the album theme settings so check that all albums are using the "Global" tick box.

 
mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Mon, 2008-03-24 20:51

Sorry but I have the site structured in this way : Joomla + Forum PHP3 + Gallery2.
I would like to show imageblock for last photo inserted in Gallery both in Joomla Home Page and Forum.

I wrote all the posts regarding this matter but I cannot understand well in which file add the css, and where add the external-imageblock code (both for joomla and php).

Can you make a tutorial about this, because, as I understand, it's a problem of a lot of user.

Thank You !!!!

Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)