Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




424 posts

Ultimate Geek


#15685 3-Sep-2007 14:36
Send private message

Looking for PHP/SQL savvy students who want to have references or additions to their portfolios...


I need help on the following...


I don't know if I am posting in the right place or not..So my apologies if I am in the wrong place.


I have installed PHPbbAuctions Standalone [url]http://www.phpbb-auction.com/[/url] on my website, but there are a few hacks I want to make to it to make it much more beneficial for my webuser needs.


The site I am using is a fan site, set up by me, so it is all free.  I make no money off the website [url]http://runeauctions.isgreat.org[/url].


I want to add a hack to the phpauction that additionally instead of creating a new auction offer, members can create a new virtual classified add instead.


My site is for a game called Runescape, allowing people to auction their items or multiple items.  The new offer at the moment works best for auctions that are singular items and not multiple quantities.


So how I foresee this to work is:


For instance a member has 100 attack potions they want to sell, they would therefore click on a link in the auction_room.php taking them to a classified_offer.php (instead of clicking on the already existing offer button, which takes them to auction_offer.php)


The price field would be price per item, ie 200 and it would then have a total for the whole auction 100 super att pots @ 200 each = 20,0000.


Then when members who want to buy Attack potions see the classified it then opens classified_offer_view.php (different to the auction one of auction_offfer_view.php)


On this page they would see the Quantity available (if other sales had been made) would be able to enter a quantity of how many they would like to buy (or buy now for all of them) and the script will update the sale price and display:  "You want to buy x amount of 'item' @ $ each - A total of $TOTAL"

Once they press ok to make the purchase, the script then updates the quantity left, until a 0 balance is reached, at which point the classified is then unlisted, but still available for the member to re list again if they have more of the same item available for sale.

This Virtual Classified hack would need to update in the auction_store.php and auction_myauctions.php.

I honestly don't know what is involved, I am not good at scirpting, and if it as simple as it seems in my description .

I'm thinking if there is anyone out there that wants to do this hack, to a hack to further their php portfolio.  I will give full credits on my site to anyone that can assist me.  Unfortunately I am just a stay at home mum doing this to make my enjoyment of runescape and the ingame merchanting involved much more easier.






"In the real world as in dreams, nothing is quite what it seems" - The Book of Counted Sorrows





Senility Guild

 


Create new topic
362 posts

Ultimate Geek

Trusted

  #85104 3-Sep-2007 16:23
Send private message

You could try something like

$total = $quantity * $price;
echo "You want to buy $quantity amount of $item @ $price each - A total of $total";
$amountleft = $amountofitem - $quanitiy;

if($amountleft == '0')
{
//Move database field to an unlisted table
}
else
{
//update quanitity in listed field
}

Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

COVID-19: new charitable initiative to fund remote monitoring for at-risk patients
Posted 2-Apr-2020 11:07


Huawei introduces the P40 Series of Android-based smartphones
Posted 31-Mar-2020 17:03


Samsung Galaxy Z Flip now available for pre-order in New Zealand
Posted 31-Mar-2020 16:39


New online learning platform for kids stuck at home during COVID-19 lockdown
Posted 26-Mar-2020 21:35


New 5G Nokia smartphone unveiled as portfolio expands
Posted 26-Mar-2020 17:11


D-Link ANZ launches wireless AC1200 4G LTE router
Posted 26-Mar-2020 16:32


Ring introduces two new video doorbells and new pre-roll technology
Posted 17-Mar-2020 16:59


OPPO uncovers flagship Find X2 Pro smartphone
Posted 17-Mar-2020 16:54


D-Link COVR-2202 mesh Wi-Fi system now protected by McAfee
Posted 17-Mar-2020 16:00


Spark Sport opens its platform up to all New Zealanders at no charge
Posted 17-Mar-2020 10:04


Spark launches 5G Starter Fund
Posted 8-Mar-2020 19:19


TRENDnet launches high-performance WiFi Mesh Router System
Posted 5-Mar-2020 08:48


Sony boosts full-frame lens line-up with introduction of FE 20mm F1.8 G large-aperture ultra-wide-angle prime Lens
Posted 5-Mar-2020 08:44


Vector and Spark teamed up on smart metering initiative
Posted 5-Mar-2020 08:42


Schneider Electric launches new PDL Pro Series designed specifically for the commercial building market
Posted 5-Mar-2020 08:39



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.