vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Outstanding Questions (https://vborg.vbsupport.ru/showthread.php?t=91203)

VBCoder 06-27-2005 08:48 PM

Outstanding Questions
 
Hi. This forum has been a great resource - I'm still stumped on the following issues, and was hoping someone could help me out:

1) Is there a way to flush the mail queue (that is, send all of the queued mails immediately)?

2) How do you use the vB API to access the database?

3) How do you use the vB API to add a new post / reply? (I did something like this, but it didn't work entirely.)

4) Is there anyway to show the excerpt from the message beneath the message, on the forum index page?

I'd really appreciate if anyone could get me started on any of these.

Andreas 06-27-2005 08:55 PM

1) You would have to do this manually, eg. LOCK mailqueue, SELECT, send mails, UNLOCK
2) ??? Class vB_Database, vB_Database_Alter
3) function build_new_post()
4) ??? function fetch_trimmed_title()

VBCoder 06-28-2005 02:09 AM

Kirby,

Thanks for the speedy reply. I already do #3, I just thought I'd be better off "upgrading" to the DM API. Re #2 & #4 : I guess the ??? mean you feel it should be easy... (shrugs) - okay, I'll do some more work.

Re #1: Isn't their code already to flush the queue? I mean, the system must do it sometimes. But I couldn't find it...


All times are GMT. The time now is 06:28 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.01040 seconds
  • Memory Usage 1,707KB
  • 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
  • (3)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