vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   If condition then thread subscription (https://vborg.vbsupport.ru/showthread.php?t=218232)

SVTCobraLTD 07-09-2009 02:42 PM

If condition then thread subscription
 
What I am looking to do is that if a new user registers and fills out feild10 while registering, that field automatically creates a thread with the info they put in that box. However, that does not subscribe them to that thread. Any ways to code this in? Suggestions on this?

SVTCobraLTD 07-16-2009 05:44 PM

Quote:

Originally Posted by SVTCobraLTD (Post 1845805)
What I am looking to do is that if a new user registers and fills out feild10 while registering, that field automatically creates a thread with the info they put in that box. However, that does not subscribe them to that thread. Any ways to code this in? Suggestions on this?

Anyone?

wmlvb 07-21-2009 06:44 PM

this is probably what your looking for

https://vborg.vbsupport.ru/showthrea...+introductions

I just installed yesterday and still trying to figure out if working the way I want. Concerned that it show zero post when the user has automatically created one thread so wondering if they are get auto email notification of replies! If not then defeats to purpose of having this mod as newbies do not know where to find there intro.

Antivirus 07-25-2009 04:35 PM

You'll need to write a plugin that (when the condition is met) the subscription type is overwritten with what you want in the $newpost array which is then passed to function build_new_post(). Look for a hook shortly before the function within newthread.php and that's the likely hook to use.

wmlvb 07-25-2009 11:13 PM

Quote:

Originally Posted by Antivirus (Post 1855277)
You'll need to write a plugin that (when the condition is met) the subscription type is overwritten with what you want in the $newpost array which is then passed to function build_new_post(). Look for a hook shortly before the function within newthread.php and that's the likely hook to use.

Thanks for the help but I am not a coder so not sure what I am suppose to write! is there a code I can copy and paste? Thanks


All times are GMT. The time now is 03:35 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.00942 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