PDA

View Full Version : AutoGal


Nigh7mar3
08-04-2006, 10:00 PM
AutoGal v1.0

About AutoGal
It's my frist mod, I'm a web-developer but it's the first time I modify vB :D
I tested this mod on 3.5.4 and 3.5.5 with no problems.

What does this do?
Creates a new page where you can display all the attachments of the choosen thread.

How you choose the thread?
The standard paperclip is replaced with a golden paperclip, click to open the AutoGal page.

Features

Next Release Features

Know Bugs
None

Know Issue
The page can be loaded without specify a thread

Requirements
Attachments Thumbnails MUST be enabled.

Installation


Upload the upload folder in your vbulletin root folder
ex. http://yourbulletinboard.com/

Import autogal.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

Do the template edits


Open "/includes/functions_forumdisplay.php"

FIND: (line 138)

$show['paperclip'] = false;


AFTER ADD THIS (linea 139)
$show['autogal_paperclip'] = false; //AutoGal v1.0


FIND (line 325)
$show['paperclip'] = true;

ADD THIS AFTER (linea 326)
if($vbulletin->options['autogal_enable']==true){$show['autogal_paperclip'] = true;} //AutoGal v1.0

Modify "threadbit" in "Threadbit Templates" ( Styles & Templates -> Style Manager )

REPLACE THIS
<if condition="$show['paperclip']">
<img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" />
</if>

WITH THIS
<if condition="$show['paperclip']">
<if condition="$show['autogal_paperclip']">
<a href="autogal.php?$session[sessionurl]ti=$thread[threadid]" title="AutoGal">
<img class="inlineimg" src="$stylevar[imgdir_misc]/gold-paperclip.gif" alt="AutoGal - <phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a>
<else />
<img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" />
</if>
</if>

I hope you like this mod, give me feedback ( do you like it? ) and click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=123079)

ENJOY!

Sean S
08-05-2006, 01:49 AM
very neat hack, especially for your first :). Keep up the good work!

David_R
08-05-2006, 04:34 AM
nice one, i will test this first

yinyang
08-05-2006, 04:11 PM
can this be modified so it uses only a plugin and no file hacking?

Nigh7mar3
08-05-2006, 06:43 PM
can this be modified so it uses only a plugin and no file hacking?
yes it possible, cause the file mod its needed only to get the golden paperclip.

but its not friendly cause you need to know the thread id and pass it to autogal manually.

maybe in the next release I can put a form where insert threadid, but I dont like this solution.

OmekaTeam
08-05-2006, 06:59 PM
yes it possible, cause the file mod its needed only to get the golden paperclip.

but its not friendly cause you need to know the thread id and pass it to autogal manually.

maybe in the next release I can put a form where insert threadid, but I dont like this solution.
Complimenti!!!!!!Ciao:) :) :)

TotalTorque.net
04-26-2007, 09:18 PM
Installed.

leftie
04-26-2007, 09:43 PM
This looks neat, i'm going to install this later. Thanks.