vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBookie - vBulletin Betting Hack (https://vborg.vbsupport.ru/showthread.php?t=65844)

Wential 09-24-2004 02:45 PM

Can this hack be set to use PayPal donations as a way of adding to their balance?

bi11i 09-24-2004 04:36 PM

Quote:

Originally Posted by Kru
The fact that nothing is being shown on vBookie.php might suggest that a required template isn't present in the database. The installer only add templates and phrases to the default style (he should if you have another style with the same id then it doesn't work for the default, too), and if you are using a style that's not based on the default you might find that the templates aren't picked up.

Try editing vbookie_install.php and changing "$styleid=$vboptions['styleid'];" (appears twice) to "$styleid=N;" where N is the styleid of your style.

(thanks to Rico for this hint)

hey thanks that was much easier than i thought it was going to be (plus it worked beautifully.)

bi11i 09-24-2004 04:37 PM

Quote:

Originally Posted by Wential
Can this hack be set to use PayPal donations as a way of adding to their balance?

wouldn't that be, uh, illegal? (lemme know if you find a way to do it:))

Wential 09-24-2004 04:42 PM

Quote:

Originally Posted by bi11i
wouldn't that be, uh, illegal? (lemme know if you find a way to do it:))

It was actually an idea as a way to only give my donating members access to this feature. Since they never get any real money back, it's not illegal. I checked :).

bi11i 09-24-2004 05:39 PM

I deleted a thread containing an event (which was created by another user.) I'm not unable to delete the event - i only have the 'Thread' and 'Info' options available to me.

Is this a defect or am I doing something wrong?

Lionel 09-26-2004 02:59 AM

I installed vbookie, but it seems that it is interfering with the private thread hack. After I setup the groups permissions, whenever I run vbookie.php the settings for the other hack switches to "no" and Vbookie settings are not updating for the groups.

Now this is a rather long install. Can someone please give me a pointer which php to look for the settings?

Lionel 09-26-2004 03:59 AM

Here is my problem. The permissions in usergroup are behaving erratic: the radio buttons do not accept updates or update the wrong ones.

ALLOW GROUP TO READ TITLES/ NOT CONTENT is the other hack name

When I remove the vbookie hack from usergroup, they are fine. Maybe it is a matter of switching lines?


// set default yes permissions (bitfields)
$ug_bitfield = array(
'showgroup' => 1, 'canview' => 1, 'canviewmembers' => 1,
'canviewothers' => 1, 'cagetattachment' => 1, 'cansearch' => 1,
'canmodifyprofile' => 1, 'canthreadrate' => 1, 'canpostattachment' => 1,
'canpostpoll' => 1, 'canvote' => 1, 'canwhosonline' => 1,

// +++ vBookie
'canpostvbookieevent' => 1, 'caneditothersvbookieevents' => 1, 'canbet' => 1,
// --- vBookie

'allowhidden' => 1, 'showeditedby' => 1, 'canseeprofilepic' => 1,
'canusesignature' => 1,
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
'gtpcanreadcontent' => 1
// == [ 00-00-2004 - GTP END ]
// ================================================= \\

);






print_yes_no_row($vbphrase['can_rate_threads'], 'usergroup[canthreadrate]', $ug_bitfield['canthreadrate']);
// ================================================= \\
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
print_yes_no_row($vbphrase['gtp_can_read_content'], 'usergroup[gtpcanreadcontent]', $ug_bitfield['gtpcanreadcontent']);
// == [ 00-00-2004 - GTP END ]
// ================================================= \\

print_table_break();


if ($usergroupid != 1) // Guests can not post attachments
{
print_table_header($vbphrase['attachment_permissions']);
print_yes_no_row($vbphrase['can_upload_attachments'], 'usergroup[canpostattachment]', $ug_bitfield['canpostattachment']);
print_input_row($vbphrase['space_in_bytes_attachlimit'], 'usergroup[attachlimit]', $usergroup['attachlimit']);
print_table_break();
}

print_table_header($vbphrase['poll_permissions']);
print_yes_no_row($vbphrase['can_post_polls'], 'usergroup[canpostpoll]', $ug_bitfield['canpostpoll']);
print_yes_no_row($vbphrase['can_vote_on_polls'], 'usergroup[canvote]', $ug_bitfield['canvote']);
print_table_break();
// +++ vBookie
print_table_header($vbphrase['vbookie_permissions']);
print_yes_no_row($vbphrase['can_post_vbookieevents'], 'usergroup[canpostvbookieevent]', $ug_bitfield['canpostvbookieevent']);
print_yes_no_row($vbphrase['can_edit_others_vbookieevents'], 'usergroup[caneditothersvbookieevents]', $ug_bitfield['caneditothersvbookieevents']);
print_yes_no_row($vbphrase['can_bet_on_vbookieevents'], 'usergroup[canbet]', $ug_bitfield['canbet']);
print_table_break();
// --- vBookie

Lionel 09-26-2004 02:16 PM

The problem was in the bitfield. They were both using the same bitfield number. I doubled the other hack bitfield, and the permissions are holding and the other hack appears to be fine.

However, I am confused on how Vbookie works. I gave full permission to admin, and when I go to vbookie.php I do not see how to input a bet.

Warlord 09-27-2004 12:30 AM

Did you read the manual?

(Just create a new topic and check the box that reads Yes, post a vBookie Event with this thread, but try the instructions next time ;))

Warlord 09-27-2004 12:31 AM

Quote:

Originally Posted by Warlord
Any way to record who bet on what, and create a tally board? (Useful for football pics)


Anyone wanna tackle this idea?


All times are GMT. The time now is 12:01 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.01744 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)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
  • (10)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