vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how do i code a new thread in a forumid. (https://vborg.vbsupport.ru/showthread.php?t=233777)

Vaupell 01-21-2010 07:10 PM

how do i code a new thread in a forumid.
 
gonna make a template, and a form, when filled it submits a new thread
with given parameters..

say template is the thread/post contents..

thraed title : test title (stored in options [test_title])

template : test_thread
Code:

This is a test thread
preset forum id : 1 (stored in options [test_forumid])

I just make a button somewhere random, and when i click that button
i want it to post a thread with the parameters above..

And usually when i dont have a clue how to start, i check out vbulletin code.
but i just cant make sense from newthread.php

plus it seems like alot, when back on 3.x we could post a new thread
with maximum some 50 lines, and all the counters etc was set correct for the new thread.

havent seen any vb4 mods yet, that post new threads either, so cant see how others do.
Any help on how to progress ?

BBR-APBT 01-21-2010 07:21 PM

No sense in me working up the code when you never say if it works or not.
https://vborg.vbsupport.ru/showthread.php?t=233430

I have a mod that post a welcome thread on register you can start there.
Check my profile.

Vaupell 01-21-2010 07:24 PM

Quote:

Originally Posted by BBR-APBT (Post 1962671)
No sense in me working up the code when you never say if it works or not.
https://vborg.vbsupport.ru/showthread.php?t=233430

I have a mod that post a welcome thread on register you can start there.
Check my profile.

gonna call you mad dog from now on, cause you bite!

Well im gonna post a reply, when i get to trying that code out..
patience is a virtue, i dont poses, but i see im not alone.

well look for your welcome post ;)
and dont worry, i will get to the modcp eventually..

BBR-APBT 01-21-2010 07:26 PM

Quote:

Originally Posted by Vaupell (Post 1962674)
gonna call you mad dog from now on, cause you bite!

Well im gonna post a reply, when i get to trying that code out..
patience is a virtue, i dont poses, but i see im not alone.

well look for your welcome post ;)
and dont worry, i will get to the modcp eventually..

LOL I don't bite.

Vaupell 01-21-2010 07:38 PM

Gonna hurry up and respont before someone gets mad around here :D

got your mod, looks great, installed it on my own board btw, just needs a little setup.
howewer the plugins, im proberly only gonna look into the one with register_addmember_complete
cause im going to run it from a php file instead of plugin.

but its beautifull, makes sense.. Thank you.

BBR-APBT 01-21-2010 09:41 PM

I wasn't mad, LOL I really wanted to know if it worked I have not tested it. I need to do pretty much the same thing for the modCP in the future and was wondering if I should bookmark that thread or not.


All times are GMT. The time now is 07:02 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.01077 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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