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)
-   -   Thumbnails of Attachments on Forum-Display (https://vborg.vbsupport.ru/showthread.php?t=92565)

Harald_T 07-31-2005 02:11 PM

I'm already working on something like this for my gallery-hack.

mooj 07-31-2005 02:43 PM

Good work Harald_T ..
and im glad to see your gallery .. :)

keep on going .. ;)

Andreas 08-01-2005 12:03 PM

Nice Hack. But you might want to consinder releasing it as a Plugin to avoid File Edits:

Hook: forumdisplay_query
PHP Code:

if (in_array($forumid, array(XXYY))
{
    
$hook_query_fields .= ", attachment.attachmendid AS attachmentid";
    
$hook_query_joins .= " LEFT JOIN " TABLE_PREFIX "attachment as attachment ON (attachment.postid = thread.firstpostid)";


To make it even more Userfriendly, you could add a setting Show Attachment Thumbnails to Forum Manager, so Users could easily turn this On/Off for individual Forums.

Harald_T 08-01-2005 04:08 PM

This is a great idea.

If you allow, i will try to add the query to my gallery-hack.

Andreas 08-01-2005 04:44 PM

Feel free to use it :)

Harald_T 08-01-2005 04:58 PM

Besides a little typpo it works fine

attachment.attachmendid must be attachment.attachmentid

Andreas 08-01-2005 06:52 PM

Wonder how this happened ^.^

???`S?LV?R???` 09-16-2005 10:40 AM

Quote:

Originally Posted by KirbyDE
Nice Hack. But you might want to consinder releasing it as a Plugin to avoid File Edits:

Hook: forumdisplay_query
PHP Code:

if (in_array($forumid, array(XXYY))
{
    
$hook_query_fields .= ", attachment.attachmendid AS attachmentid";
    
$hook_query_joins .= " LEFT JOIN " TABLE_PREFIX "attachment as attachment ON (attachment.postid = thread.firstpostid)";


To make it even more Userfriendly, you could add a setting Show Attachment Thumbnails to Forum Manager, so Users could easily turn this On/Off for individual Forums.

I could not get this to work

I got this error on top of the page:
Parse error: parse error, unexpected '{' in /var/www/html/message_board/forumdisplay.php(799) : eval()'d code on line 2

and this one as the vbulletin message:
Unable to add cookies, header already sent.
File: /var/www/html/message_board/forumdisplay.php(799) : eval()'d code
Line: 2

Harald_T 09-18-2005 09:20 AM

Quote:

attachment.attachmendid AS attachmentid
Did you see the little typpo? It has to bee attachment.attachmentid, not attachment.attachmendid

mhobelsb 09-19-2005 08:42 AM

hi Harald_T,

really nice addon. i already use it in my forum and for sure want to use it as soon as the gold is released. any chance that you change it to work as plugin? would really love that. not that the file changes are big, but it would make updateing much easier. :)

thanks again for the good work

martin

ps.: don?t really get there to use the Query of KirbyDE. maybe i am just not really awake. :)


All times are GMT. The time now is 07:53 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.01172 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_php_printable
  • (2)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