vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Starting New Threads via Script Call (https://vborg.vbsupport.ru/showthread.php?t=60226)

akiy 01-14-2004 10:25 PM

Starting New Threads via Script Call
 
I have a news system on my website that I coded up in php myself that I would like to hook up to vBulletin 3.0. Basically, I have a need that whenever a news item gets posted onto my front page, the "News System User" needs to start a new thread with the same news item into the System News forum. In other words, I need to have a way to start new threads automatically (ie called from another script).

I've hacked newthread.php in my current v2 vBulletin installation that does this, but I was wondering if anyone had any tips on doing this elegantly in v3.

Is there anything like this that has been posted yet for vBulletin 3?

NTLDR 01-14-2004 10:35 PM

Take alook at the build_new_post() function in includes/functions_newpost.php and newthread.php to see how the arrays etc are passed to it.

shad-gt 01-14-2004 10:46 PM

hi,

Also you could use the vbulletin mysql tables. Create one Newsboard. Set the permission to the Newsposters.

And than read out with an php script the news out of the vbulletin database. Replys are comments. With that output you can do everything...

I think thats better than a single news script?

akiy 01-15-2004 03:32 AM

Quote:

Originally Posted by NTLDR
Take alook at the build_new_post() function in includes/functions_newpost.php and newthread.php to see how the arrays etc are passed to it.

Hi NTLDR,

Sounds like a good place to start. I'll check out the function there and also read through newthread.php.

Shad-gt, I already have a separate database/table for the news entries and I've already written the other support scripts for the news items (eg allow people to submit news, have admin check it over and edit if necessary, etc). Also, I have other sections of the site (weekly poll, reviews, etc) that will need the ability to post into the forums, too. Thanks for your thoughts, though.

If anyone else has any other thoughts, I'd be happy to hear them, of course.

version2 02-07-2004 11:50 PM

Quote:

Originally Posted by akiy
Hi NTLDR,

Sounds like a good place to start. I'll check out the function there and also read through newthread.php.

Shad-gt, I already have a separate database/table for the news entries and I've already written the other support scripts for the news items (eg allow people to submit news, have admin check it over and edit if necessary, etc). Also, I have other sections of the site (weekly poll, reviews, etc) that will need the ability to post into the forums, too. Thanks for your thoughts, though.

If anyone else has any other thoughts, I'd be happy to hear them, of course.

So, did you ever get anywhere with this? I am interested in how you went about it.


All times are GMT. The time now is 10:05 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.01084 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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