vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Attachment browser (https://vborg.vbsupport.ru/showthread.php?t=231117)

SpankMe 12-24-2009 11:02 PM

Attachment browser
 
In the viewattachments section in moderation.php, is there any way to tell the vB_Attachment_Display_Multiple or fetch_results functions to only return attachments from specified content type/s without modifying the packages/vbattach/attach.php file? Or is there another function that can do this?

I'm rewriting my attachment browser to work in vB4 and I'm using the viewattachments code in moderation.php as the base. I got it sorted to filter by user, but also want to filter by forum and thread.

ageurtse 12-25-2009 12:46 PM

i want to display somthing like that.

i wan't in the members profile an extra tab, inside this tab all uploaded attachments should displayed in there.

how do you display your attachments ?

i run a query on the attachments table, and filter on the user id. you could als filter on threath display.

SpankMe 12-25-2009 07:10 PM

I've got an attachment browser setup on my Kiwi Biker site under quick links. Need to register to view. Also have links under profile, thread and forum tools to view attachments for members, forums or threads.

I had to sort the SQL myself for vB3, but I've now sorted it for vB4 by just using vB's own functions. Look at the viewattachments section in moderation.php as it does pretty much what you want.

ageurtse 01-18-2010 05:18 PM

and how do i use viewattachments ?

would you share the code with me ?

or at least how do you filter out the non image type's ?


All times are GMT. The time now is 07:07 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.00919 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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