PDA

View Full Version : Can I make this into a plugin/hook?


mooreaa
08-23-2008, 09:46 AM
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...