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)
-   -   Attachment Browser (https://vborg.vbsupport.ru/showthread.php?t=103519)

El_Muerte 12-23-2005 05:35 AM

Quote:

Originally Posted by cbr929rrerion
OK.. I have to admit but can you or someone make it do thumbnails that are like 150 X 150 or so.. I have my thumbs set large so it dont work too well, is there a way to add a way to set thumb size ?

If we can get the images smaller I will enable it in a heartbeat...

afaik there is no nice way to scale thumbnails, or at least not widthout a lot of extra processing. But you could force dimensions by editing the 'attbrs_attachment_bit' template and add `height="100"` to the img tag, or something like that.

Wachtmeister 12-23-2005 10:54 AM

Can this add on also be shown only in seperate threads or categories?

I have a huge Avatar and Smiley compilation and would love to have this one only on those threads or forums.

Before i import the product, i ask ;)

Thanks, Wachtmeister

silurius 12-23-2005 06:20 PM

How should I edit the product to address the dupe column name?

Code:

Database error in vBulletin 3.5.2:

Invalid SQL:
ALTER TABLE forum ADD gallery SMALLINT(6) DEFAULT '0' NOT NULL;

MySQL Error  : Duplicate column name 'gallery'
Error Number : 1060
Date        : Friday, December 23rd 2005 @ 12:16:57 PM
Script      : http://www.examplesite.com/forum/admincp/plugin.php
Referrer    : http://www.examplesite.com/forum/admincp/plugin.php?do=productadd
IP Address  : 71.131.12.1
Username    :
Classname    : vb_database

Never mind I got it. Changed "gallery" to "atb_gallery" in plugin.

cbr929rrerion 12-24-2005 02:57 AM

Quote:

Originally Posted by El_Muerte
afaik there is no nice way to scale thumbnails, or at least not widthout a lot of extra processing. But you could force dimensions by editing the 'attbrs_attachment_bit' template and add `height="100"` to the img tag, or something like that.

I did that and added my theme to it and a scroll style.. looks sweet.. My members love it..

tamborinegal 12-24-2005 05:25 AM

Wow El_Muerte, this looks really neat. I'm too busy with Christmas stuff to install it now but I'll be coming back to look at this again for sure.

Thanks

Clancy

cbr929rrerion 12-26-2005 12:46 PM

on all the attachements on my board there is the thumb and the attachment.. could you not have it putt the thumb for the image?if so where would you change that one part?

El_Muerte 12-27-2005 11:39 AM

It does use the thumb, and the thumb only. Attachments without a thumbnail are not displayed.

cbr929rrerion 12-30-2005 03:18 PM

oh.. ok.. question... can we set the the default to be yes in show attachement browser? I have lots of forums and its a job going in and setting them all to yes..

Any way to make the xml default to yes not no?

YLP1 12-30-2005 04:28 PM

I installed as per instructions but nothing shows on my forumdisplay page. I aslo cannot find the two templates that were supposed to be added. I am fairly new to all of this so any help is very greatly appreciated.

Edited to add: I took a peek at the manage products in admincp for this modificiation and this is what the install code says:

Quote:

$res = $db->query("DESCRIBE " . TABLE_PREFIX . "forum gallery");
if ($colinfo = $db->fetch_array($res))
{
if (!preg_match("#int\(#", $colinfo["Type"]))
{
print_dots_stop();
print_cp_message('Unable to install this plugin because the forum table is not compatible. (column gallery has an invalid type.)');
}
}
else {
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD gallery SMALLINT(6) DEFAULT '0' NOT NULL");
}
Is this why the templates were not added and how do I fix this?

Thanks in advance, again.

El_Muerte 12-30-2005 07:00 PM

Quote:

Originally Posted by cbr929rrerion
oh.. ok.. question... can we set the the default to be yes in show attachement browser? I have lots of forums and its a job going in and setting them all to yes..

Any way to make the xml default to yes not no?

Yes, in the ALTER TABLE db query just change the "DEFAULT '0'" to "DEFAULT '1'"

Quote:

Originally Posted by YLP1
I installed as per instructions but nothing shows on my forumdisplay page. I aslo cannot find the two templates that were supposed to be added. I am fairly new to all of this so any help is very greatly appreciated.

The templates are grouped in the group "Attachment Browser".


All times are GMT. The time now is 01:59 PM.

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.01037 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete