vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   should I Write Plugin or Hack Code? (https://vborg.vbsupport.ru/showthread.php?t=121202)

scowby 07-14-2006 03:59 PM

should I Write Plugin or Hack Code?
 
I am trying to write functionality which will send out an email whenever a users post is rejected (i.e. deleted) from the system.

I am wondering if I should be trying to write a plugin, or hack the VB code directly to insert hooks to my code?

Are there any good forums for learning how to write plugins? I am going to need to customize this software to suit my needs, how best can I determine if a plugin is the method I should be persuing?

Thanks!
Reply With Quote

maximux1 07-14-2006 04:21 PM

Hi Scowby,

You're always going to be better off writing your custom code as a plugin or product using hooks when possibly. This will greatly improve your upgrade path when vB releases new versions for security/bug fixes, which can be often sometimes. Hacking the PHP files will lead you to rehack those same files each time a new release comes out.

Some links of interest to you;

http://www.vbulletin.com/docs/html/main/main/ - vb manual
http://members.vbulletin.com/api/ - vB API DOCs
https://vborg.vbsupport.ru/showthread.php?t=113489 - templates tutorial
https://vborg.vbsupport.ru/showthread.php?t=98009 API Basics Tutorial
https://vborg.vbsupport.ru/showthread.php?t=82835 DEBUG mode tutorial
https://vborg.vbsupport.ru/showthread.php?t=119350 vB Database Class
https://vborg.vbsupport.ru/showthread.php?t=119376 Custom Datamanagers

There's a lot of great help on these boards too! Feel free to ask your specific questions as you progress on your project.

Max


All times are GMT. The time now is 09:24 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.01957 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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