Quote:
Originally Posted by dartho
I was thinking of doing this once I was happy everything was working, but then decided to keep it a manual edit. The new temlate engine would probably happily merge those manual changes into any future updates.
If you release a cash system, I could modify the vbookie code to work with it out out of the box.
Otherwise, vbookie has hooks where you can write plugins to handle other cash - no need to edit source files.
vbookie_do_charity
vbookie_get_richest
vbookie_get_user_cash
vbookie_give_user_cash
vbookie_take_user_cash
Have a look at the functions_vbookie.php file for sample code for putting in these hook locations
|
Thanks, Dartho. And ha, amg, now that I actually read your functions_vbookie.php without sleep deprivation, I can easily see the aformentioned hooks. XD Thanks for putting something in there for us to be able to customize so easily! I probably would have never thought of that. XP
As for releasing my cash system, well, it's very unprofessional. See, I started it over a year ago when I was first learning about vBulletin coding, so at first I was directly editing the database and didn't even KNOW about templates--I was passing the HTML just as a PHP literal. XP I've been modifying it a bit here and a bit there, but it's still far from what I'd burden the vBulletin community with. XD I'll certainly release it when it's complete, and when I make the plugins you mention to change the cash field to "han," I'll include those. :3