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)

whitestorm 01-11-2007 08:37 AM

Quote:

Originally Posted by Foxsake (Post 1154438)
Hi does anyone know how to adjust the Number of outcomes in a new event? (its set at 2 originally)
I know you can add more as you wish then press the update button.
But wondered if i could have the default as 3 in place of 2?

Cheers for any help or advice

Look in vbookie.php, around line number 1360 for this code:

PHP Code:

    if ($vbulletin->GPC['vbookieeventoptions'] < 2)
    {
        
$vbulletin->GPC['vbookieeventoptions'] = 2;
    } 

Change the 2 to 3 in both lines and you'll have it default to 3 outcomes instead of two.

Foxsake 01-11-2007 09:35 AM

Thank you very much whitestorm - i appreciate the quick response

punchbowl 01-12-2007 09:07 AM

For some reason all the mods on the forum seem to be able to settle bets despite "Can Post vBookie Events" = no. I have a seperate group for vbookies

What have I missed?!

ok I commented this out in product_vbookie.xml
Code:

// moderators can edit events
        //if (can_moderate($threadinfo['forumid']))
        //{
        //        $isbookmaker = true;
        //}

seems to be working

wilburshere 01-13-2007 11:43 AM

i would like to disable the private bet feature any ideas on how this can be done ?

TwinsForMe 01-14-2007 07:36 PM

Quote:

Originally Posted by TwinsForMe (Post 1153295)
I'm running 3.6.4.
I did the plugin fix as per Paul's instructions.
I rebuilt the bitfields.
I did the template edit.

The only ones that can post an event are admins even though other usergroups are enabled. The event checkbox doesn't show up in the new thread for others.

Any suggestions?

Anyone?

cam2 - old 01-14-2007 10:20 PM

Quote:

Originally Posted by brvheart (Post 1155925)
Login to admincp,

scroll down to "plugins and products" and expand it

the click "plugin mamager"

in the list find "Product: Vbookie"

in that list find:

"vBookie: Redirect to vbookie.php when posting new Event"

to the right is a edit button...click it

in the middle of the edit page you will see: "Plugin PHP Code Use this field to enter the PHP code that you would like to be run."

replace what is in there with the following:

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));



save and you are done :)


hope this helps.


if you need more help pm :)


Thank you very much, works great! I appreciate your help.

CrossBones 01-14-2007 10:27 PM

I've looked to find the answer but can't seem to come up with it.

I am running vB 3.5.4 with vBookie installed. Will this work with 3.6.x when I upgrade?

Fr4gZ 01-15-2007 10:22 AM

Hi there I installed vbookie a week or so ago and everything was running smooth after I added the vb 3.6 patch. I'm currently using vb 3.6.4.

After a few days when anyone went to click the vbookie link it came up with a databse error. I wasn't sure if rebuilding the bit fields again wud work but I tried that too but that didnt help. Here's the error message:

http://www.fr4gz.co.uk/forum/vbookie.php?

I re-installed vbookie from scratch and it worked fine again until today. Please help.

P.S love the mod so I hope someone has some advice.

CrossBones 01-15-2007 02:54 PM

I just noticed this. Apparently this is how to fix it!

JIZZLE23 01-15-2007 04:10 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.

Where exactly do I replace the code? Any help is appreciated Thank You

JIZZLE23


All times are GMT. The time now is 08:13 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.02501 seconds
  • Memory Usage 1,755KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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