Gallery 1337 Thumbs (Just incase basic templates bore you.)

Empty2002

New member
Right well I did not like the way the Thumbnails appeared on the Forum Index from Gallery, just made it look like every other site. I also was not happy with the fact that they ONLY showed on the Forum Index.

This is just a nice little change, also my first released plugin of any kind so any virtual bullying will be counter attacked with an onslaught of mouldy oranges.

So here is a little plugin by me, basically just an edit of the original so credit must go to too. Wonderful thing he/she/it has done with this gallery.
smile.gif


For examples see the screenshots.

By the way this requires that you actually have the Gallery Gallery Installed. ( )




Installation Instructions:
  1. Upload the Plugin.
  2. Add the following code to any Template. For best results add it somewhere such as the Very Bottom of the navbar or soemthign else which is included throughout the site.
    wink.gif

    $Gallery_thumbs
  3. Your done.
If you would like to edit the appearance or number of thumbnails shown then this next part is for you.
wink.gif


Editing the appearance of the Thumbnails.
Open the Gallery 1337 Thumbs Plugin for editing.
Search for this Code:

Mã:
<img src=\"".$Gallery_location."/file.php?".$vbulletin->session->vars['sessionurl']."n=".$Gallery_fileid."&w=s\" style=\"width: 55px; height: 55px; padding: 1px; margin: 0px; border: 1px solid #CCCCCC;\" />

Edit anything in the 'style' tag to suit.

To edit the number of Thumbnails Shown.
Open the Gallery 1337 Thumbs Plugin for editing.
Search for this Code:

Mã:
LIMIT 10

And simply change the number to the number of Thumbnails you would like to appear.


To show on vBadvanced (If you are displaying thumbs in header or navbar etc..)
Admin CP > vBA CMPS > Edit Pages > Home Page > Portal Output Global Variables > add: Gallery_thumbs



Feel free to read my blog if you want, not asking for much and I know you will love it, about as much as Honey Loves Ants
smile.gif
.



Updates:
To install updates simply upload the new plugin over your old one and redo file edits.

17th April 2006 - v1.5
- Fixed Problem with Alignment of more than 5 Images.
- All XHTML Valid now too.

 
Back
Top