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)

Flow Fusion 09-04-2005 05:15 AM

Can I get some help? Preview works but when I hit submit I get's nothing but the text.

plateau 09-07-2005 06:15 AM

Quote:

Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!
yes, i m definitely using it, even on a chinese system. thank mate ^&^

Bobby S 09-08-2005 10:28 AM

Quote:

Originally Posted by Glovebox
Excuse me if this is a dumb question, but when Im trying to change the usergroup permissions. (Can Post vBookie Events, Can Edit other people's vBookie Events , Can Bet on vBookie Events) After I update it, they just change straight back to no..

Any help?

Adam

I have exactly the same problem! I upgraded to rc2 last night, and added the members visited today hack, and the rss newsfeeds.

Could I just update the table in the database in the meantime? What are they, and what should they be changed to?

Flow Fusion 09-08-2005 10:30 AM

I'm just looking for any help. I have had the same issue for the longest with no help or ideas...

y2krazy 09-08-2005 04:18 PM

I made several changes to the basic templates and I added a footer to most of the templates, like I do with all the other hacks to make them look more streamlined with the forums. Screenshots are included.

Phrase Manager -> Add New Phrase
Varname: vbookie_footer
Text: Powered by <b></b> v1.0 by <a href="http://www.infernotechnologies.net/" target="_blank">Zero Tolerance</a>

Style Manager -> Choose the Style to Edit -> "vbookie_confirm_abandon_event"
Replace entire template with:

Code:

<form action="vbookie.php" method="post">
<input type="hidden" name="item_id" value="$item_id">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[vbookie_abandon_event]</td>
</tr>
<tr>
        <td class="alt1" align="center">
                $vbphrase[vbookie_confirm_abandon_event]<br />               
        </td>
</tr>
<tr>
        <td align="center">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="t" value="$threadid" />
                <input type="hidden" name="do" value="confirmedabandon" />
                <input type="submit" class="button" name="preview" value="Yes, I Want To Abandon This Event" accesskey="p" tabindex="1" />
        </td>
</tr>
</table>

</form>

Style Manager -> Choose the Style to Edit -> "vbookie_confirm_delete_event"
Replace entire template with:

Code:

<form action="vbookie.php" method="post">
<input type="hidden" name="item_id" value="$item_id">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[vbookie_delete_event]</td>
</tr>
<tr>
        <td class="alt1" align="center">
                $vbphrase[vbookie_confirm_delete_event]<br />               
        </td>
</tr>
<tr>
        <td align="center">
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="t" value="$threadid" />
                <input type="hidden" name="do" value="confirmeddelete" />
                <input type="submit" class="button" name="preview" value="Yes, I Want To Delete This Event" accesskey="p" tabindex="1" />
        </td>
</tr>
</table>

</form>

Style Manager -> Choose the Style to Edit -> "vbookie_main"
Replace entire template with:

Code:

<!-- vbookie welcome -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
        <tr align="center">
          <td class="tcat" width="40%">$vbphrase[welcome_to_the_bookie]</td>
          <td class="tcat" width="40%">$vbphrase[bookie_news_and_events]</td>
        </tr>
        <tr align="center">
          $welcomeblock
          <td class="alt1" width="40%" valign="top">$bookienews</td>
        </tr>
        <tr>
          <td class="tcat" align="right" colspan="2"><span class="smallfont">$vbphrase[vbookie_footer]</span></td>
        </tr>
      </table>

<!-- /vbookie welcome -->

<!-- small space -->
<span class="smallfont"><br />
</span>
<!-- /small space -->

<!-- bet items  -->
<form action="vbookie.php" method="get">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
        <tr align="center">
          <td class="tcat" colspan="6"><phrase 1="$type">$vbphrase[currently_showing_x_events]</phrase>  $vbphrase[switch_to]
                  <select name="type">
                  <option value="OPEN">$vbphrase[event_open]</option>
                  <option value="CLOSED">$vbphrase[event_closed]</option>
                  <option value="SETTLED">$vbphrase[event_settled]</option>
                  <option value="ABANDONED">$vbphrase[event_abandoned]</option>
                  </select>
                  $vbphrase[events]
                  <input type="submit" class="button" name="selecttype" accesskey="g" value="Go" style="font-weight:normal" tabindex="1" /></td>
        </tr>
        <tr align="center">
          <td class="thead">$vbphrase[item]</td><td class="thead">$vbphrase[group]</td><td class="thead">$vbphrase[status]</td><td class="thead">$vbphrase[added]</td><td class="thead">$vbphrase[open_until]</td><td class="thead">$vbphrase[payouts_after]</td>
        </tr>
        $betitembits
      </table>


<if condition="$show['pagenav']"><br /><div align="$stylevar[right]">$pagenav</div></if>

</form>
<!-- /bet items -->

Style Manager -> Choose the Style to Edit -> "vbookie_main_items_bit"
Replace entire template with:

Code:

<tr>
<td class="$bgclass">$item[item_title]<span class="smallfont"><br /><a href="showthread.php?t=$item[threadid]">$vbphrase[thread]</a> | <a href="vbookie.php?do=viewitem&amp;item_id=$item[item_id]">$vbphrase[info]</a>
<if condition="$can_delete"> | <a href="vbookie.php?do=deleteitem&amp;item_id=$item[item_id]">$vbphrase[delete]</a></if></span></td>
<td class="$bgclass" align="center"><span class="smallfont">$item[group_title]</span></td>
<td class="$bgclass" align="center"><span class="smallfont">$item[item_status]</span></td>
<td class="$bgclass" align="center"><span class="smallfont">$item[created]</span></td>
<td class="$bgclass" align="center"><span class="smallfont">$item[openuntil]</span></td>
<td class="$bgclass" align="center"><span class="smallfont">$item[payafter]</span></td>
</tr>

Style Manager -> Choose the Style to Edit -> "vbookie_stats"
Replace entire template with:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr>
        <td class="tcat" colspan="8">
                $vbphrase[vbookie_stats]
        </td>
</tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[event_totals]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$system_totals_bits</td>
        </tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[most_popular_events]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$most_popular_event_bits</span></td>
        </tr>


        <tr align="center">
          <td class="thead"><b>$vbphrase[top_paying_events]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$top_paying_event_bits</span></td>
        </tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[top_paying_outcomes]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$top_paying_outcome_bits</span></td>
        </tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[top_paying_bets]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$top_paying_bet_bits</span></td>
        </tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[top_winners]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$top_winners_bits</span></td>
        </tr>

        <tr align="center">
          <td class="thead"><b>$vbphrase[richest_people]</b></td>
        </tr>
        <tr align="left">
          <td class="alt1"><span class="smallfont">$richest_people</span></td>
        </tr>
        <tr>
          <td class="tcat" align="right"><span class="smallfont">$vbphrase[vbookie_footer]</span></td>
        </tr>
                </table>

Style Manager -> Choose the Style to Edit -> "vbookie_view_bet"
Replace entire template with:

Code:

<tr>
                <td class="$bgclass">$bet[username]</td>
                <td class="$bgclass" align="center">$bet[bet_amount_placed]</td>
                <td class="$bgclass">$bet[bet_odds_against]/$bet[bet_odds_for]</td>
                <td class="$bgclass" align="right">($bet[odds_decimal])</td>
                <if condition="$bet[bet_settled]=='N'">
                <td class="$bgclass" align="center">-</td>
                <else />
                <td class="$bgclass" align="center">$bet[bet_amount_won]</td>
                </if>
        </tr>

Style Manager -> Choose the Style to Edit -> "vbookie_view_bets"
Replace entire template with:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="8">
                $vbphrase[vbookie_view_my_bets]
        </td>
</tr>
<tr>
        <td class="thead" align="center">$vbphrase[event]</td>
        <td class="thead" align="center">$vbphrase[group]</td>
        <td class="thead" align="center">$vbphrase[vbookie_outcome]</td>
        <td class="thead" align="center">$vbphrase[status]</td>
        <td class="thead" align="center">$vbphrase[vbookie_stake]</td>
        <td class="thead" colspan="2" align="center">$vbphrase[vbookie_odds]</td>
        <td class="thead" align="center">$vbphrase[amount_won]</td>
</tr>
$betbits
<tr>
        <td class="tcat" align="right" colspan="8"><span class="smallfont">$vbphrase[vbookie_footer]</span></td>
</tr>               
</table>

<if condition="$show['pagenav']"><br /><div align="$stylevar[right]">$pagenav</div></if>

Style Manager -> Choose the Style to Edit -> "vbookie_view_event"
Replace entire template with:

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[vbookie_event]<span class="normal">: $eventinfo[question] ($eventinfo[group])</span></td>
</tr>
<tr>
        <td class="thead">$vbphrase[vbookie_event_info]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0">
                                <tr>
                                        <td><span class="smallfont">$vbphrase[vbookie_this_event_is] <strong>$eventinfo[item_status]</strong>.</span></td>
                                </tr>
                                <tr>
                                        <td><span class="smallfont">$vbphrase[vbookie_this_event_will_accept_bets_until] <strong>$eventinfo[openuntil_date] at $eventinfo[openuntil_time]</strong>.</span></td>
                                </tr>
                                <tr>
                                        <td><span class="smallfont">$vbphrase[vbookie_this_event_will_pay_out_after] <strong>$eventinfo[payafter_date] at $eventinfo[payafter_time]</strong>.</span></td>
                                </tr>
                                <tr>
                                        <td><span class="smallfont"><strong>$vbphrase[vbookie_event_n_bets]</strong>: $eventinfo[item_n_bets_placed]</span></td>
                                </tr>
                                <tr>
                                        <td><span class="smallfont"><strong>$vbphrase[vbookie_event_total_staked]</strong>: $eventinfo[item_amount_staked]</span></td>
                                </tr>
                                <if condition="$eventinfo[item_status]=='SETTLED'">
                                <tr>
                                        <td><span class="smallfont"><strong>$vbphrase[vbookie_event_total_won]</strong>: $eventinfo[item_amount_won]</span></td>
                                </tr>
                                </if>
                                </table>
                        </div>

                </div>
        </div>
        </td>

</tr>
</table>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">$vbphrase[vbookie_outcomes]</td>
</tr>
<tr valign="top">

        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="$stylevar[left]">
               
                        <div class="fieldset">
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]px" border="0" width="100%">
                                $outcomebits
                                </table>
                        </div>
               
                </div>
        </div>
        </td>

</tr>
<tr>
        <td class="tcat" align="right"><span class="smallfont">$vbphrase[vbookie_footer]</span></td>
</tr>
</table>

Style Manager -> Choose the Style to Edit -> "vbookie_view_my_bet"
Replace entire template with:

Code:

<tr>
                <td class="$bgclass">$bet[item_title]<span class="smallfont"><br /><a href="showthread.php?t=$bet[threadid]">Thread</a> | <a href="vbookie.php?do=viewitem&amp;item_id=$bet[item_id]">Info</a></span></td>
                <td class="$bgclass" align="center"><span class="smallfont">$bet[group_title]</span></td>
                <td class="$bgclass" align="center"><span class="smallfont">$bet[option_title]</span></td>
                <td class="$bgclass" align="center"><span class="smallfont">$bet[item_status]</span></td>
                <td class="$bgclass" align="center"><span class="smallfont">$bet[bet_amount_placed]</span></td>
                <td class="$bgclass" align="center"><span class="smallfont">$bet[bet_odds_against]/$bet[bet_odds_for]</span></td>
                <td class="$bgclass" align="center"><span class="smallfont"> ($bet[odds_decimal]) </span></td>
                <if condition="$bet[bet_settled]=='N'">
                <td class="$bgclass" align="center"><span class="smallfont">-</span></td>
                <else />
                <td class="$bgclass" align="center"><span class="smallfont">$bet[bet_amount_won]</span></td>
                </if>
        </tr>

Style Manager -> Choose the Style to Edit -> "vbookie_view_outcome"
Replace entire template with:

Code:

<tr>
        <td class="thead" colspan="2">
                <strong>$outcome[outcome]</strong>
        </td>
</tr>
<tr>
        <td>
                <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="left" width="50%">
                <tr>
                        <td class="thead" colspan="2">
                                <strong>$vbphrase[vbookie_event_outcome_info]</strong>
                        </td>
                </tr>               
                <tr>
                        <td class="alt1">
                                <strong>$vbphrase[vbookie_event_current_odds]</strong>:
                        </td>
                        <td class="alt1">
                                $outcome[odds_against]/$outcome[odds_for] ($outcome[odds_decimal])

                        </td>
                </tr>               
                <tr>
                        <td class="alt1">
                                <strong>$vbphrase[vbookie_event_n_bets]</strong>:
                        </td>
                        <td class="alt1">
                                $outcome[n_bets_placed]
                        </td>
                </tr>               
                <tr>
                        <td class="alt1">
                                <strong>$vbphrase[vbookie_event_total_staked]</strong>:
                        </td>
                        <td class="alt1">
                                $outcome[amount_staked]
                        </td>
                </tr>       
                <if condition="$eventinfo[item_status]=='SETTLED'">
                <tr>
                        <td class="alt1">
                                <strong>$vbphrase[vbookie_event_total_won]</strong>:
                        </td>
                        <td class="alt1">
                                $outcome[amount_won]
                        </td>
                </tr>       
                </if>
                </table>
               
                <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="left" width="50%">
                <tr>
                        <td class="thead" colspan="6">
                                $vbphrase[vbookie_event_bets_placed]
                        </td>
                </tr>               
                <tr>
                        <td class="thead">
                                $vbphrase[vbookie_bet_placed_by]
                        </td>
                        <td class="thead" align="center">
                                $vbphrase[vbookie_bet_placed_amount]
                        </td>
                        <td class="thead" colspan="2" align="center">
                                $vbphrase[vbookie_bet_placed_odds]
                        </td>
                        <td class="thead" align="center">
                                $vbphrase[vbookie_bet_amount_won]
                        </td>
                </tr>               
                $bets
                </table>
        </td>
</tr>

You can test the vBookie out yourself at my site if you wish, too(see my sig for a link).

Andreas 09-08-2005 05:01 PM

Quote:

Originally Posted by Flow Fusion
Can I get some help? Preview works but when I hit submit I get's nothing but the text.

What does "nothing but the Text" mean?

@all those having Problems setting the Permissions
Do you get Errors when hitting Save by any chance?
Do you have other bitfield_xxx.xml Files, and which?

Bobby S 09-08-2005 05:56 PM

Quote:

Originally Posted by KirbyDE
What does "nothing but the Text" mean?

@all those having Problems setting the Permissions
Do you get Errors when hitting Save by any chance?

No, it gives the saved usergroup administrators successfully message.

Quote:

Originally Posted by KirbyDE
Do you have other bitfield_xxx.xml Files, and which?

Where would I find them? Sorry I'm really stupid sometimes :(

Andreas 09-08-2005 05:59 PM

includes/xml
Which bitfield_xxx.xml Files do you have there?

Bobby S 09-08-2005 07:51 PM

Quote:

Originally Posted by KirbyDE
includes/xml
Which bitfield_xxx.xml Files do you have there?

bitfield_vbookie.xml and bitfield_vbulletin.xml

Does that help? [he asked hopefully] :)

Andreas 09-09-2005 03:43 AM

Ok, that means no other Bitfields, eg. no reason why it should not work.
Feel free to send me a PM with an ACP Login, otherwise I can't help much - sorry.


All times are GMT. The time now is 03:10 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.13416 seconds
  • Memory Usage 1,863KB
  • 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
  • (10)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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