Quote:
Originally Posted by 04wayne
Okay, I've created a lottery but it isn't showing in the Market?
|
Ergh... somehow I deleted the template for it in the 3.1.0 version

However to fix is easy
Just create a new template and call it:
market_gambling_bit
PHP Code:
<vb:if condition="$type != 3">
<vb:if condition="$type == 1">
<tr><td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:rawphrase market_gamble_guess}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw cost},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw payout},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:rawphrase market_gamble_noend}</div></ol></td></tr>
</vb:if>
<vb:if condition="$type == 2">
<tr><td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:rawphrase market_gamble_highercard}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw cost},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw payout},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:rawphrase market_gamble_noend}</div></ol></td></tr>
</vb:if>
</vb:if>
<vb:if condition="$type == 3">
<tr><td><ol class="blockbody settings_form_border"><div class="blockrow"><input type="radio" value="{vb:raw market_lottoid}" name="lottoid" /> {vb:raw market_lotto_name}</input></div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw cost},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:number {vb:raw payout},{vb:raw point_decimal}}</div></ol></td>
<td><ol class="blockbody settings_form_border"><div class="blockrow">{vb:date {vb:raw expire_date},{vb:raw item_date_format}}</div></ol></td></tr>
</vb:if>
Now the only thing I need you to remember to do is BEFORE you do the next upgrade I want you to revert/delete the template you just created so that my market template overwrites the one you just made so any changes I create will be applied.
Alternatively instead of creating a new template you can just wait til this weekend.