Forum Moderators: coopster

Message Too Old, No Replies

bid script : i want to allow max of 20 bids

penny auction

         

walatafa

1:03 am on Aug 29, 2014 (gmt 0)

10+ Year Member



i want the users to insert a maximum of 20 bids. Just like that of quibids bidomatic



<div class="bidomatic">
{if $userid<>0 && $detail["uniqueauction"]==false && $detail["nailbiterauction"]==false}
<div class=" simpletab">
<ul class="tabhead">
<li class="headitem" title="#book_autobidder"><h3 class=" no-bg">{php}echo AUTO_BIDDER;{/php}</h3></li>
<li class="headitem" title="#my_autobidder" style="padding-left:5px"><h3 class=" no-bg">{php}echo MY_AUTOBIDDER;{/php}</h3></li>
</ul>
<div class="content tabcontent">
<div class="tabcontent-item" id="book_autobidder">
<div class="bidomatic_not_active" style="">
<div class="fieldset-left">
<fieldset class="bidomatic">
<p class="bido-small">&nbsp;&nbsp;&nbsp;{php}echo BID_FROM;{/php}</p>
{$Currency}<input name="bidbutstartprice" value="" id="bid_form" class="bidomatic_txt start" value="6.77" type="text"/>
</fieldset>
</div>

<div class="fieldset-right">
<fieldset class="bidomatic">
<p class="bido-small"># {php}echo BIDS;{/php}</p>
<input name="totalbids" value="" id="bid_bids" class="bidomatic_txt" type="text"/>
<input type="hidden" name="isreverseauction" id="isreverseauction" value="{$detail['reverseauction']}"/>
</fieldset>
</div>

<p class="no-margin">
<a id="bookbidbutlerbutton" name="{$detail["auctionID"]}" title="Book" class="buttons medium blue bidomatic_toggle bido-btn bookbidbutlerbutton" style="color:#ffffff">{php}echo BOOK;{/php}</a>
</p>
</div>

<div class="clear"></div>
<br/>
<p class="small"><a href="help.php">{php}echo LEARN_MORE_HERE;{/php} »</a></p>
</div>

<div class="tabcontent-item" id="my_autobidder">
<table border="0" cellSpacing="0" cellpadding="2" width="100%" align="center">
<tbody>
<tr>
<td><strong>{php}echo BID_FROM;{/php}</strong></td>

<td><strong>{php}echo BIDS;{/php}</strong></td>
<td>&nbsp;</td>
</tr>
{foreach $butlers as $butler}
<tr id="mainbutlerbody_{$butler@index+1}">
<td id="butlerstartprice_{$butler@index+1}">{$Currency}{$butler["butler_start_price"]}</td>

<td id="butlerbids_{$butler@index+1}">{$butler["bids"]}</td>
<td>
{if $butler["butler_start_price"]!=""}
<div id="deletebidbutler_{$butler@index+1}">
<img src="img/buttons/btn_closezoom.png" style="cursor: pointer;" onclick="DeleteBidButler('{$butler["id"]}','{$butler@index+1}');" id="butler_image_{$butler@index+1}" />
</div>
{else}
<div id="deletebidbutler_{$butler@index+1}" style="display:none;">
<img src="img/buttons/btn_closezoom.png" style="cursor: pointer;" onclick="DeleteBidButler('{$butler["id"]}','{$butler@index+1}');" id="butler_image_{$butler@index+1}" />
</div>
{/if}
</td>
</tr>

{/foreach}
{for $i=$butler@total+1 to $bidhistorycount-1}
<tr id="mainbutlerbody_{$i}" style="display:none;">
<td id="butlerstartprice_{$i}">&nbsp;</td>
<!--td id="butlerendprice_{$i}">&nbsp;</td-->
<td id="butlerbids_{$i}">&nbsp;</td>
<td>
<div id="deletebidbutler_{$i}" style="display:none;">
<img src="img/buttons/btn_closezoom.png" style="cursor: pointer;" onclick="" id="butler_image_{$i}" />
</div>
</td>
</tr>
{/for}
</tbody>
</table>
</div>



</div>
</div>
{/if}
</div>

penders

1:07 pm on Aug 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What's with all the curly braces? Are you using some kind of templating system?

What does your script currently do exactly?

What problem are you currently having? Why are you unable to restrict the number of bids to <= 20?

walatafa

3:53 pm on Aug 29, 2014 (gmt 0)

10+ Year Member



hi penders.. i sent you a sticky mail.. kindly let me know whats up.

penders

1:15 pm on Aug 31, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could at least attempt at answering my queries? If anyone is going to help you we are going to need a lot more information. Have you tried to implement anything yourself?

I imagine the "quibids bidomatic" system is far more involved than updating a single script... this is more likely to be a system/process that runs even when the user is not interacting with the site, so this will involve CRON or some other server-side process to run periodically, or be triggered at certain events?

You need to break your problem down into manageable parts IMO.

engine

11:36 am on Sep 3, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



walatafa, please keep the discussions in the thread so that we can all learn from the problem.