vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   script running on newthread_post_start (https://vborg.vbsupport.ru/showthread.php?t=308499)

ageurtse 02-17-2014 05:11 PM

script running on newthread_post_start
 
Hello,

Is it possible to run some kind of scipt on the hook location newthread_post_start.
after this script is returns true the post should be posted

if the script returns false the post should be canceld.

i don't know how to do this, so any kind of advise would be helpful.

ozzy47 02-17-2014 05:16 PM

I would say the hook, newpost_process would be the best bet, if x is true, allow it to post, if x is false, throw up a error.

ageurtse 02-17-2014 05:23 PM

oke, but is there a way to filter it for a certain forum and usergroup and only when there is a new thread started.

so there are some condintion's to be checked.

and only when these condition's are true the script has to be run.

ozzy47 02-17-2014 05:30 PM

If you want certain groups to be able to read forums on your site, but not post in them, why not use the Access Masks already built into vBulletin.

ageurtse 02-17-2014 05:53 PM

Sounds pretty complicated, all user should be able to post but only certain users need to do an extra thing (payment) to post a new thread.


All times are GMT. The time now is 11:44 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.01134 seconds
  • Memory Usage 1,710KB
  • 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
  • (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