vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   AutoGal (https://vborg.vbsupport.ru/showthread.php?t=123079)

Nigh7mar3 08-04-2006 10:00 PM

AutoGal
 
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
  1. Upload the upload folder in your vbulletin root folder
    ex. http://yourbulletinboard.com/
  2. Import autogal.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])
  3. Do the template edits

Open "/includes/functions_forumdisplay.php"

FIND: (line 138)
Quote:

$show['paperclip'] = false;
AFTER ADD THIS (linea 139)
Quote:

$show['autogal_paperclip'] = false; //AutoGal v1.0

FIND (line 325)
Quote:

$show['paperclip'] = true;
ADD THIS AFTER (linea 326)
Quote:

if($vbulletin->options['autogal_enable']==true){$show['autogal_paperclip'] = true;} //AutoGal v1.0
Modify "threadbit" in "Threadbit Templates" ( Styles & Templates -> Style Manager )

REPLACE THIS
Quote:

<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
Quote:

<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

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

Quote:

Originally Posted by yinyang
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

Quote:

Originally Posted by Nigh7mar3
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.


All times are GMT. The time now is 11:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01067 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete