HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How many of you would like this in the gallery?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#28346 (In Topic #6512)
Avatar

Community saint

I had in the plans at one time to rewrite the gallery to make it more user friendly as it really badly needs it.
Right now how ever it is frustrating me.
Here is the problem.
If i have Flow mode interface checked in the gallery options the page that shows the images looks all nice and neat and shows the images the way I want but for some of my members do to the fact it shows all the images and one of my galleries has over 800 images in it. Some people can not view it as it either goes to slow for them or crashes the pc.
I then tried to uncheck Flow mode interface and it displays all ugly and what not and has images going down the center and only 1 per row.
I do not mind them being centered but I want them to show up how they were when Flow mode interface was checked.
At the moment I am unable to locate the template that creates that page to make it more like the other one.

Any way my question is how many of you would like it the way I want it because maybe Chris can include it in the next version.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28349
Avatar

Community saint

I found the template its the one called GALLERY_ENTRY_WRAP basically I took out the DIV and put in <center> before and </center> after and got what I wanted.

BTW the center code was in a different template it was in the gallery_page template. and it was around entry.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28350
Avatar

Well-settled

I've not used the Gallery yet, but this sounds good. I think Chris has alot more to do, but it would be nice to be done.


HEllo



Back to the top
 
Posted
Rating:
#28351
Avatar

Community saint

I tried GALLERY_ENTRY_WRAP but it doesn't do anything for me, Amy.

I am still 'hacking' away at the problem, editing most of the templates that I think are connected to this display, however, a generic change in one template affects ALL the displays (as it would), and since I am satisfied with how the 'MP3', or music section is displaying, I am a bit loathe to change things until I can find the one template that will do it for the image gallery and not affect that particular display.

You can view it at Music Room to see what I mean. Changing the display for the gallery images affects the display for the images I have in this section.

I'll keep on looking!


Update: The Music Room is now displaying in 3-column rows (see the posts below to follow the recommendations). Happy turkey!!


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#28353
Avatar

Community saint

Do you have the flow on or off?
If you have it on the edit of that file will not do any thing.

From what I have seen you can remove all the content of one template and not see any change except on that page but some time not at all.
Actually I have several empty templates.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28398
Avatar

This will get things aligned so that there are rows of 3. Each image is centered within it's own third of the total available width.

A new GALLERY_ENTRY_WRAP:

Code

<div class="gallery_media_expose" style="float: left; width: 33%; text-align: center">
   {ENTRY}
</div>

In GALLERY_PAGE, change:

Code

{ENTRIES}
to:

Code

{ENTRIES}

<br class="float_passer" />


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#28400
Avatar

Community saint

yep thats kind of what I ended up doing.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28402
Avatar

Community saint

thanks

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28403
Avatar

Community saint

Maybe it is just me but it might be good if the next version had this in it.

I run http://otakuplayground.com and am hopping to make themes and other things for ocportal even though I no longer use it for otakuplayground.com I still love it and feel it could go far with the right help. It needs themes and needs people to advertise for it.
Back to the top
 
Posted
Rating:
#28413
Avatar

Community saint

Thanks for the 'tip', Chris.

Changed the bits you recommended, but got zilch when I refreshed. Then I remembered that, with a lot of help from you guys, I had also changed GALLERY_FLOW_ENTRY to accommodate how I was displaying my 'Music' gallery pics. So I added the '33%' bit to that as well, and voilá, the display is very much as I, and Amy, want it.

Of course, the inevitable happened and my 'Music' display got zapped. No probs - an hour or so later I'd re-done all the graphics for that section and it also displays as a 3-column display.

More importantly, all the displays are cross-browser compat and also display without breaking anything on lower resolution monitors.

I'll mark this down as a success!!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#29465
Avatar

Community saint

I did what is told here, but so0mehow it did not help :-( The Flow mode is unchecked

Chris Graham said

This will get things aligned so that there are rows of 3. Each image is centered within it's own third of the total available width.

A new GALLERY_ENTRY_WRAP:

Code

<div class="gallery_media_expose" style="float: left; width: 33%; text-align: center">
   {ENTRY}
</div>

In GALLERY_PAGE, change:

Code

{ENTRIES}
to:

Code

{ENTRIES}

<br class="float_passer" />


Back to the top
 
Posted
Rating:
#29470
Avatar

It's an obvious question, but I'd better check – are you sure you're editing the templates in the same theme that the zone for the gallery module uses?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#29664
Avatar

Community saint

No, I edit them the the default theme, because in other themes somehow I dont have templates neither in templates, nor in templates_custom directories.

I understand that they have to be in the galery theme folder, but there are no template files.
Actually, there are no template files in any custom theme folder in my website
Back to the top
 
Posted
Rating:
#29680
Avatar

Files only exist in theme template_custom folders if a template is overridden. Otherwise they are taken from the default themes template set.

However, ocPortal handles all this automatically if you use the template editor.

I suspect the problem here would be that you're manually editing templates, but not manually editing the template cache (which needs doing, as the ocPortal cache doesn't know these behind-the-scenes file-changes are happening).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34264
Avatar

Well-settled

How to set a space between row 1 and 2 vertically?

Back to the top
 
Posted
Rating:
#34289
Avatar

This is a bit tricky to do properly, but if you don't mind having a bit of extra space under the last row as well as between rows, this'd do it (untested):

Code

<div class="gallery_media_expose" style="float: left; width: 33%; text-align: center; padding-bottom: 30px">
   {ENTRY}
</div>

Change '30' as required.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34378
Avatar

Well-settled

This is working great if the Flow is off…

Thanks Chris.
Back to the top
 
Posted
Rating:
#38188
Avatar

Community saint

Hi ;)

Sorry to bump this, but I thought it would be nice to keep it all in the same thread.

3 little questions.

Thumbnails.
When flow is off, the thumbnails are dulled. Flow on, thumbnails have their original bright colour.
How can I get bright thumbnails with the flow option off?

Thumbnails per page.
Choice is between 1, 3, 5, 10 and 25. When you have 3 per row, the last row isn't complete.
  1. It looks silly,
  2. Last row not being complete, most people will think it's the end and won't click on the "next" link.
How can I change the pull-down options to multiples of 3?

Sorting.
When a pic is added, its thumbnail is displayed first, at the top of the list.
Got nothing against that, but then when you click the first thumbnail to display the real pic, the "next" link is dead and you must click on "previous" to see the next image. It's perfectly logical if you know this first pic is in fact the last one, but users will find this misleading.
How do I get the last pics to go at the end of the list?
Or have the "next" link take me to the next picture,/ or a choice to display oldest or most recent first (like in the catalogs),/ or better still how could i modify the order of the pics and have them where I want in the list?





www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#38223
Avatar

Removing fade

This is a effect whereby the image comes into focus when the mouse goes over it.

To remove the effect from ocPortal, change the IMG_THUMB template:

Code

{$JAVASCRIPT_INCLUDE,javascript_thumbnails}
{+START,IF,{$NOT,{JS_TOOLTIP}}}
<img alt="{CAPTION*~}" title="{CAPTION*~}" class="blend" src="{URL*}" />
{+END}
{+START,IF,{JS_TOOLTIP}}
<img alt="" class="blend" src="{URL*}" />
{+END}

Thumbnails per page

That's a very good point.

Change line 697 of site/pages/modules/galleries.php from:

Code

      $_selectors=array(1,3,5,10,25);
to:

Code

      $_selectors=array(1,3,6,12,30);
and line 626 from:

Code

      $max=either_param_integer('max',5);
to:

Code

      $max=either_param_integer('max',12);

We'll make this change official in the next patch release.

Sorting

Answer coming soon


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#38225
Avatar

Sorting

Again, very good point, and we'll make the following fix official in the next patch release also.

In the GALLERY_NAV template, switch where it says {NEXT_LINK*} with where it says {PREVIOUS_LINK*}. Leave everything else unchanged.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Expand