vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Database Table Definitions (https://vborg.vbsupport.ru/showthread.php?t=107991)

lionheart53 02-14-2006 07:59 PM

Database Table Definitions
 
I'm working on some coding that needs to interact direct with the database from a standalone application. I can probably make sense of a lot of it but is there any posting or information that explains the different database tables and their columns and what they're used for?

Thanks in advance.

Don

Andreas 02-14-2006 08:05 PM

AFAIK there is none.

But most stuff should be self-explanatory.
If you come across smth, you can't figure out, ask.

lionheart53 02-14-2006 08:08 PM

Thanks. Thought I'd try. I'm a database geek so can probably figure most out but it's always nice when someone else has already.

I'll open a new thread if needed but do you know where the coding is that sends the instant email notifications of new posts?

Andreas 02-14-2006 09:13 PM

You mean thread/forum subscriptions?

Tables subscribeforum and subscribethread

lionheart53 02-14-2006 10:24 PM

Thanks. Actually I'm trying to find the actual PHP code that sends the messages to those who get instant notifications.

Andreas 02-14-2006 10:27 PM

exec_send_notification(), functions_newpost.php
digestweekly.php
digestdaily.php

lionheart53 02-14-2006 10:27 PM

I should say that what I want to do is basically set the reply to address of the message to something that changes with each sent message.

Andreas 02-14-2006 10:28 PM

Hook
mail_send
might help.

lionheart53 02-14-2006 10:31 PM

Thanks. Do you know if exec_send_notification in the functions_newpost.php is used by anything other than the instant post notifications? Just want to figure out if I can change that function directly or need to copy it and change the calls.

Dang your quick.

Andreas 02-14-2006 10:36 PM

There are 2 calls for exec_send_notification()

- in build_new_post(), functions_newpost.php for unmoderated posts
- in moderate.php after a moderated post has been approved

hapbird 02-15-2006 02:22 PM

Quote:

Originally Posted by Andreas
There are 2 calls for exec_send_notification()

- in build_new_post(), functions_newpost.php for unmoderated posts
- in moderate.php after a moderated post has been approved

where is build_new post called?

whats an example usage of build_new_post look like?

Thanks

lionheart53 02-15-2006 07:48 PM

Okay, I'm starting to understand a lot more (looking at hooks, etc). I see the mailqueue gets all the queued messages, can you tell me where I find the code that actually ends up processing the queue. I do see exec_mail_queue which fires off exec_queue but the only place I see exec_mail_queue being called is in exec_shut_down which I'd imagine there is somewhere else it's being called. Or a cron job to send (but can't seem to find it).

I have to say, the hooks system is pretty nice and overall I'm really impressed with a lot of this now that I'm starting to understand more.

Andreas 02-15-2006 08:04 PM

exec_shut_down() is being called on every frontend-page (either though a registered shutdown function or from print_output(),and in some cases directly).


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.01058 seconds
  • Memory Usage 1,731KB
  • 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
  • (13)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