vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How can i hook the additional_options in New Thread for a own box? (https://vborg.vbsupport.ru/showthread.php?t=221675)

Sany1984 08-24-2009 06:29 PM

How can i hook the additional_options in New Thread for a own box?
 
Hello,

I new on this Board, i Code a new Plugin for vBulletin.

My Question is, how can i hook the additional_options, to add a new box with plugin/add ons without change the orignal template code from him?

Thank you for help me :)

James Birkett 08-24-2009 06:54 PM

Newthread.php calls the following hooks:
Code:

init_startup
fetch_userinfo_query
fetch_musername
fetch_userinfo
cache_permissions
fetch_foruminfo
style_fetch
cache_templates
global_start
parse_templates
notices_check_start
notifications_list
global_setup_complete
newthread_start
newthread_form_start
posticons_start
posticons_bit
posticons_complete
editor_toolbar_switch
editor_wysiwyg_compatible
editor_toolbar_start
editor_toolbar_end
prefix_fetch_array
newthread_form_threadmanage
navbits
navbits_complete
forumrules
newthread_form_complete

I don't understand what you're after.. your thread title mentions new threads, but your question doesn't refer to a new thread.

You want to create a new box in new thread that shows plugins/addons?

Sany1984 08-24-2009 06:57 PM

Yes sorry for my Chaos :)

I need a new Box under "Attach Files" :-) with a new coded Plugin :)

James Birkett 08-24-2009 07:08 PM

You want the plug-in to display there?

Sany1984 08-26-2009 02:01 PM

Yes :-)

James Birkett 08-26-2009 02:43 PM

Code the plug-in on one of the hooks (newthread_start probably), assign the plug-in to a variable such as $newthreadplugin.
Go to new thread template, create a new fieldset (if you want it fieldset) and echo the variable inside the fieldset.
Such as:

Hook: newthread_start
PHP Code:
PHP Code:

$output "some code here";
$newthreadplugin $output

Template:
<fieldset>
echo $output;
</fieldset>

Sany1984 08-27-2009 06:35 PM

Thank you :)


All times are GMT. The time now is 06:39 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.01677 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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