vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can I make this into a plugin/hook? (https://vborg.vbsupport.ru/showthread.php?t=188890)

mooreaa 08-23-2008 09:46 AM

Can I make this into a plugin/hook?
 
Hello,

I recently modified includes/class_image.php to customize the look of the human verification image.

When I went to upgrade I noticed that this file could easily be clobbered and so I started looking at how I might be able to make a change here without actually digging into the php code of vb.

I also had to chnage includes/class_humanverify_image.php

Can I turn these changes into a plugin? How do I go about doing this since I'm not seeing any kind of "hook" that I can attach this code to...

I'd appreciate any help as I'm looking to make the board easy to upgrade without needed to reimplement my hacks.

Dismounted 08-23-2008 11:00 AM

It depends what you are doing - have a look at the hook locations in that file, and see if you can make any use of them.

mooreaa 08-23-2008 12:22 PM

there arn't any hook locations in these files. I guess the verification image system isn't plugable?

I changed mine to garble the text but not rotate things as much. I had some people complain that they had a hard time reading it... and for me it wasn't worth users complaining but since I've had spammers I tried to fix it up to meet my needs... If I could make it into a plugin/product I could share it with everyone...

I presume its poor design to have the product installer inject code into a php file...


All times are GMT. The time now is 01: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.01053 seconds
  • Memory Usage 1,706KB
  • 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
  • (3)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