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.


Displaying a larger image in the gallery

Login / Search

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

Community saint

My client, the artist's son, wants to be able to use smaller images (e.g., 600px tall) and then when they are clicked on, a larger image appears. Is this doable using the slideshow (which he likes, I'd just as soon do away with it). I guess it would be like a lightbox for the slideshow. If not doable in the slideshow, could it ne done using thumbnails in the grid->600pc tall images->large image?

Thanks for any help.

Bob
Back to the top
 
Posted
Rating:
#75906
Avatar

Community saint

Yes it is. That is exactly what I am doing on my site.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75907
Avatar

Community saint

temp-

I thought I remembered you saying that you were doing something like this but I couldn't find the post when I searched.

Are you using the slideshow or are you using the latter example of grid thumbnail->larger->largest? Is it a reasonably easy change and are you generating the smaller size images automatically.

Actually, it just dawned on me that you probably told me about this when you were helping me with getting the larger images for my catalog entries.

Bob
Back to the top
 
Posted
Rating:
#75908
Avatar

Community saint

BobS said

I thought I remembered you saying that you were doing something like this
I thought you might once I brought it up again.
Are you using the slideshow or are you using the latter example of grid thumbnail->larger->largest?
Just the normal display method (whatever that is). The slide show just uses that, so I didn't have to add anything specifically for slideshows.
Is it a reasonably easy change
Most reasonable, I'd almost say trivial.
and are you generating the smaller size images automatically.
If a thumbnail does not exist it is auto-generated on demand.
Actually, it just dawned on me that you probably told me about this when you were helping me with getting the larger images for my catalog entries.
I think I mentioned it in a 2 or 3 threads, but this is the one I was thinking of: View topic: How to add this link to large image? - ocPortal .

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75910
Avatar

Community saint

Thanks, temp, as usual. I'll give this a go tomorrow when I am fresh.

Bob
Back to the top
 
Posted
Rating:
#75982
Avatar

Fan in action

temp1024 said

If a thumbnail does not exist it is auto-generated on demand.

Not to be a poop, but to add to this you do need to have GD image library installed on your server and then the radio box ticked/checked within your sites Configuration settings:

Home » Admin Zone » Setup » Configuration » Site options>>Environment~Use GD image library

Use GD image library
Is the GD image library installed and enabled on this server? This is a strongly recommended thing to have installed, as it allows auto-generation of image thumbnails.


And if you want the latest image submitted to a gallery and the latest image to be used for the that gallery's thumbnail, the option needs to be ticked/checked within configuration

Home » Admin Zone » Setup » Configuration » Feature options>>Galleries~Take latest thumbnails as rep-images

 along with having GD installed on your server.

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#75985
Avatar

Community saint

Not to be a poop de-pooper Captain Kirk, but Bob has been using thumbnails for a while so he has what ever is needed.

Also,
And if you want the latest image submitted to a gallery and the latest image to be used for the that gallery's thumbnail, the option needs to be ticked/checked within configuration
is misleading as the part I've highlighted implies that your images will not be posted to the gallery unless you set take latest thumbnails as rep-images which is definitely not correct.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75988
Avatar

Community saint

temp1024 said

Not to be a poop de-pooper Captain Kirk, but Bob has been using thumbnails for a while so he has what ever is needed

Yep, and rather nicely after all the help temp provided.

As far as having GD installed on your server, the following is from the system requirements for ocPortal:
ocPortal requires:
A web server that runs PHP. PHP is software which provides the environment that ocPortal is written for. ocPortal requires PHP version 4.2 or higher. If a web-host has a PHP version older than this, it is not just out-dated, but also insecure: no competent web-hosts still do
A PHP environment with the following enabled: GD2 extension, file uploads with at least 5MB (or higher, depending on your daily needs), mySQL binding, a maximum execution time of at least 30 seconds. A competent web-host geared towards running PHP web applications should be able to provide this. Also key functions may not be disabled (PHP can be stripped down heavily by disreputable web hosts) - the installer will warn if any critical functions have been
A PHP memory limit of at least 20MB (bare minimum - you may see errors if caches are disabled, whilst caches fill, if you are doing imports, if you are doing Admin Zone searches, or if you are a programmer with debug mode on)
At least 50MB of disk space, plus your needs for space for downloads, images, etc. No maximum file size limit under 25MB or file type whitelists (some free web hosts will impose these limits - which explains why data.ocp might disappear when you try to upload it)
A web server that runs mySQL (*), version 4.1 or higher. mySQL is the database software (software which allows creation of a number of separate databases) which ocPortal uses to store the majority of its data. Often web hosts will quote a number of databases that web-hosting comes with: ocPortal only requires a single mySQL database to function. At least 5MB of database storage space is required, which should be available on any reputable webhost
A web server running IIS (the Microsoft web server), Apache (the common Linux web server), or LiteSpeed. It is very unlikely you will find a web-host that provides something else. Other servers might work but are not supported
That the web server is not overloaded with too many users, or has very poor performance
That the web server does not have a Firewall that stops outgoing connections or internal connections to itself
Connectivity to a mail server (SMTP) so that outgoing email can be sent out to the staff email address or the addresses of individual members

Most software I've used over the last few years has required GD and/or ImageMagick. I wouldn't consider a host that does not provide this as standard.

Bob
Back to the top
 
Posted
Rating:
#76084
Avatar

Fan in action

Sorry, I mess up on that sentence. Figured my paths and quote would have taken over, I am redundant, but thanks for addressing it. Normally I would have never caught what was posted as I would have no reason for reading this thread. That afternoon I had been directed to this thread by a client I was helping the evening before install ocPortal.  I made it a point then to add my point to the thread, but did not prop my post.

My client was having issues displaying any thumbnails. I believe GD2 pertains mainly to .png and .gif files if I recall. Her host is a dedicated server which a friend has control of. Long story short, GDL was not enabled. I have never had an issue with thumbnails before. I assume ocp, as smart as it is, knew GD2 was not available so it left the radio button un-ticked after the install. During my installs the radio button has always automatically been ticked as I have GDL installed and enabled on my server. This was throwing me for a loop, having the one radio button located in an entire different area of configuration.

As far as GDL being a standard and install and active, different strokes for different hosts I guess. I always have wonder why some shared hosting services offer one feature and the next does not when all that is needed sudo apt-get command or similar to the repository and restart. In the case of this sever; I believe it used primarily for VoIP. I had the host run the install command and it came back as GD2 being installed. I then had him modify the php.INI to enable the GD library and all was fine with the world once again. I assume whom ever set the server up either did a manual install of sorts which did not include GD2 or it was that way right from the repository.  Or maybe the server is running a core Fedora or Debian platform, as I believe anything Ubuntu/Unix would have GD auto included and default set to be active. I should say anything system running Aptitude because every setup I deploy is done using “apt-get” command and GD2 is fully really to roll??  Not sure as I have never seen this server nor accessed it its DB.

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
Posted
Rating:
#76085
Avatar

Fan in action

It's maybe not what you looking for, I've use to embed a link to the big images in the thumbnails on some of the websites I created. I was using Localhostr.com for to store the big pictures.

Localhostr is a free service with no other limits than just max 50 MB per file doesn't matter what kind of file. There is a widget available for to upload the files and get the working link here: http://localhostr.com/files/35xRWLb/lhu-1.2.5.exe
and that Widget looks like:
http://localhostr.com/files/fGixa9b/lhr125.jpg It just works as Drag'n Drop and Click

I use Localhostr since years without any problems, it's the best picture and file hoster I ever had worked with.
May you like to give them a try.
Back to the top
 
Posted
Rating:
#76086
Avatar

Fan in action

Just to be a little more clearer for those reading this thread down the road, I will redo my original post hoping it comes out much more clearer and correct this time. All my experiences installing ocPortal, besides being involved with the one I just detailed above, have involved servers which have the GD2 Library properly installed and enabled. Now:

This path and the radio button it leads you to:

Home » Admin Zone » Setup » Configuration » Site options>>Environment~Use GD image library

For me, has always pre-ticked after the install and setup wizard. I assume the software (ocPortal) learns that your server has GD2 installed and running, so it automatically pre-ticks the button for you during the installation process.



This path and radio button it leads to:

Home » Admin Zone » Setup » Configuration » Feature options>>Galleries~Take latest thumbnails as rep-images

After the install DOES NOT have the radio button pre-ticked. So whom ever will need to follow the above path and tick this button if they want all galleries within the entire site to display a thumbnail for the most recently submitted image to that particular gallery. When this button is left un-ticked,the default becomes the oldest image within that gallery being used as the thumbnail.


I am not sure if the radio button for the "taking the latest" thumbnail is included within the setup wizard or not. I believe this radio button and feature available offered during the setup wizard. Maybe not this button is left out based on what I choose during question number one of the setup wizard? Maybe I pass right over it? Either way I always find myself digging around for the option to display the latest thumb nail. IMO not an issues at all but more of an observation. be

:)

"You Can't Always Get What You Want"
Mick Jagger, Rolling Stones: 1969~Let It Bleed Album 
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: