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)

pgowder 07-16-2007 10:15 PM

Quote:

Originally Posted by pgowder (Post 1291733)
How can I list vCash in the members list?

Anyone have a suggestion for this?

bobster65 07-16-2007 10:28 PM

Quote:

Originally Posted by pgowder (Post 1293183)
Anyone have a suggestion for this?

Should be as simple as a template edit, just like getting it to show up in the Post Bit. If I get bored tonight, I'll take a look into it ..

pgowder 07-16-2007 11:43 PM

Quote:

Originally Posted by bobster65 (Post 1293191)
Should be as simple as a template edit, just like getting it to show up in the Post Bit. If I get bored tonight, I'll take a look into it ..

Thanks, or even a page that show the top 20 members.

bobster65 07-17-2007 01:22 AM

Quote:

Originally Posted by pgowder (Post 1291733)
How can I list vCash in the members list?

This is what I came up with. It involves 1 file edit and 2 template edits. The result is vcash showing up in the member list and is sortable...

Step 1: Edit memberlist.php

PHP Code:

================================
File Editmemberlist.php
================================
FIND:
--------------------------------
        case 
'posts':
            
$sqlsort 'user.posts';
            break;
--------------------------------
ADD BELOW:
--------------------------------
        case 
'vbookie_cash':
            
$sqlsort 'user.vbookie_cash';
            break; 


Step 2: Edit memberlist Template

PHP Code:

================================
Template Editmemberlist
================================
FIND:
--------------------------------
    <if 
condition="$show['postscol']"><td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=posts&amp;pp=$perpage$usergrouplink">$vbphrase[posts]</a$sortarrow[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
    <if 
condition="$vboptions['vbookiecashon']"><td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=vbookie_cash&amp;pp=$perpage$usergrouplink">$vbphrase[vbookie_vcash]</a$sortarrow[vbookie_cash]</td></if> 


Step 3: Edit memberlist_resultsbit Template

PHP Code:

================================
Template Editmemberlist_resultsbit
================================
FIND:
--------------------------------
    <if 
condition="$show['postscol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
    <if 
condition="$vboptions['vbookiecashon'] AND exec_switch_bg() "> <td class="$bgclass">$userinfo[vbookie_cash]</td></if> 


Tested on my site and works perfectly...

pgowder 07-17-2007 10:44 AM

Quote:

Originally Posted by bobster65 (Post 1293292)
This is what I came up with. It involves 1 file edit and 2 template edits. The result is vcash showing up in the member list and is sortable...

Step 1: Edit memberlist.php

PHP Code:

================================
File Editmemberlist.php
================================
FIND:
--------------------------------
        case 
'posts':
            
$sqlsort 'user.posts';
            break;
--------------------------------
ADD BELOW:
--------------------------------
        case 
'vbookie_cash':
            
$sqlsort 'user.vbookie_cash';
            break; 


Step 2: Edit memberlist Template

PHP Code:

================================
Template Editmemberlist
================================
FIND:
--------------------------------
    <if 
condition="$show['postscol']"><td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=posts&amp;pp=$perpage$usergrouplink">$vbphrase[posts]</a$sortarrow[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
    <if 
condition="$vboptions['vbookiecashon']"><td class="thead" nowrap="nowrap"><a href="$sorturl&amp;order=DESC&amp;sort=vbookie_cash&amp;pp=$perpage$usergrouplink">$vbphrase[vbookie_vcash]</a$sortarrow[vbookie_cash]</td></if> 


Step 3: Edit memberlist_resultsbit Template

PHP Code:

================================
Template Editmemberlist_resultsbit
================================
FIND:
--------------------------------
    <if 
condition="$show['postscol'] AND exec_switch_bg()"><td class="$bgclass">$userinfo[posts]</td></if>
--------------------------------
ADD BELOW:
--------------------------------
    <if 
condition="$vboptions['vbookiecashon'] AND exec_switch_bg() "> <td class="$bgclass">$userinfo[vbookie_cash]</td></if> 


Tested on my site and works perfectly...

That worked great!!! Thanks so much!

pgowder 07-17-2007 03:53 PM

On bets like this:
http://www.luckpredictions.com/showthread.php?t=14

Where I've set the odds as 1/10. Does the person get back their bet amount and what they won?

So if a person bets 100 on this, how much do they get back total?

Thanks

bobster65 07-17-2007 07:20 PM

Quote:

Originally Posted by pgowder (Post 1293541)
That worked great!!! Thanks so much!

Cool Beans :)

pgowder 07-19-2007 12:50 PM

If people have bets placed on an open event and I zero out everyone's vcash, what happens to their pending bets?

Are they still good?

Thanks

pgowder 07-19-2007 10:58 PM

Is it possible to have a PM or email sent when a bet is settled?

pgowder 07-23-2007 05:05 PM

Quote:

Originally Posted by pgowder (Post 1295644)
If people have bets placed on an open event and I zero out everyone's vcash, what happens to their pending bets?

Are they still good?

Thanks

Quote:

Originally Posted by pgowder (Post 1296120)
Is it possible to have a PM or email sent when a bet is settled?

Anyone know about these?


All times are GMT. The time now is 07:50 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.02868 seconds
  • Memory Usage 1,780KB
  • 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
  • (6)bbcode_php_printable
  • (8)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