vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBookie for vBulletin 3.5 (https://vborg.vbsupport.ru/showthread.php?t=94128)

Forza 01-16-2007 01:56 PM

did you try to re-import the product?

Fr4gZ 01-16-2007 02:57 PM

Yeah I did that the first time. It lost all the vcash ppl had which i expected but it started working again. Now its playing up :/

TwinsForMe 01-16-2007 08:02 PM

Quote:

Originally Posted by Forza (Post 1160549)
then go to the ACP -> Forums & Moderators -> Forum Permissions -> scroll to the section/forum where you want to post the events -> click 'edit' on the usergroup you want to assign to make bookie events and set the 3 vbookie permissions to yes.

Thank you!

This was the problem on my forum.

Thanks again!

tspepper 01-17-2007 12:56 AM

love this hack! thanks!

two questions though:
1. can i turn off private betting?
2. is there anyway to give users vcash based on an amount of posts?

browie 01-17-2007 07:30 PM

I've been using this exclusively on my site ever since I opened it. This is my main hack and the hack i promote my site on.

I'd like to see something happen with this hack.

Is it possible to create a Bookie instead of having a fictional bank that has unlimited points? It would be AWESOME if you had a user (the admin, myself) be the bookie and gain and lose points based on the users gambles.

hmusic 01-18-2007 04:36 AM

i've read the entire 89 pages of this thread.
followed the instructions to the T.. rebuilt what was to be rebuilt.

and i still have no permissions to enable vbookie for a usergroup or section.

and when i click on the vbookie link it loads a blank page.

help would be very much appreciated

Cooleyvol 01-19-2007 12:09 AM

Is there no way to easily reset money amounts?

psybernaut 01-19-2007 02:20 AM

Quote:

Originally Posted by browie (Post 1161634)
Is it possible to create a Bookie instead of having a fictional bank that has unlimited points? It would be AWESOME if you had a user (the admin, myself) be the bookie and gain and lose points based on the users gambles.

I posted a mod somewhere in this thread to make money placed on bets go to the bookie, and have winnings paid out of the bookie's money. Searching for posts by my username in this thread should turn it up.

Usual warnings... back up your files and database before modifying them, etc etc. Also, I use vbbux on my site, so if you're not using vbbux you might need to tweak the hack to suit your system.

psybernaut 01-19-2007 02:22 AM

Quote:

Originally Posted by Cooleyvol (Post 1162573)
Is there no way to easily reset money amounts?

If you integrate with another cash system like vbbux or ucash, it's a lot easier... ie. you can reset money via the other system, not vbookie.

hmusic 01-19-2007 02:26 AM

how do you delete events after there over

Cooleyvol 01-19-2007 11:34 AM

Quote:

Originally Posted by psybernaut (Post 1162635)
If you integrate with another cash system like vbbux or ucash, it's a lot easier... ie. you can reset money via the other system, not vbookie.

Are those fake money or do they require users to use actual money?

Cooleyvol 01-19-2007 09:09 PM

EDIT: I figured that out.

Still want to know the question posted above.

psybernaut 01-19-2007 10:00 PM

Quote:

Originally Posted by Cooleyvol (Post 1162755)
Are those fake money or do they require users to use actual money?

Fake money, but there's no reason you couldn't make people pay for it if you were so inclined.

Check out vbbux and ucash.

Cooleyvol 01-21-2007 11:38 AM

Is there any way to have a user's vcash total shown when he posts?

Ole_Chilli 01-22-2007 07:12 PM

Quote:

Originally Posted by Paul M (Post 1035092)
vBookie & 3.6

The posting of vbookie events in 3.6 is broken because the hook used has moved.

To fix this problem, the following plugin must be edited ;


vBookie: Redirect to vbookie.php when posting new Event

Replace the plugin code with this ;

PHP Code:

if ($newpost['postvbookieevent']) 

    
$vbulletin->url 'vbookie.php?' $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent"
    eval(
print_standard_redirect('redirect_postthanks_moderate'truefalse));


Note: I'm not actually using vbookie atm so I can't comment on any other problems.


I did this and the XML will not import .. it says invalid token at line 1128

hmusic 01-23-2007 03:48 AM

my vbookie wont import after i changed my hosting server
it tells me

No file uploaded and no local file found.

anyone else having this problem?

Nudda 01-24-2007 10:12 PM

im a little confused as to where to place that php edit Paul gave for 3.6

sinisterpain 01-25-2007 08:10 PM

Quote:

Originally Posted by Nudda (Post 1166682)
im a little confused as to where to place that php edit Paul gave for 3.6

Look here https://vborg.vbsupport.ru/showpost....postcount=1300

Nudda 01-28-2007 09:26 PM

^^yeah, figured that out...thanks

Lee 2007 01-29-2007 05:10 PM

I am having trouble editing the template for vBookie. I cant find
PHP Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td

in navbar.

Hiranmanu 01-31-2007 12:00 AM

Quote:

Originally Posted by Lee 2007 (Post 1169924)
I am having trouble editing the template for vBookie. I cant find
PHP Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td

in navbar.

Just find the calendar. And then follow the steps. Most likely add the vBookie link after the calendar.


Just press Ctrl + F and type in calendar. then you will find it

Hiranmanu 01-31-2007 12:02 AM

Alright I have a question. vBookie is working fine for me no problems.

Say for instance a thread has been deleted but vBookie was not abandoned before the thread was deleted. And then you go to vbookie.php link and you still see some vBookies open. Is there anyway to delete them or to close them without payout?

Thanks alot

sinisterpain 01-31-2007 11:33 PM

Here are my files for vbookie using Icash. I have added a field in admin cp for Icash.
Edit: fixed a problem where recieved an error for bankmoney.
Code:

SELECT username, bankmoney+money AS cash FROM user ORDER BY cash DESC LIMIT 5;

MySQL Error  : Unknown column 'bankmoney' in 'field list'

I added a field for updating the richest user if you were using Ibank sorry uploaded file to correct this.
If you encountered trying to donate money and got and error this is now fixed for icash

beano33 02-02-2007 11:11 PM

Quote:

Originally Posted by Hiranmanu (Post 1170958)
Alright I have a question. vBookie is working fine for me no problems.


Say for instance a thread has been deleted but vBookie was not abandoned before the thread was deleted. And then you go to vbookie.php link and you still see some vBookies open. Is there anyway to delete them or to close them without payout?


Thanks alot

See https://vborg.vbsupport.ru/showpost....postcount=1195


Quote:

Originally Posted by wilburshere (Post 1157951)
i would like to disable the private bet feature any ideas on how this can be done ?

In the 'vbookie_event_table' template comment out or delete this code:
Code:

<span class="smallfont"><label for="cb_privatebet"><input id="cb_privatebet" type="checkbox" name="private_bet" />$vbphrase[vbookie_private_bet]</span></label><br /><br />
It doesn't disable it, but the option is no longer there to use. :)


One of the major problems I have is with events being settled wrong. I haven't been able to come up with a way to reverse it. The best I've been able to come up with is this procedure to return the original stakes. If anyone has a better way, I'd love to know!

run this query

UPDATE vbookie_items SET item_status='CLOSED' WHERE item_id= 'X'

This will change it from Settled to Open. Then click the Abandon Event link in the thread. This only returns the original stakes. vCash won as a result of the incorrect settlement is not taken away and changing the winner in the thread has no effect.

red-dna 02-04-2007 01:54 PM

I install it and everything is fine.

But i read, almost all, the 90 pages in this thread and i am a bit confused.
Is there a manual or a help file with the features of vbookie ???

1. I post a thread (and make it a vbookie event), and i want later to cancell it, i just set it to abandon and then i delete the thread ?

2. After a few days/week the forum will be full of threads with old bets. What i do then?
i just deleted or there a "right" thing to do ?

AdamB 02-06-2007 04:37 AM

Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

MissKalunji 02-06-2007 07:35 PM

is ths working with 3.6.4?

AdamB 02-07-2007 11:22 PM

Not for me and I use 3.6.4

sinisterpain 02-07-2007 11:43 PM

Quote:

Originally Posted by AdamB (Post 1177164)
Not for me and I use 3.6.4

Works fine for me 3.6.4

MissKalunji 02-08-2007 02:25 AM

uhm whats not working for ur adamb?

stuc 02-08-2007 07:27 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

I've got the same problem, anybody got any ideas?

Bacon Butty 02-09-2007 12:24 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

I have the same problem.

stuc 02-09-2007 12:33 PM

Quote:

Originally Posted by stuc (Post 1177834)
I've got the same problem, anybody got any ideas?

Mine is now working :confused:

bobster65 02-09-2007 10:26 PM

Quote:

Originally Posted by AdamB (Post 1175767)
Hello,

When I go to enable usergroups for each vbookie permission and hit save, and go back it's always disabled. How do I fix this?

You need to rebuid your bit fields. This should be added to the instructions, cause its the most asked question in this thread.

Kleptomaniac 02-09-2007 11:09 PM

Thanks for the mod. Is there a way to disable betting on an event for the user who posts the vbookie event only?

gizmo01 02-10-2007 01:13 AM

It would be really handy if the main vbookie display showed times as well as dates under the Added, Open Until and Payouts After.

Actually, even better, if it's today's date, it should only show the time, otherwise it should show the date.

Anybody know which template I'd need to play with to get this done? I'd be willing to give it a try myself and post my findings here.


UPDATE: Ok, I'm 99% sure I'd need to edit the vbookie.php file to accomplish this and this is where I believe it needs to be done:

Code:

$item['created'] = vbdate($vbulletin->options['dateformat'],$item['item_created']);
$item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']);
$item['payafter'] = vbdate($vbulletin->options['dateformat'],$item['item_pay_after']);
eval('$betitembits .= "' . fetch_template('vbookie_main_items_bit') . '";');

That starts at line 355 in the file. I think that my next step would be an IF statement to evalutate $today and compare it to $item['openuntil'], etc...

Any help here?


2ND Update: Ok, I was on a mission. This is what I came up with. I really was only interested in showing the Open Until time on open items.

It may not be elegant, but I replaced line 356 which was this:

Code:

$item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']);
with this:

Code:

                if ($item['item_open_until'] < TIMENOW)
                {
                        $item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']);
                }
                else
                {
                        $item['openuntil'] = vbdate($vbulletin->options['dateformat'],$item['item_open_until']) . " @ " . vbdate($vbulletin->options['timeformat'],$item['item_open_until']);
                }


Well, it does the job that I wanted, but it kinda messes up the spacing a bit, which I can live with. Also, it doesn't bother to show the time unless the item is still open.

I hope someone else can find this to be a useful modification. Any and all suggestions are more than welcome.

giz

Bacon Butty 02-11-2007 01:54 PM

Quote:

Originally Posted by bobster65 (Post 1178748)
You need to rebuid your bit fields. This should be added to the instructions, cause its the most asked question in this thread.

How do I do that? :confused:

gizmo01 02-11-2007 05:17 PM

Quote:

Originally Posted by Bacon Butty (Post 1179903)
How do I do that? :confused:

http://yoursite/yourforumfolder/admi...buildbitfields

Replace yoursite and yourforumfolder obviously.

iamme1 02-15-2007 07:10 PM

is there a hack or plugin that will automatically move settled bet threads into a separate forum (like an "archived bets forum")?

bandare 02-15-2007 07:40 PM

Can anyone help... I really need a command to be able to set every users vcash back to 500 or a number.... anyone??????????????

seems stupid that wasnt included....


All times are GMT. The time now is 06: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.04797 seconds
  • Memory Usage 1,850KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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