TodayPlus Boards v2

Programming and MOD Forums => SPGM-Vid => Topic started by: Peetz on January 19, 2006, 05:19:42 AM

Title: Different thumb for movie-folder in a picture-gallery
Post by: Peetz on January 19, 2006, 05:19:42 AM
Hi there,

I just started using SPGM-vid and have it up & running. Now I have a question about the folder thumbs. I'd like to use a different thumbnail for the link to my movie-gallery in the picture-gallery to make it obvious this wil lead my visitors to a movie-section. How can I change the thumbnail for just one folder instead of replacing the folder.jpg in my flavours-folder..? Hope someone can help me...  :?

Greetz
Title: Different thumb for movie-folder in a picture-gallery
Post by: jhollin1138 on January 19, 2006, 10:05:38 AM
There are two ways to do this, a simple way and a little more complicated way.

To make this change the simple way this is what you need to do.

SPGM has a standard feature that would help.
Quote from: spgm.conf# You can also use a pre-defined thumbnail: put it at the same level than the
# gallery directory and name it _thb_<gallery directory name>.<extension>, which
# takes over the $gallery_icon variable's role.
To use this feature when having SPGM-Vid display a link just to the Video Galley directory (by default "vid/") create a thumbnail image (if using the default settings "_thb_vid.jpg").  Place this thumbnail in the Video Gallery Directory.  SPGM-Vid will display this image instead of the standard folder image.

On a side note, I had a bug in bug in a past version of SPGM-Vid that supported this feature.  It was fixed in v1.0.5 (http://forums.jhollin1138.com/viewtopic.php?p=15355#15355).

The complicated way would require you to change some SPGM and SPGM-Vid files.  If you are interested in this feel free to ask, I'll post the instructions.
Title: Different thumb for movie-folder in a picture-gallery
Post by: Peetz on January 25, 2006, 05:52:34 AM
Thanx for the options! I tried this simple one by placing a nice thumb named '_thb_vid.jpg' into my '/vid' folder. By doing so, the link on my root-picture gallery totally disappears. So, I'm kind of interested in the difficult option ;)

Greetz
Title: Different thumb for movie-folder in a picture-gallery
Post by: jhollin1138 on January 25, 2006, 11:25:56 AM
Quote from: PeetzThanx for the options! I tried this simple one by placing a nice thumb named '_thb_vid.jpg' into my '/vid' folder. By doing so, the link on my root-picture gallery totally disappears. So, I'm kind of interested in the difficult option ;)
Well, that shouldn't have happened.  I'll run some test and determine what the problem is.
Title: Different thumb for movie-folder in a picture-gallery
Post by: jhollin1138 on January 25, 2006, 02:01:26 PM
Quote from: jhollin1138
Quote from: PeetzThanx for the options! I tried this simple one by placing a nice thumb named '_thb_vid.jpg' into my '/vid' folder. By doing so, the link on my root-picture gallery totally disappears. So, I'm kind of interested in the difficult option ;)
Well, that shouldn't have happened.  I'll run some test and determine what the problem is.
Ok, I have ran a few test and it should be working as is.  Below I included a screen capture showing everything working fine.

You are running the must recent version of SPGM-Vid right?
Title: Different thumb for movie-folder in a picture-gallery
Post by: Peetz on January 26, 2006, 05:44:41 AM
Hello again, I don't exactly understand what can be wrong then. I have the newest spgm-vid running (where exactly can I check to be 100%?) and everything works fine (see below). But when I simply put a thumb named '_thb_vid.jpg' into the vid/ directory, my link in my picture gallery dissapears  :cry:
Title: Different thumb for movie-folder in a picture-gallery
Post by: jhollin1138 on January 26, 2006, 08:57:07 AM
Quote from: PeetzI have the newest spgm-vid running (where exactly can I check to be 100%?) ...

The easiest way to check if you are running a version of SPGM-Vid that has been fixed to support a gallery thumbnail is to see if a line similar to the code below is in your "spgm-vid.lib.php" file.
define ('VID_LINK_MAIN', true); // toggles to show a link to SPGM-Vid on the
This line was added in v1.0.6.

In addition to this post, I also sent you a PM.
Title: Different thumb for movie-folder in a picture-gallery
Post by: jhollin1138 on January 26, 2006, 10:58:27 AM
Also, make sure you are running the most recent version SPGM.  SPGM-Vid calls a few functions from SPGM that have been added with the recent release of SPGM.  If these functions aren't found, it can cause the problem you are having.