vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Automatic Thread Creation (https://vborg.vbsupport.ru/showthread.php?t=176860)

PaulSonny 04-22-2008 12:28 PM

Automatic Thread Creation
 
Hello everyone,

In my latest modification, I have implemented it so that it creates a new thread in a forum you specify, for purposes lets say the Forum ID is 5.

The thread is created in this forum automatically and is done without any errors. What I am wondering if this is possible.

much like the automatic thread creation, can you create a reply to an existing thread, more to the point, can I create a reply to one of the threads automatically created above?

if so is this pretty much done the same way as adding a new thread?

Thanks, Paul.

Opserty 04-22-2008 01:48 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=102418" target="_blank">Create Posts</a>

You might need to browse the thread to see if there are updates/corrections to the initial article.

PaulSonny 04-27-2008 05:12 PM

Thanks for that and ive got it working almost 100%, there is just one small issue im having.

The code in the above hyper is shows as $postthreadid = '4473'; but I want to replace 4473 with a figure from a DB field named threadnum, the query is named $ticketreply, so I have the code $postthreadid = $ticketreply['threadnum'];

This doesnt seem to work, if I enter a value it works, if I dont it wont work.

Any ideas? Thanks, Paul.

--------------- Added [DATE]1209320385[/DATE] at [TIME]1209320385[/TIME] ---------------

Why is it you spend all day trying to get it to work, and then you post for help then 5 minutes later you get it working?

I was trying to use the sql query without fetching the array.

Thanks, Paul.


All times are GMT. The time now is 09:16 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.01945 seconds
  • Memory Usage 1,708KB
  • 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