Image Types
By Paul
3.63/5 based on 8 votes. The median rating is 4.
By Paul
By default, you have [Links Only]two types of links: regular and reciprocal[/Links Only][Gallery Only]one type of image: regular[/Gallery Only][Manual Only]one type of item: regular[/Manual Only]. Suppose you wish to create another group called 'myimagegroup'.
First, go to Admin Panel -> Settings -> Links. Find 'Image Types' near the top. Add a comma after the existing type(s) you see there, and type your new group (do not leave a space). In this case, we'll be adding ',myimagegroup'. You can also set a display name here if you want that to be different from the name used in templates. Save your settings.
Next, edit your 'show images in category' template. In order to create a unique style for this image type (by default it shows with the same HTML as regular images), copy the style which has been used for regular images and change it to fit what you wish for your new group. For example:
You will also need to make use of this image type in your 'search all' and 'search images' templates. In these templates, the HTML is similar but you should use slightly different opening and closing comments:
If you have set 'mix image types' to 'no' in your settings, the images of this type will appear in the results in the position where you put the HTML. Thus if you plut your new group on top, the images of this type would show up above all others. If you set 'mix image types' to 'yes' in your settings, then the results will be mixed so that the position is determined only by the sort order and not by the type of image -- but each image will still be displayed using the HTML of its particular type, so that it's distinguished.
Using Only One Image Type
Sometimes, people don't want to use multiple link types. The best way to handle this is to simply switch off image types at Admin -> Settings -> Images. This will make everything be considered a regular image with no prompt for the type.
First, go to Admin Panel -> Settings -> Links. Find 'Image Types' near the top. Add a comma after the existing type(s) you see there, and type your new group (do not leave a space). In this case, we'll be adding ',myimagegroup'. You can also set a display name here if you want that to be different from the name used in templates. Save your settings.
Next, edit your 'show images in category' template. In order to create a unique style for this image type (by default it shows with the same HTML as regular images), copy the style which has been used for regular images and change it to fit what you wish for your new group. For example:
<!-- BEGIN MYIMAGEGROUP IMAGES -->
<blink><b>Extra special type of image: <a href="http://scripts.webmastersite.net/wsngallery/manual/{TRACKIMAGEURL}">{IMAGETITLE}</a></b> </blink> <br />
<!-- END MYIMAGEGROUP IMAGES -->
You will also need to make use of this image type in your 'search all' and 'search images' templates. In these templates, the HTML is similar but you should use slightly different opening and closing comments:
<!-- BEGIN MYIMAGEGROUP -->
<blink><b>Extra special type of image: <a href="http://scripts.webmastersite.net/wsngallery/manual/{TRACKIMAGEURL}">{IMAGETITLE}</a></b> </blink> <br />
<!-- END MYIMAGEGROUP -->
If you have set 'mix image types' to 'no' in your settings, the images of this type will appear in the results in the position where you put the HTML. Thus if you plut your new group on top, the images of this type would show up above all others. If you set 'mix image types' to 'yes' in your settings, then the results will be mixed so that the position is determined only by the sort order and not by the type of image -- but each image will still be displayed using the HTML of its particular type, so that it's distinguished.
Using Only One Image Type
Sometimes, people don't want to use multiple link types. The best way to handle this is to simply switch off image types at Admin -> Settings -> Images. This will make everything be considered a regular image with no prompt for the type.
Rating:
3.63/5 based on 8 votes. The median rating is 4.
Submitted: 09/25/03 (Edited 04/06/08)
Description: Adding a new group of images.
Views:
6598 views. Averaging 3 per day.
In the most recent 30 day period, there've been 60 views.

Print
E-Mail