![]() |
dartho,
I'm trying out your modification and am in the process of installing it, but I have a question for ya... Rather than having us make a template modification above {vb:raw threadmanagement}, as it says in the instructions, could you not add that bit as an extra template and add it to $threadmanagement in the newthread_form_complete hook location? Like... TEMPLATE (vbookie_threadmanagement): HTML Code:
<vb:if condition="$show['vbookieevent']"> PHP Code:
I'm sorry if it seems like I'm butting in, or if the above code wouldn't work, but it just makes sense to me to have as few template edits as possible, and wouldn't that reduce your template edits to zero? :3 |
----------
Also, a question on Custom "cash". I've been working on my own modest "cash" system, and the field which handles said cash is called "han" (short for "Hansatsu"; don't ask XD), and I'd like to try and integrate vBookie with it. It seems straightforward enough, but I want to make sure before I go destroying things. Basically, in each plugin that has it, in vbookie.php, and in includes/functions_vbookie.php, replacing vbookie_cash with my custom field han would be the correct way to go, correct? |
I'm having trouble getting it working. All permissions are set up correctly, I can set up events, but even as Admin I can't place bets.
|
Quote:
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 |
Quote:
|
Ok, I uninstalled supercharged and tried a fresh install of 4.0.6 of vbookie.
I still get a database error on the stats page. I have rebuilt bitfields, I have checked the permissions which are all fine, I made my first bookie event as a test. Funnily enough now that I've made the event no one appears to be able to make an actual bet. |
what is your site - if you PM me deatils, I'll be happy to have a look. I may need admin details to dig deeper if you woudl like me to...
|
Quote:
|
Quote:
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 |
Quote:
Quote:
|
All times are GMT. The time now is 09:09 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|