The vB Geek

Go Back   The vB Geek > vB Geek Modifications > Add-ons

Add-ons Modifications and add-ons for vB Geek stuff.

This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Release Tools Display Modes
Morgan's Avatar

vB Version: 3.6.x or 3.7.x

Mod Version: 1.0.0

Released: 06-14-2008

Installs: 17

Last Update: n/a

DB Changes
Installer Included
Uses Plugins
Template Changes
Code Changes
Additional Files
Is a Beta!
Default PhotoPlog Random Thumbs in GARS

This module will display random images from PhotoPlog in GARS. You must have both GARS Pro and PhotoPlog Pro installed for this modules to work.

Installation Steps:
  1. Please note that this module is beta and not supported.
  2. FTP the various PHP files into their corresponding directories on the server:
    • /geek/gars/mods/display
    • /geek/gars/mods/persist
    • /geek/gars/mods/settings
    • /geek/gars/mods/persistsettings
  3. Go to the ACP -> GARS -> Modules -> Register New Module and set the following options:
    • Title: PhotoPlog Random Thumbs
    • Module File: photoplog_random_thumbs.php
    • Comma seperated list of templates to cache: GARS_mod_container
    • Save
  4. Go to the ACP -> GARS -> Modules -> click a module set where you'd like the new module.
  5. Use the Add Modules box to add the new module to the Showthread page:
    • Left drop down menu: PhotoPlog Random Thumbs
    • Right drop down menu: the location you'd prefer
    • Save
  6. Click the PhotoPlog Random Thumbs link:
    • Cache Method: select either Don't Cache or On Edit/New Thread
    • What is the maximum number of images to show: enter a positive number
    • Set the remaining options as you'd prefer
    • Save
  7. Visit a GARS-based showthread page on your site that uses the module set you selected in step three.
  8. Want random images from only the author of the first post to appear?
    • In the /geek/gars/mods/display/photoplog_random_thumbs.php file find the following:
      WHERE moderate = 0
    • Replace that line with the following:
      WHERE moderate = 0 AND userid = " . intval($post['userid']) . "
    • Go back to step five and select Don't Cache for the Cache Method
  9. Cost of installing this module?
    • One query added to process the first post in a GARS-based showthread page using this module
    • Trade-off with some overhead/processing if you choose to cache rather than not cache the module
    • ORDER BY RAND() queries are notoriously bad in that they scan way too many rows in the table
      • You can limit the number of rows that are scanned by selecting category IDs in step five
      • If your equipment is weak or your gallery is large, test the module for performance
Attached Files
You must first click Install before you can download this add on.

Release Tools

By Cocko on 11-12-2008, 08:35 AM

Sounds interresting, I'll look into this in combination with release add-on.
Reply With Quote

Release Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Release Release Starter Category Comments Last Post
How to show PhotoPlog minithumbs in GARS stckhlm Geek Article and Review System 5 01-08-2009 04:39 PM
How to show GAB ads in Photoplog *without* using CMPS? Tigratrus Geek Advertising Banner System 3 08-29-2008 07:13 PM
Rebuild Thumbs? interfx Geek Article and Review System 2 11-28-2006 03:59 PM
testing thumbs acers Articles 0 07-24-2006 03:48 PM
GARS product (Thumbs up) hotwheels Geek Article and Review System 1 01-03-2006 06:40 AM

All times are GMT. The time now is 06:47 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

Release powered by GARS 2.1.9 ©2005-2006