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)

sinisterpain 02-16-2007 12:11 AM

Quote:

Originally Posted by bandare (Post 1183469)
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....

I dont believe vcash is even supported anymore I use Icash

bandare 02-16-2007 02:31 AM

Quote:

Originally Posted by sinisterpain (Post 1183508)
I dont believe vcash is even supported anymore I use Icash

never heard of icash......

just seeems odd that with all this talent around this forum, there isn't a database command that will reset everyones vcash to a value you want......

iamme1 02-16-2007 08:01 AM

Quote:

Originally Posted by bandare (Post 1183594)
never heard of icash......

just seeems odd that with all this talent around this forum, there isn't a database command that will reset everyones vcash to a value you want......

i know it's a simple SQL command.......i used it on our forum when we reset the totals for a contest.

the vcash totals for the users are located in the yourDB_user table. it's the vbookie_cash field. i don't remember off the top of my head, but i used a command to reset all the users back to 500.

maybe someone else can help

Eagle Creek 02-16-2007 08:06 AM

Code:

UPDATE user SET vbookie_cash = 'X';
Where X is the amount of money u want to set. (default is 100)

Haven't tested it so make a backup of your DB first.

bandare 02-16-2007 09:47 AM

Quote:

Originally Posted by iamme1 (Post 1183721)
i know it's a simple SQL command.......i used it on our forum when we reset the totals for a contest.

the vcash totals for the users are located in the yourDB_user table. it's the vbookie_cash field. i don't remember off the top of my head, but i used a command to reset all the users back to 500.

maybe someone else can help

great... good to know.....

MissKalunji 02-16-2007 05:19 PM

Quote:

Originally Posted by sinisterpain (Post 1183508)
I dont believe vcash is even supported anymore I use Icash

yes it does....

sinisterpain 02-19-2007 10:29 AM

Quote:

Originally Posted by bandare (Post 1183753)
great... good to know.....

Icash will let you donate to specific users or usergroups.

Foxsake 02-19-2007 11:16 AM

I wondered if this was possible?............

I currently run vbookie over a football season each member getting £500 vcash, is their any way i could allocate icash to member who have spent their £500 vcash before the season has ended as a seperate bookies for losers to still participate?

basically run vbookie with 2 cash systems, just give specific users the icash option?

Thanks for any help or suggestions

velleybolcu 02-19-2007 05:49 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 am using vbulletin 3.6.4. i tryed to integrate vbookie but it didn't work. i used your plugin code. i can see "yes i want to post a new vbookie event" option while i open a new thread. but when i select it, it doesn't work. it isn't opening a new page for vbookie, it opening a new thread directly. then we tryed it on local host but it didn't work again. can you help me about this? what is the problem? thanks...

Coleccromos 02-22-2007 09:42 AM

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.


This modification where she puts on and that oh that to substitute exactly

Do I upgrade my forum to the version 3.6 and now when putting the events they don't subtract me the bet money where the problem can be?

Greetings

BozzaJos 02-23-2007 02:30 PM

Hey guys,

First of all, this is an awesome hack, many thanks Andreas for making this for us! I've got an error tho when I go to Bet Statistics. I got the following error:

Code:

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

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

I have no clue what this means or how to fix this. Could anyone help me out with this problem?

sinisterpain 02-24-2007 01:13 AM

Quote:

Originally Posted by BozzaJos (Post 1189083)
Hey guys,

First of all, this is an awesome hack, many thanks Andreas for making this for us! I've got an error tho when I go to Bet Statistics. I got the following error:

Code:

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

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

I have no clue what this means or how to fix this. Could anyone help me out with this problem?

Do you have a cash system installed ? If so did you set the value in vbookie settings for it?

BozzaJos 02-24-2007 09:37 AM

I used the file you posted a couple of pages back. The one with iCash automaticly build in. Got iCash installed and put the settings on use iCash.

The rest also works. I can bet on matches, it takes away the points from the user and when I win I get the points so vbookie recognizes the points system.

sinisterpain 02-24-2007 11:06 AM

Quote:

Originally Posted by BozzaJos (Post 1189619)
I used the file you posted a couple of pages back. The one with iCash automaticly build in. Got iCash installed and put the settings on use iCash.

The rest also works. I can bet on matches, it takes away the points from the user and when I win I get the points so vbookie recognizes the points system.

Are you running Ibank with this? The error seems to point to bankmoney.

BozzaJos 02-24-2007 11:33 AM

Nope, I don't have iBank installed. Really hope you (or someone else) can help me out with this problem. Don't like making it public to my members while there's a db error in it.

sinisterpain 02-24-2007 12:39 PM

Quote:

Originally Posted by BozzaJos (Post 1189644)
Nope, I don't have iBank installed. Really hope you (or someone else) can help me out with this problem. Don't like making it public to my members while there's a db error in it.

I just fixed the problem you are having with my files. Please download my zip again, the only file you need to upload to your webserver is the includes->functions_vbookie.php file.
I had changed the functions file to include Ibank money table to show the richest user in vbookie. Let me know if this resolves the issue.

BozzaJos 02-24-2007 01:39 PM

Very nice! It's all good now.. many thanks for your help Sinister.

By the way, I tested this hack by creating a new event. When I made this event there were suddenly two items @ vbookie.php. When the event was over and I cashed out the winner, the first item stayed there. When I click on Thread or Info it says "No Thread specified. If you followed a valid link, please notify the administrator". Is there any way of removing this item (probably in mysql table??)? My knowledge about this all isn't so big so if anyone could help me out (with details), I would appreciate it a lot. Thanks in advance.

And thanks again Sinister for fixing my original problem.

P.S. Another small question. I make events for Football (Soccer) matches. I want to do that you can say which team wins or a draw. However, the odds for the outcomes are most of the times 2.7, 1.5, 3.6 etc. etc. When I did the test event I noticed that you can't do numbers with 1 decimal.. only full numbers. It automaticly made 3 of 2.7 and 1 of 1.3. Is there a way to work with decimals? Only thing I could think of is doing for example 27 to 10, this automaticly makes it 2.7 to 1. But I was wondering if there might be an easier/more logical way of doing this?

ShayOUU 02-24-2007 02:00 PM

where do you upload the contents of the upload folder too? forum root?

BozzaJos 02-24-2007 02:07 PM

Quote:

Originally Posted by ShayOUU (Post 1189712)
where do you upload the contents of the upload folder too? forum root?

Yes, just upload it all to the forum root.

ShayOUU 02-24-2007 02:14 PM

and is this intergrateable with VbPlaza 1.5.8?

sinisterpain 02-24-2007 02:48 PM

Quote:

Originally Posted by ShayOUU (Post 1189720)
and is this intergrateable with VbPlaza 1.5.8?

there is another file that someone added the edits to make it work with vbux, but my understanding is right now there is a security issue with vbbux and it has been temporarily removed from vb.org till its fixed.

sinisterpain 02-24-2007 02:52 PM

Quote:

Originally Posted by BozzaJos (Post 1189699)
Very nice! It's all good now.. many thanks for your help Sinister.

By the way, I tested this hack by creating a new event. When I made this event there were suddenly two items @ vbookie.php. When the event was over and I cashed out the winner, the first item stayed there. When I click on Thread or Info it says "No Thread specified. If you followed a valid link, please notify the administrator". Is there any way of removing this item (probably in mysql table??)? My knowledge about this all isn't so big so if anyone could help me out (with details), I would appreciate it a lot. Thanks in advance.

And thanks again Sinister for fixing my original problem.

P.S. Another small question. I make events for Football (Soccer) matches. I want to do that you can say which team wins or a draw. However, the odds for the outcomes are most of the times 2.7, 1.5, 3.6 etc. etc. When I did the test event I noticed that you can't do numbers with 1 decimal.. only full numbers. It automaticly made 3 of 2.7 and 1 of 1.3. Is there a way to work with decimals? Only thing I could think of is doing for example 27 to 10, this automaticly makes it 2.7 to 1. But I was wondering if there might be an easier/more logical way of doing this?

While in the thread you can moderate it and delete it, also have you tryed 3.0 or 1.0 instead of 3 or 1.

BozzaJos 02-24-2007 03:06 PM

Sinister.. I deleted the original event but this one also appeared and it got no delete link next to it. When I click on Thread or Info it says invalid link.

And what do you mean with if I tried 3.0 or 1.0? I want for example a Odds of 2.7 but when I do that and post the event I automaticly changes to 3.

sinisterpain 02-24-2007 03:35 PM

Quote:

Originally Posted by BozzaJos (Post 1189756)
Sinister.. I deleted the original event but this one also appeared and it got no delete link next to it. When I click on Thread or Info it says invalid link.

And what do you mean with if I tried 3.0 or 1.0? I want for example a Odds of 2.7 but when I do that and post the event I automaticly changes to 3.

If your running 3.6 did you make the plugin edit by PaulM

BozzaJos 02-24-2007 04:03 PM

I'm using 3.5.

sinisterpain 02-25-2007 10:21 AM

have you tryed going to vbookie home then list settled events then delete

velleybolcu 02-26-2007 09:20 AM

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.


Is it working on Vb 3.6.4? I am using vbulletin 3.6.4 and i replace this code with the other one but it doesn't open a new vbookie event page, it is opening a new thread directly... i need some help pls...

TTG 02-26-2007 10:13 AM

I only got vbookie to work well on 3.6.4 if I installed the hack and then made a specific forum for the hack "Betting forum" etc .. didn't seem to work on any existing forums !?

velleybolcu 02-26-2007 11:17 AM

My problem is this page. I can't see this. How can i open this page while opening a new thread? i am selecting "yes post a new vbookie event" but then this page isn't opening, the new thread is opening directly...

https://vborg.vbsupport.ru/external/2007/02/1.jpg

sinisterpain 02-27-2007 01:24 AM

Quote:

Originally Posted by velleybolcu (Post 1191019)
My problem is this page. I can't see this. How can i open this page while opening a new thread? i am selecting "yes post a new vbookie event" but then this page isn't opening, the new thread is opening directly...

https://vborg.vbsupport.ru/attachmen...7&d=1123815803

Do you have a popup blocker?

cavin420 02-27-2007 06:21 PM

hi folks,

sorry for sounding like an absolute amateur (that's cause i am one) i have intalled this hack, what to do next , i mean how to use it i have the vbookie on my v bulletin but how to put it to use, where to give it options e.t.c

a step by step guide would be rather nice,
much appreciated.

Chief108 02-27-2007 06:26 PM

any clues on where to look when *some* members of a certain group that's allowed to place bets get a "you cannot place bets" message while all other can???

lostgirl815 03-02-2007 08:25 PM

Posting to keep track of where I left off; hoping for a 3.6 that doesn't require modifying php code. (Because that frightens me.)

:)

sinisterpain 03-03-2007 12:02 AM

Quote:

Originally Posted by Chief108 (Post 1192075)
any clues on where to look when *some* members of a certain group that's allowed to place bets get a "you cannot place bets" message while all other can???

If you set this to use a specific forum make sure that the forum permisions are set for the usergroups you wish to post or make bets

nautiqeman 03-07-2007 06:21 PM

any idea on what needs to be done for this to work with 3.6.5

velleybolcu 03-08-2007 06:03 AM

there is a problem i think. i write odds as decimals. for exapmle if i my odd is 1,50 then i am writing 15/10 for this. then i bet 10 stake for this odd. when i win it must be 15 total. but it paids the main stake with winned stake. and it paids 25 stake total. do you have any idea for this? what must i do? thanx

tspepper 03-09-2007 01:06 AM

Anyone know of a way to "hide" bets until the even is closed?

basically i dont want people being able to see who bet on what until the event is closed. and i dont want using the private bet feature cause its a pain for mods to see who bet on what after the fact.

nautiqeman 03-09-2007 01:24 AM

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.


Maybe I'm having a brain fart but what exactly am I suppose to edit with this code?

Mys 03-09-2007 04:11 AM

Applies to 3.6 only

1) Go into CP;

2) Plugins & Products->Plugin Manager

3) Edit: vBookie: Redirect to vbookie.php when posting new Event

4) Now, copy that code into the Plugin PHP Code text box. Save.

Assuming you followed the instrucitons in readme.txt; have set your permissions in the User Group Manager and Forum Manager and rebuilt your bitfields, you should be able to post a new event to vBookie from a forum thread.

That's as far as I got tonight.

:o

nautiqeman 03-09-2007 04:14 AM

Here is what's odd.. when I set the permissions and try to save them, they don't take.


All times are GMT. The time now is 04:57 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.02715 seconds
  • Memory Usage 1,865KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (19)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