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)

EA Junkie 11-12-2007 05:56 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.

So, I replace the code above in the newthread template instead of this code below correct?

<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>

bobster65 11-12-2007 06:01 PM

Quote:

Originally Posted by EA Junkie (Post 1381179)
So, I replace the code above in the newthread template instead of this code below correct?

<if condition="$show['vbookieevent']">
<fieldset class="fieldset">
<legend>$vbphrase[post_a_vbookieevent]</legend>
<div style="padding:$stylevar[formspacer]px">
<div><label for="cb_postvbookieevent"><input type="checkbox" name="postvbookieevent" value="yes" id="cb_postvbookieevent" tabindex="1" $checked[postvbookieevent] />$vbphrase[yes_post_a_vbookieevent_thread]</label></div>
</div>
</fieldset>
</if>

no..... not a template, the plugin

EA Junkie 11-12-2007 07:03 PM

Quote:

Originally Posted by bobster65 (Post 1381184)
no..... not a template, the plugin

Thanks for quick response. So, I open the product-bookiehack plug in and replace the code below with Paul M's code correct?

if ($newpost['postvbookieevent'])
{
$forceredirect = false;
$vbulletin->url = 'vbookie.php?' . $vbulletin->session->vars['sessionurl'] . "t=$newpost[threadid]&vbookieeventoptions=$newpost[vbookieeventoptions]&do=newevent";
}

bobster65 11-12-2007 07:31 PM

Quote:

Originally Posted by EA Junkie (Post 1381228)
Thanks for quick response. So, I open the product-bookiehack plug in and replace the code below with Paul M's code correct?

close, but no...

Log into your Admin Control Panel.

Scroll down the left hand nav menu until you get to the Plugins & Products Area.... expand it.. click on Plugin Manager.

This will then bring up all the plugins that you have installed within vbulletin...

Scroll down the list and Look for the Product : vBookie area... this area will contain all the plugins associated with vbookie....

Find the specific plugin that needs to be modified (vBookie: Redirect to vbookie.php when posting new Event) and then click on [edit]

This will open the plugin so that you can replace the block of code with the block that Paul had in his post...

Hit save and you are good to go :cool:

EA Junkie 11-12-2007 11:00 PM

bobster you rock!!! I've got it installed. The last issue I'm having is it is not showing up on my navbar on the forums home page - http://forums.onlinesportsgames.com/

EA Junkie 11-13-2007 01:23 PM

Along with not being able to display on the navbar, users also aren't able to place bets once I post. Get the following message - You may not bet on this event. You have placed 0 bet(s) on this Event.

http://forums.onlinesportsgames.com/...ead.php?t=7824

bobster65 11-13-2007 02:23 PM

Quote:

Originally Posted by EA Junkie (Post 1381732)
Along with not being able to display on the navbar, users also aren't able to place bets once I post. Get the following message - You may not bet on this event. You have placed 0 bet(s) on this Event.

http://forums.onlinesportsgames.com/...ead.php?t=7824

To link to the vbookie.php page... you need to edit your NAVBAR template and add the code like the install file suggests...

You need to edit each usergroup and set vbookie permissions for each group. There are 3 permission settings for vBookie.

rishimodi 11-14-2007 01:13 AM

I just installed vbookie at my forum, but i cannot see any option of adding event. Can anyone help me with this. I know its a silly question but I'm stuck :).

I've give permission to user group.

bobster65 11-14-2007 01:20 AM

Quote:

Originally Posted by rishimodi (Post 1382117)
I just installed vbookie at my forum, but i cannot see any option of adding event. Can anyone help me with this. I know its a silly question but I'm stuck :).

I've give permission to user group.

adding an event is similar to adding a poll. You first need to start a new thread in the forum that you want the event to show up in.. give the thread a title (just like you do a poll) and then down at the bottom is a check box thats you check to make the thread a vBookie event... hit submit and it will then take you to the vbookie event screen to fill out the particulars for the event... fill it out and hit submit. You will then have a thread with a vbookie event :cool:

rishimodi 11-14-2007 01:36 AM

Thanks for quick response. But after creating event and checking the check box, it doesn't redirects me to vbookie page, infact when I go there manually - i dont' see anything.

Regards


All times are GMT. The time now is 12:30 AM.

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.04433 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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