vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - vBookie for vBulletin 4 (https://vborg.vbsupport.ru/showthread.php?t=233473)

jack the lad 01-30-2010 08:20 PM

Nice mod mate ;)

Is there a way of when a thread is deleted we can also delete the vBookie event?

Many thanks

dartho 01-30-2010 09:02 PM

This does happen - however only when a thread is 'physically removed', a soft deletion does not remove the vBookie event

jack the lad 01-30-2010 09:22 PM

Quote:

Originally Posted by dartho (Post 1970783)
This does happen - however only when a thread is 'physically removed', a soft deletion does not remove the vBookie event

Sorry I meant in the "News & Events" window.

Jack

dartho 01-30-2010 09:53 PM

Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

jack the lad 01-30-2010 11:10 PM

Quote:

Originally Posted by dartho (Post 1970823)
Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

Cheers mate, your a star :up:

TimberFloorAu 01-31-2010 02:44 AM

Quote:

Originally Posted by dartho (Post 1970823)
Ah - OK. Currently they are text only with no links back to the actual vBookie event so it would involve recoding a few things. I'll look into it. May be able to add a 'Delete' button for admins next to each news item also?

I would agree, that would be wicked.

Could we also code it so that in Postbit it reads: vbcash $500 instead of vbcash 500

Aclikyano 01-31-2010 07:19 PM

everytime i change a admin or gmod status in usergroup permissions or even forum and moderators or whatever it goes right back to NO NO NO after i save... wtf
i made a vbookie thread, it worked good but after i bet on it i dont see the option to settle the bet.... help!

TimberFloorAu 01-31-2010 07:23 PM

Are you running latest verion of vbookie ?

Have you rebuilt bitfields.

Aclikyano 01-31-2010 07:25 PM

yes i am on 4.0.1 and i just installed it now....

no what bitfields must i rebuild?

TimberFloorAu 01-31-2010 07:30 PM

Latest version of vbookie is 4.06

http://www.yourdomain.com/forum/admi...buildbitfields

dartho 01-31-2010 08:23 PM

Quote:

Originally Posted by TimberFloorAu (Post 1970951)
Could we also code it so that in Postbit it reads: vbcash $500 instead of vbcash 500

Edit the vBookie: Add Cash to Postbit plugin and change ".$post['vbookie_cash']." to $".$post['vbookie_cash']."

Quote:

Originally Posted by Aclikyano (Post 1971541)
everytime i change a admin or gmod status in usergroup permissions or even forum and moderators or whatever it goes right back to NO NO NO after i save... wtf
i made a vbookie thread, it worked good but after i bet on it i dont see the option to settle the bet.... help!

Those permissions no longer have any affect, permissions are set in vBookie Settings.

Delete /includes/xml/bitfield_vbookie.xml and then rebuild bitfields to remove these redundant options (http://YOURSITE/admincp/index.php?do=buildbitfields)

You can only settle a vbookie event when the date/ time is after what you configured the event to payout after.

Aclikyano 01-31-2010 08:58 PM

please explain better what i should do? thanks

Aclikyano 01-31-2010 09:00 PM

ok nevermind i got it now, thanks alot! :) great update, loving 4.0.1 atm

Bluefin221 02-01-2010 06:56 AM

I installed 4.0.6 and still get an error when clicking on stats, I have created my first bet, but for some reason I can't bet on the actual event. I have double checked all the permissions and everything is as it should be.

TimberFloorAu 02-01-2010 07:11 AM

Have you set usergrp permissions and rebuilt bitfields

Bluefin221 02-01-2010 07:13 AM

Quote:

Originally Posted by TimberFloorAu (Post 1971938)
Have you set usergrp permissions and rebuilt bitfields

Yes.

TimberFloorAu 02-01-2010 07:22 AM

Then something has cocked up.

Ensure you did everything in theis order:

Install Instructions
1. Unzip product file
2. Upload files from 'Upload' folder to your forum
3. Install product XML
4. Edit "newthread" template as per readme.txt ionstructions
5. Set usergroup permissions
6. Set vBookie settings
7. Enjoy.

If it still isnt working, either wait for Dartho.. or reinstall it all over again.
It does work, we have it running at the mo.

Bluefin221 02-01-2010 07:47 AM

I have supercharged installed and since I installed vbookie it has completely messed up my forum, I've uninstalled it for now and I'm retracing my steps to see what the problem is.

TimberFloorAu 02-01-2010 08:15 AM

Yeah same issue here. I got shot of supercharged.

dartho 02-01-2010 08:20 AM

Quote:

Originally Posted by Bluefin221 (Post 1971933)
I installed 4.0.6 and still get an error when clicking on stats, I have created my first bet, but for some reason I can't bet on the actual event. I have double checked all the permissions and everything is as it should be.

Happy to help if I can. I have no idea what "supercharged" is though ...

DragonBlade 02-02-2010 02:20 PM

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']">
                        <div class="blockrow">
                                <p class="label">Post a {vb:rawphrase vbookie} Event</p>
                                <dl class="group dep_group">
                                        <dt>
                                                <label for="cb_postvbookieevent">
                                                        <input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" {vb:raw checked.postvbookieevent} class="dep_ctrl" /> {vb:rawphrase yes_post_a_vbookieevent_thread}
                                                </label>
                                        </dt>
                                </dl>
                        </div>
                </vb:if>

PLUGIN (newthread_form_complete):
PHP Code:

$templater vB_Template::create('vbookie_threadmanagement');
  
$templater->register('show'$show);
  
$templater->register('vbookie'$vbookie);
  
$templater->register('checked'$checked);
  
$templater->register('yes_post_a_vbookieevent_thread'$yes_post_a_vbookieevent_thread);
$threadmanagement $templater->render() . $threadmanagement;
$show['additional_options'] = ($show['misc_options'] OR !empty($attachmentoption) OR $show['member'] OR $show['poll'] OR !empty($threadmanagement)); 





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

DragonBlade 02-02-2010 02:57 PM

----------

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?

ldma 02-02-2010 06:44 PM

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.

dartho 02-02-2010 08:59 PM

Quote:

Originally Posted by DragonBlade (Post 1973080)
dartho,
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

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

dartho 02-02-2010 09:05 PM

Quote:

Originally Posted by ldma (Post 1973295)
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.

was this a fresh install, or an upgrade from a previous version of vBookie?

Bluefin221 02-03-2010 09:21 AM

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.

dartho 02-03-2010 09:41 AM

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...

Bluefin221 02-03-2010 10:57 AM

Quote:

Originally Posted by dartho (Post 1973802)
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...

I know what the problem is, when you initially go into vbookie options you don't have the full list of options, when I rebuilt bitfields for some reason I had a whole heap of options, once I went through these setting them up for my site everything is working as it should. Strange though that the options wouldn't show properly at first though.

DragonBlade 02-03-2010 11:04 AM

Quote:

Originally Posted by dartho (Post 1973398)
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

ldma 02-05-2010 10:34 PM

Quote:

was this a fresh install, or an upgrade from a previous version of vBookie?
I did have it installed previously but uninstalled it before i upgraded to vb4, then installed Vbookie again.

Quote:

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.
Same here.

Steelersfan 02-05-2010 11:16 PM

Dartho, I can't seem to edit events. Well I can, but then when I hit update it says "This thread already has a vbookie attached to it". Other people can't either even though their user group is set to allow.

dartho 02-06-2010 02:21 AM

I think I'm going to need admincp access to a couple of the folk who are having issues to see what's going on...

Steelersfan 02-06-2010 05:21 AM

Quote:

Originally Posted by dartho (Post 1975777)
I think I'm going to need admincp access to a couple of the folk who are having issues to see what's going on...

PM sent

dartho 02-06-2010 07:45 AM

That's one bug found thanks to Steelers fan... anyone else want to let me help them with specific issues?

romeo12 02-06-2010 12:08 PM

Will this work in vB 3.8.4? I cant find vBookie for 3.8

dartho 02-06-2010 08:11 PM

Quote:

Originally Posted by romeo12 (Post 1975984)
Will this work in vB 3.8.4? I cant find vBookie for 3.8

No it won't - there is no 3.8 version, but the 3.5 version can work under 3.8 with a little tweaking

Steelersfan 02-07-2010 01:30 PM

Dartho, when you go to bet a second time, you cant see how many points you have to bet with. I did the edit you said to earlier in the thread and it works for the first time you bet and showing points. But not when you allow multiple bets.

Edit - Never mind, they didn't tell me they were using a skin I was working on and I hadn't applied the edit yet

TimberFloorAu 02-12-2010 05:32 AM

Suggestion.

On betting page ( in thread view )

Could we have under the bets:

You have $xxx.xx available to bet with

dartho 02-12-2010 06:37 AM

check https://vborg.vbsupport.ru/showthrea...01#post1965601 for how to do this ...

TimberFloorAu 02-12-2010 06:58 AM

Thanks :)


All times are GMT. The time now is 05:11 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.01626 seconds
  • Memory Usage 1,845KB
  • 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)bbcode_html_printable
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete