vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   References for vBulletin 4.0 attachments (https://vborg.vbsupport.ru/showthread.php?t=233782)

rEd86 01-21-2010 07:56 PM

References for vBulletin 4.0 attachments
 
Greetings.

I am looking at creating a product and wanted to leverage the attachment system that's already built into vBulletin 4.0. It looks like there's a "vbattach" package that I should be able to use in the "packages/vbattach/" directory.

Before I start digging into the code I was curious if anyone has done something similar or has any insight into the best approach to this. Since 4.0 just came out, I haven't seen much as far as documentation or best practices for development. I want to make sure I don't do anything that is unsupported or will break with future releases.

For example, I noticed in the attachment table, there is a "contenttypeid" field. The "contenttype" table currently has 19 records of the various types of content in vBulletin. Post, SocialGroup, Album, BlogEntry & Article all have the canattach bit set to 1. Can I add my own content type and not worry about a conflicting contenttypeid when vBulletin extends the types of content in the out-of-the-box system?

TIA.

--Ed

Lynne 01-21-2010 08:09 PM

Quote:

Originally Posted by rEd86 (Post 1962710)
For example, I noticed in the attachment table, there is a "contenttypeid" field. The "contenttype" table currently has 19 records of the various types of content in vBulletin. Post, SocialGroup, Album, BlogEntry & Article all have the canattach bit set to 1. Can I add my own content type and not worry about a conflicting contenttypeid when vBulletin extends the types of content in the out-of-the-box system?

TIA.

--Ed

That sounds like something you need to ask the developers over on vb.com. I would *guess* you could, but I'm not a developer so I don't know.


All times are GMT. The time now is 01:40 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.01068 seconds
  • Memory Usage 1,710KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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