vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help uderstanding how to write data to the dbs in a hack (https://vborg.vbsupport.ru/showthread.php?t=124417)

terrybenge 08-19-2006 07:22 PM

Need help uderstanding how to write data to the dbs in a hack
 
Hi,
I'm new to vb hacks and i'm trying to do a very simple task of adding an extra hidden field to a post.

I'm trying to integrate videoegg.com its a simple process of embedding a control which returns a filename reference to the video you uploaded.

I want to store this reference against the post and when the post is viewed pass back the saved video reference to the player embedded control.

The control bit is fine. The bit I'm struggling to understand is where or how you associate a variable to the post. I'm expecting to have a dbs row for a post to reference so i can store my var against the post (say in an extra field that i put on the table). How do I get the current post id?

When I look at existing hack code I can't understand how you write extra fields data to the dbs. There doesn't appear to be an INSERT statement anywhere. (e.g. looked at the extra threadfields hack)

I'd really appreciate a liitle insight into how this is done.

Many Thanks
Terry

Raman 01-12-2007 06:43 PM

I am in the same situation, trying to integrate videoegg to my vbulletin forum. Just curious were you able to make this work


All times are GMT. The time now is 07:37 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.01709 seconds
  • Memory Usage 1,703KB
  • 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
  • (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