vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   manually insert a thread (https://vborg.vbsupport.ru/showthread.php?t=251893)

Jeweetog 10-10-2010 07:35 AM

manually insert a thread
 
Hi,

If i want to manually insert a new thread (NOT using php) in the forum, how would i do that?

I know you can insert it in the database, but how would you update the forumdisplay about the newest active thread?

Trying to do something with silverlight.

Thanks in advance!

Lynne 10-10-2010 03:16 PM

Not using php? So exactly how is it you think it will get inserted?

Jeweetog 10-10-2010 08:16 PM

With C# into the mysql database?

Lynne 10-10-2010 10:08 PM

I don't know C#, so I really can't help.

BirdOPrey5 10-11-2010 11:59 AM

Did you already try just inserting it and seeing if it worked?

Jeweetog 10-11-2010 06:43 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2109028)
Did you already try just inserting it and seeing if it worked?


No because my hoster doesn't support silverlight at the moment. And i dont know how to set it up locally yet. Also, I dont know which fields i need in the db order to insert a thread.

Is there an API?

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

Quote:

Originally Posted by Lynne (Post 2108876)
I don't know C#, so I really can't help.


The language doesn't matter, i only need to know if the forum gets updated if a thread is inserted in the database?

Or do I need to 'trigger' something to make it update?

By updating, i mean the forumdisplay where you can see which thread is active at that time and how many views/reply's.

Lynne 10-11-2010 07:45 PM

There is an article on how to add posts - it is the same as adding a thread only a thread is started by adding the first post. Go read that and it should help you understand what you need to do.

Jeweetog 10-12-2010 04:52 PM

Quote:

Originally Posted by Lynne (Post 2109193)
There is an article on how to add posts - it is the same as adding a thread only a thread is started by adding the first post. Go read that and it should help you understand what you need to do.



I've tried many many different keywords to find it. Are you sure its still there?

Lynne 10-12-2010 04:55 PM

search "post*" in "articles" in "titles only"
Create Posts


All times are GMT. The time now is 06:53 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.01087 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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