vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How to] Write Plug-ins/Hooks (https://vborg.vbsupport.ru/showthread.php?t=82625)

PennylessZ28 10-01-2005 09:08 PM

Nice, this is going to help alot as I'm starting to dabble in writting some custom stuff for a concept board I am creating on my test server.

Wired1 10-20-2005 01:44 AM

Don't know if this was mentioned anywhere yet, but you can create your own hook locations. I did it for one of my hacks.

pyro.699 10-28-2005 07:11 PM

is there a list? any where, that tells you what each hook location is for?

(i need on that runs when your posting a new thread)

timetunnel 11-12-2005 03:12 AM

Hello.

This thread has help me figure out the 'hook' system (ref: https://vborg.vbsupport.ru/showthread.php?t=100597) finally (actually, I hadn't needed it previously except for variable creation, until yesterday). You'll see my interpretation in that ref'd thread.

Hope it helps. :squareeyed:

P.S. This hook system is brilliant! I've worked with many other software programs and the vB structure is at the top on the pyramid in its design.

monotreme 11-23-2005 05:55 PM

Quote:

Originally Posted by Wired1
Don't know if this was mentioned anywhere yet, but you can create your own hook locations. I did it for one of my hacks.

To create your own hook locations (I'm talking to Wired1) don't you have to hack the core code? Still I guess its better to insert one line hook definition than 60 lines of code.

davidw 11-23-2005 06:16 PM

<font color="SeaGreen">* christianb subscribes to this thread</font>

Wired1 11-23-2005 07:41 PM

Quote:

Originally Posted by monotreme
To create your own hook locations (I'm talking to Wired1) don't you have to hack the core code? Still I guess its better to insert one line hook definition than 60 lines of code.

Exactly, 1 line is better than 60. It's also much harder for someone to screw up and/or fix 1 line than 60 as well (e.g. misplacement, typo, etc).

If anyone's interested I could write up a quick tutorial about it.

Cap'n Steve 11-24-2005 04:27 AM

Quote:

Originally Posted by monotreme
To create your own hook locations (I'm talking to Wired1) don't you have to hack the core code? Still I guess its better to insert one line hook definition than 60 lines of code.

You can also add hooks to your own code, which is what I thought he was talking about.

timetunnel 11-24-2005 06:37 AM

Hello.

Wired1, any tutorials are always welcomed.

Cap'n Steve, I'd also like to know how to add hooks to custom code.

Thanks folks.

Wired1 11-24-2005 05:24 PM

Yeah, you can add hooks anywhere. It's pretty easy actually.

Can't remember which hack I added a custom hook for (it's either the extra info one or the profile one), but one of them has the basic instructions for it. I'll try to whip one up in a couple of days.


All times are GMT. The time now is 07:00 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.01652 seconds
  • Memory Usage 1,733KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete