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!
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!